author | mickeyl <mickeyl> | 2005-05-17 10:18:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-17 10:18:18 (UTC) |
commit | cce15d6b9a27880df72ea2638f9295900ea6c21e (patch) (unidiff) | |
tree | 86a03b32e5fbac908eb96cadc7cc2e620ac1f213 /libopie2/opieui/oversatileviewitem.cpp | |
parent | c31a425a9a080238569f7c04372f10fc6cc10383 (diff) | |
download | opie-cce15d6b9a27880df72ea2638f9295900ea6c21e.zip opie-cce15d6b9a27880df72ea2638f9295900ea6c21e.tar.gz opie-cce15d6b9a27880df72ea2638f9295900ea6c21e.tar.bz2 |
remove OVersatileView and OVersatileViewItem from libopieui2. This widget
wasn't used in any application, it wasn't even completed and with the
QListView in Qt4, there is something more thought-out coming soon.
Diffstat (limited to 'libopie2/opieui/oversatileviewitem.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opieui/oversatileviewitem.cpp | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/libopie2/opieui/oversatileviewitem.cpp b/libopie2/opieui/oversatileviewitem.cpp deleted file mode 100644 index 03c6738..0000000 --- a/libopie2/opieui/oversatileviewitem.cpp +++ b/dev/null | |||
@@ -1,134 +0,0 @@ | |||
1 | /* | ||
2 | This file is part of the Opie Project | ||
3 | |||
4 | =. (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | ||
5 | .=l. | ||
6 | .>+-= | ||
7 | _;:, .> :=|. This program is free software; you can | ||
8 | .> <`_, > . <= redistribute it and/or modify it under | ||
9 | :`=1 )Y*s>-.-- : the terms of the GNU Library General Public | ||
10 | .="- .-=="i, .._ License as published by the Free Software | ||
11 | - . .-<_> .<> Foundation; either version 2 of the License, | ||
12 | ._= =} : or (at your option) any later version. | ||
13 | .%`+i> _;_. | ||
14 | .i_,=:_. -<s. This program is distributed in the hope that | ||
15 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | ||
16 | : .. .:, . . . without even the implied warranty of | ||
17 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | ||
18 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU | ||
19 | ..}^=.= = ; Library General Public License for more | ||
20 | ++= -. .` .: details. | ||
21 | : = ...= . :.=- | ||
22 | -. .:....=;==+<; You should have received a copy of the GNU | ||
23 | -_. . . )=. = Library General Public License along with | ||
24 | -- :-=` this library; see the file COPYING.LIB. | ||
25 | If not, write to the Free Software Foundation, | ||
26 | Inc., 59 Temple Place - Suite 330, | ||
27 | Boston, MA 02111-1307, USA. | ||
28 | |||
29 | */ | ||
30 | |||
31 | #include <opie2/oversatileviewitem.h> | ||
32 | #include <opie2/oversatileview.h> | ||
33 | |||
34 | using namespace Opie::Ui; | ||
35 | |||
36 | OVersatileViewItem::OVersatileViewItem( OVersatileView * parent ) | ||
37 | :OListViewItem( parent->_listview ), QIconViewItem( parent->_iconview ), | ||
38 | _versatileview( parent ) | ||
39 | { | ||
40 | init(); | ||
41 | } | ||
42 | |||
43 | OVersatileViewItem::OVersatileViewItem( OVersatileView * parent, OVersatileViewItem * after ) | ||
44 | :OListViewItem( parent->_listview, after ), QIconViewItem( parent->_iconview, after ), | ||
45 | _versatileview( parent ) | ||
46 | { | ||
47 | init(); | ||
48 | } | ||
49 | |||
50 | OVersatileViewItem::OVersatileViewItem( OVersatileView * parent, | ||
51 | QString a, QString b, QString c, QString d, | ||
52 | QString e, QString f, QString g, QString h ) | ||
53 | :OListViewItem( parent->_listview, a, b, c, d, e, f, g, h ), | ||
54 | QIconViewItem( parent->_iconview, a ), | ||
55 | _versatileview( parent ) | ||
56 | { | ||
57 | init(); | ||
58 | } | ||
59 | |||
60 | OVersatileViewItem::OVersatileViewItem( OVersatileView * parent, OVersatileViewItem* after, | ||
61 | QString a, QString b, QString c, QString d, | ||
62 | QString e, QString f, QString g, QString h ) | ||
63 | :OListViewItem( parent->_listview, after, a, b, c, d, e, f, g, h ), | ||
64 | QIconViewItem( parent->_iconview, after, a ), | ||
65 | _versatileview( parent ) | ||
66 | { | ||
67 | init(); | ||
68 | } | ||
69 | |||
70 | OVersatileViewItem::OVersatileViewItem( OVersatileViewItem * parent, | ||
71 | QString a, QString b, QString c, QString d, | ||
72 | QString e, QString f, QString g, QString h ) | ||
73 | :OListViewItem( parent, a, b, c, d, e, f, g, h ), | ||
74 | QIconViewItem( parent->_versatileview->_iconview, a ), | ||
75 | _versatileview( parent->_versatileview ) | ||
76 | { | ||
77 | init(); | ||
78 | } | ||
79 | |||
80 | OVersatileViewItem::OVersatileViewItem( OVersatileViewItem * parent, OVersatileViewItem* after, | ||
81 | QString a, QString b, QString c, QString d, | ||
82 | QString e, QString f, QString g, QString h ) | ||
83 | :OListViewItem( parent, after, a, b, c, d, e, f, g, h ), | ||
84 | QIconViewItem( parent->_versatileview->_iconview, after, a ), | ||
85 | _versatileview( parent->_versatileview ) | ||
86 | { | ||
87 | init(); | ||
88 | } | ||
89 | |||
90 | OVersatileViewItem::~OVersatileViewItem() | ||
91 | { | ||
92 | } | ||
93 | |||
94 | OVersatileView* OVersatileViewItem::versatileView() const | ||
95 | { | ||
96 | return _versatileview; | ||
97 | } | ||
98 | |||
99 | void OVersatileViewItem::init() | ||
100 | { | ||
101 | if ( !firstChild() ) | ||
102 | { | ||
103 | // I'm a sweet yellow and browne autumn leaf | ||
104 | |||
105 | OListViewItem::setPixmap( 0, _versatileview->_treeleaf ); | ||
106 | QIconViewItem::setPixmap( _versatileview->_iconleaf ); | ||
107 | } | ||
108 | else | ||
109 | { | ||
110 | // I'm a node and I have a little baby child | ||
111 | |||
112 | if ( isOpen() ) | ||
113 | { | ||
114 | OListViewItem::setPixmap( 0, _versatileview->_treeopened ); | ||
115 | QIconViewItem::setPixmap( _versatileview->_iconopened ); | ||
116 | } | ||
117 | else | ||
118 | { | ||
119 | OListViewItem::setPixmap( 0, _versatileview->_treeclosed ); | ||
120 | QIconViewItem::setPixmap( _versatileview->_iconclosed ); | ||
121 | } | ||
122 | } | ||
123 | |||
124 | } | ||
125 | |||
126 | void OVersatileViewItem::setRenameEnabled( bool allow ) | ||
127 | { | ||
128 | #if (QT_VERSION >= 0x030000) | ||
129 | OListViewItem::setRenameEnabled( 0, allow ); // TODO: Backport to Qt-Embedded 2.x? | ||
130 | #endif | ||
131 | QIconViewItem::setRenameEnabled( allow ); | ||
132 | } | ||
133 | |||
134 | |||