author | llornkcor <llornkcor> | 2005-08-11 10:10:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-08-11 10:10:40 (UTC) |
commit | 6040d26c56a95d9f5bd09688e22009fc5b5e124d (patch) (unidiff) | |
tree | 53ad03c346cc006d17093918d5cf6bbb09aa4b3b /noncore/apps/advancedfm/advancedfmData.cpp | |
parent | 8938048502047f781447ed24351512cdca997a2e (diff) | |
download | opie-6040d26c56a95d9f5bd09688e22009fc5b5e124d.zip opie-6040d26c56a95d9f5bd09688e22009fc5b5e124d.tar.gz opie-6040d26c56a95d9f5bd09688e22009fc5b5e124d.tar.bz2 |
add opie-smb
Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index feda198..95e619b 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp | |||
@@ -1,231 +1,236 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | advancedfmData.cpp | 2 | advancedfmData.cpp |
3 | ------------------- | 3 | ------------------- |
4 | ** Created: Mon 09-23-2002 13:24:11 | 4 | ** Created: Mon 09-23-2002 13:24:11 |
5 | copyright : (C) 2002 by ljp | 5 | copyright : (C) 2002 by ljp |
6 | email : ljp@llornkcor.com | 6 | email : ljp@llornkcor.com |
7 | * This program is free software; you can redistribute it and/or modify * | 7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * | 9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * | 10 | * (at your option) any later version. * |
11 | ***************************************************************************/ | 11 | ***************************************************************************/ |
12 | #include "advancedfm.h" | 12 | #include "advancedfm.h" |
13 | 13 | ||
14 | /* OPIE */ | 14 | /* OPIE */ |
15 | #include <opie2/odebug.h> | 15 | #include <opie2/odebug.h> |
16 | #include <opie2/oresource.h> | 16 | #include <opie2/oresource.h> |
17 | #include <qpe/applnk.h> | 17 | #include <qpe/applnk.h> |
18 | #include <qpe/storage.h> | 18 | #include <qpe/storage.h> |
19 | #include <qpe/qpeapplication.h> | 19 | #include <qpe/qpeapplication.h> |
20 | #include <qpe/menubutton.h> | 20 | #include <qpe/menubutton.h> |
21 | using namespace Opie::Core; | 21 | using namespace Opie::Core; |
22 | using namespace Opie::Ui; | 22 | using namespace Opie::Ui; |
23 | 23 | ||
24 | /* QT */ | 24 | /* QT */ |
25 | #include <qframe.h> | ||
25 | #include <qlayout.h> | 26 | #include <qlayout.h> |
26 | #include <qhbox.h> | 27 | #include <qhbox.h> |
27 | #include <qmenubar.h> | 28 | #include <qmenubar.h> |
28 | #include <qcombobox.h> | 29 | #include <qcombobox.h> |
29 | #include <qtoolbutton.h> | 30 | #include <qtoolbutton.h> |
30 | #include <qlineedit.h> | 31 | #include <qlineedit.h> |
31 | #include <qlistview.h> | 32 | #include <qlistview.h> |
32 | 33 | ||
33 | /* STD */ | 34 | /* STD */ |
34 | #include <sys/utsname.h> | 35 | #include <sys/utsname.h> |
35 | 36 | ||
36 | void AdvancedFm::init() { | 37 | void AdvancedFm::init() { |
37 | b = false; | 38 | b = false; |
38 | setCaption( tr( "AdvancedFm" ) ); | 39 | setCaption( tr( "AdvancedFm" ) ); |
39 | 40 | ||
41 | // QFrame* frame = new QFrame(this); | ||
42 | // setCentralWidget(frame); | ||
43 | // QVBoxLayout *layout = new QVBoxLayout( frame ); | ||
44 | |||
40 | QVBoxLayout *layout = new QVBoxLayout( this ); | 45 | QVBoxLayout *layout = new QVBoxLayout( this ); |
41 | layout->setSpacing( 2); | 46 | layout->setSpacing( 2); |
42 | layout->setMargin( 0); // squeeze | 47 | layout->setMargin( 0); // squeeze |
43 | 48 | ||
44 | QMenuBar *menuBar = new QMenuBar(this); | 49 | QMenuBar *menuBar = new QMenuBar(this); |
45 | menuBar->setMargin( 0 ); // squeeze | 50 | menuBar->setMargin( 0 ); // squeeze |
46 | fileMenu = new QPopupMenu( this ); | 51 | fileMenu = new QPopupMenu( this ); |
47 | viewMenu = new QPopupMenu( this ); | 52 | viewMenu = new QPopupMenu( this ); |
48 | // customDirMenu = new QPopupMenu( this ); | 53 | // customDirMenu = new QPopupMenu( this ); |
49 | 54 | ||
50 | layout->addWidget( menuBar ); | 55 | layout->addWidget( menuBar ); |
51 | 56 | ||
52 | menuBar->insertItem( tr( "File" ), fileMenu); | 57 | menuBar->insertItem( tr( "File" ), fileMenu); |
53 | menuBar->insertItem( tr( "View" ), viewMenu); | 58 | menuBar->insertItem( tr( "View" ), viewMenu); |
54 | 59 | ||
55 | bool useBigIcon = qApp->desktop()->size().width() > 330; | 60 | bool useBigIcon = qApp->desktop()->size().width() > 330; |
56 | 61 | ||
57 | cdUpButton = new QToolButton( 0,"cdUpButton"); | 62 | cdUpButton = new QToolButton( 0,"cdUpButton"); |
58 | cdUpButton->setUsesBigPixmap( useBigIcon ); | 63 | cdUpButton->setUsesBigPixmap( useBigIcon ); |
59 | cdUpButton->setPixmap( Opie::Core::OResource::loadPixmap( "up", Opie::Core::OResource::SmallIcon ) ); | 64 | cdUpButton->setPixmap( Opie::Core::OResource::loadPixmap( "up", Opie::Core::OResource::SmallIcon ) ); |
60 | cdUpButton->setAutoRaise( true ); | 65 | cdUpButton->setAutoRaise( true ); |
61 | menuBar->insertItem( cdUpButton ); | 66 | menuBar->insertItem( cdUpButton ); |
62 | 67 | ||
63 | qpeDirButton= new QToolButton( 0,"QPEButton"); | 68 | qpeDirButton= new QToolButton( 0,"QPEButton"); |
64 | qpeDirButton->setUsesBigPixmap( useBigIcon ); | 69 | qpeDirButton->setUsesBigPixmap( useBigIcon ); |
65 | qpeDirButton->setPixmap( Opie::Core::OResource::loadPixmap( "logo/opielogo", Opie::Core::OResource::SmallIcon ) ); | 70 | qpeDirButton->setPixmap( Opie::Core::OResource::loadPixmap( "logo/opielogo", Opie::Core::OResource::SmallIcon ) ); |
66 | qpeDirButton->setAutoRaise( true ); | 71 | qpeDirButton->setAutoRaise( true ); |
67 | menuBar->insertItem( qpeDirButton ); | 72 | menuBar->insertItem( qpeDirButton ); |
68 | 73 | ||
69 | cfButton = new QToolButton( 0, "CFButton"); | 74 | cfButton = new QToolButton( 0, "CFButton"); |
70 | cfButton->setUsesBigPixmap( useBigIcon ); | 75 | cfButton->setUsesBigPixmap( useBigIcon ); |
71 | cfButton->setPixmap( Opie::Core::OResource::loadPixmap( "pcmcia", Opie::Core::OResource::SmallIcon ) ); | 76 | cfButton->setPixmap( Opie::Core::OResource::loadPixmap( "pcmcia", Opie::Core::OResource::SmallIcon ) ); |
72 | cfButton->setAutoRaise( true ); | 77 | cfButton->setAutoRaise( true ); |
73 | menuBar->insertItem( cfButton ); | 78 | menuBar->insertItem( cfButton ); |
74 | 79 | ||
75 | sdButton = new QToolButton( 0, "SDButton"); | 80 | sdButton = new QToolButton( 0, "SDButton"); |
76 | sdButton->setUsesBigPixmap( useBigIcon ); | 81 | sdButton->setUsesBigPixmap( useBigIcon ); |
77 | sdButton->setPixmap( Opie::Core::OResource::loadPixmap( "advancedfm/sdcard", Opie::Core::OResource::SmallIcon ) ); | 82 | sdButton->setPixmap( Opie::Core::OResource::loadPixmap( "advancedfm/sdcard", Opie::Core::OResource::SmallIcon ) ); |
78 | sdButton->setAutoRaise( true ); | 83 | sdButton->setAutoRaise( true ); |
79 | menuBar->insertItem( sdButton ); | 84 | menuBar->insertItem( sdButton ); |
80 | 85 | ||
81 | docButton = new QToolButton( 0,"docsButton"); | 86 | docButton = new QToolButton( 0,"docsButton"); |
82 | docButton->setUsesBigPixmap( useBigIcon ); | 87 | docButton->setUsesBigPixmap( useBigIcon ); |
83 | docButton->setPixmap( Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon ) ); | 88 | docButton->setPixmap( Opie::Core::OResource::loadPixmap( "DocsIcon", Opie::Core::OResource::SmallIcon ) ); |
84 | docButton->setAutoRaise( true ); | 89 | docButton->setAutoRaise( true ); |
85 | menuBar->insertItem( docButton ); | 90 | menuBar->insertItem( docButton ); |
86 | 91 | ||
87 | homeButton = new QToolButton( 0, "homeButton"); | 92 | homeButton = new QToolButton( 0, "homeButton"); |
88 | homeButton->setUsesBigPixmap( useBigIcon ); | 93 | homeButton->setUsesBigPixmap( useBigIcon ); |
89 | homeButton->setPixmap( Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon ) ); | 94 | homeButton->setPixmap( Opie::Core::OResource::loadPixmap( "home", Opie::Core::OResource::SmallIcon ) ); |
90 | homeButton->setAutoRaise( true ); | 95 | homeButton->setAutoRaise( true ); |
91 | menuBar->insertItem( homeButton ); | 96 | menuBar->insertItem( homeButton ); |
92 | 97 | ||
93 | fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); | 98 | fileMenu->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); |
94 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 99 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
95 | fileMenu->insertSeparator(); | 100 | fileMenu->insertSeparator(); |
96 | fileMenu->insertItem( tr( "File Search" ), this, SLOT( openSearch() )); | 101 | fileMenu->insertItem( tr( "File Search" ), this, SLOT( openSearch() )); |
97 | fileMenu->insertSeparator(); | 102 | fileMenu->insertSeparator(); |
98 | fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); | 103 | fileMenu->insertItem( tr( "Make Directory" ), this, SLOT( mkDir() )); |
99 | fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); | 104 | fileMenu->insertItem( tr( "Rename" ), this, SLOT( rn() )); |
100 | fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() )); | 105 | fileMenu->insertItem( tr( "Run Command" ), this, SLOT( runCommandStd() )); |
101 | fileMenu->insertItem( tr( "Run Command with Output" ), this, SLOT( runCommand() )); | 106 | fileMenu->insertItem( tr( "Run Command with Output" ), this, SLOT( runCommand() )); |
102 | fileMenu->insertSeparator(); | 107 | fileMenu->insertSeparator(); |
103 | fileMenu->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() )); | 108 | fileMenu->insertItem( tr( "Make Symlink" ), this, SLOT( mkSym() )); |
104 | fileMenu->insertItem( tr( "Select All" ), this, SLOT( selectAll() )); | 109 | fileMenu->insertItem( tr( "Select All" ), this, SLOT( selectAll() )); |
105 | fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() )); | 110 | fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() )); |
106 | fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); | 111 | fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); |
107 | fileMenu->setCheckable(TRUE); | 112 | fileMenu->setCheckable(TRUE); |
108 | 113 | ||
109 | viewMenu->insertItem( tr( "Switch to View 1" ), this, SLOT( switchToLocalTab())); | 114 | viewMenu->insertItem( tr( "Switch to View 1" ), this, SLOT( switchToLocalTab())); |
110 | viewMenu->insertItem( tr( "Switch to View 2" ), this, SLOT( switchToRemoteTab())); | 115 | viewMenu->insertItem( tr( "Switch to View 2" ), this, SLOT( switchToRemoteTab())); |
111 | viewMenu->insertItem( tr( "Refresh" ), this, SLOT( refreshCurrentTab())); | 116 | viewMenu->insertItem( tr( "Refresh" ), this, SLOT( refreshCurrentTab())); |
112 | // viewMenu->insertSeparator(); | 117 | // viewMenu->insertSeparator(); |
113 | // viewMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); | 118 | // viewMenu->insertItem( tr( "About" ), this, SLOT( doAbout() )); |
114 | viewMenu->setCheckable(true); | 119 | viewMenu->setCheckable(true); |
115 | viewMenu->setItemChecked( viewMenu->idAt(0), true); | 120 | viewMenu->setItemChecked( viewMenu->idAt(0), true); |
116 | viewMenu->setItemChecked( viewMenu->idAt(1), false); | 121 | viewMenu->setItemChecked( viewMenu->idAt(1), false); |
117 | 122 | ||
118 | s_addBookmark = tr("Bookmark Directory"); | 123 | s_addBookmark = tr("Bookmark Directory"); |
119 | s_removeBookmark = tr("Remove Current Directory from Bookmarks"); | 124 | s_removeBookmark = tr("Remove Current Directory from Bookmarks"); |
120 | 125 | ||
121 | // menuButton->insertItem(""); | 126 | // menuButton->insertItem(""); |
122 | 127 | ||
123 | // customDirMenu->insertItem(tr("Add This Directory")); | 128 | // customDirMenu->insertItem(tr("Add This Directory")); |
124 | // customDirMenu->insertItem(tr("Remove This Directory")); | 129 | // customDirMenu->insertItem(tr("Remove This Directory")); |
125 | // customDirMenu->insertSeparator(); | 130 | // customDirMenu->insertSeparator(); |
126 | 131 | ||
127 | QHBoxLayout *CBHB = new QHBoxLayout(); // parent layout will be set later | 132 | QHBoxLayout *CBHB = new QHBoxLayout(); // parent layout will be set later |
128 | CBHB->setMargin( 0 ); | 133 | CBHB->setMargin( 0 ); |
129 | CBHB->setSpacing( 1 ); | 134 | CBHB->setSpacing( 1 ); |
130 | 135 | ||
131 | menuButton = new MenuButton( this ); | 136 | menuButton = new MenuButton( this ); |
132 | 137 | ||
133 | menuButton->setUseLabel(false); | 138 | menuButton->setUseLabel(false); |
134 | menuButton->setMaximumWidth( 20 ); | 139 | menuButton->setMaximumWidth( 20 ); |
135 | menuButton->insertItem( s_addBookmark); | 140 | menuButton->insertItem( s_addBookmark); |
136 | menuButton->insertItem( s_removeBookmark); | 141 | menuButton->insertItem( s_removeBookmark); |
137 | menuButton->insertSeparator(); | 142 | menuButton->insertSeparator(); |
138 | // menuButton->setFocusPolicy(NoFocus); | 143 | // menuButton->setFocusPolicy(NoFocus); |
139 | CBHB->addWidget( menuButton ); | 144 | CBHB->addWidget( menuButton ); |
140 | 145 | ||
141 | customDirsToMenu(); | 146 | customDirsToMenu(); |
142 | 147 | ||
143 | currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); | 148 | currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); |
144 | currentPathCombo->setEditable(TRUE); | 149 | currentPathCombo->setEditable(TRUE); |
145 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); | 150 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); |
146 | // currentPathCombo->setFocusPolicy(NoFocus); | 151 | // currentPathCombo->setFocusPolicy(NoFocus); |
147 | CBHB->addWidget( currentPathCombo ); | 152 | CBHB->addWidget( currentPathCombo ); |
148 | 153 | ||
149 | layout->addLayout( CBHB ); | 154 | layout->addLayout( CBHB ); |
150 | 155 | ||
151 | TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); | 156 | TabWidget = new OSplitter( Horizontal, this, "TabWidget" ); |
152 | // TabWidget = new QTabWidget( this, "TabWidget" ); | 157 | // TabWidget = new QTabWidget( this, "TabWidget" ); |
153 | layout->addWidget( TabWidget, 4 ); | 158 | layout->addWidget( TabWidget, 4 ); |
154 | 159 | ||
155 | tab = new QWidget( TabWidget, "tab" ); | 160 | tab = new QWidget( TabWidget, "tab" ); |
156 | tabLayout = new QGridLayout( tab ); | 161 | tabLayout = new QGridLayout( tab ); |
157 | tabLayout->setSpacing( 2); | 162 | tabLayout->setSpacing( 2); |
158 | tabLayout->setMargin( 2); | 163 | tabLayout->setMargin( 2); |
159 | 164 | ||
160 | Local_View = new QListView( tab, "Local_View" ); | 165 | Local_View = new QListView( tab, "Local_View" ); |
161 | Local_View->addColumn( tr("File"),130); | 166 | Local_View->addColumn( tr("File"),130); |
162 | Local_View->addColumn( tr("Size"),-1); | 167 | Local_View->addColumn( tr("Size"),-1); |
163 | Local_View->setColumnAlignment(1,QListView::AlignRight); | 168 | Local_View->setColumnAlignment(1,QListView::AlignRight); |
164 | Local_View->addColumn( tr("Date"),-1); | 169 | Local_View->addColumn( tr("Date"),-1); |
165 | Local_View->setColumnAlignment(2,QListView::AlignRight); | 170 | Local_View->setColumnAlignment(2,QListView::AlignRight); |
166 | Local_View->setAllColumnsShowFocus(TRUE); | 171 | Local_View->setAllColumnsShowFocus(TRUE); |
167 | Local_View->setMultiSelection( TRUE ); | 172 | Local_View->setMultiSelection( TRUE ); |
168 | Local_View->setSelectionMode(QListView::Extended); | 173 | Local_View->setSelectionMode(QListView::Extended); |
169 | Local_View->setFocusPolicy(StrongFocus); | 174 | Local_View->setFocusPolicy(StrongFocus); |
170 | Local_View->installEventFilter( this ); | 175 | Local_View->installEventFilter( this ); |
171 | 176 | ||
172 | QPEApplication::setStylusOperation( Local_View->viewport() , QPEApplication::RightOnHold); | 177 | QPEApplication::setStylusOperation( Local_View->viewport() , QPEApplication::RightOnHold); |
173 | 178 | ||
174 | tabLayout->addWidget( Local_View, 0, 0 ); | 179 | tabLayout->addWidget( Local_View, 0, 0 ); |
175 | 180 | ||
176 | TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); | 181 | TabWidget->addWidget( tab,"advancedfm/smFileBrowser.png", tr("1")); |
177 | // TabWidget->insertTab( tab, tr("1")); | 182 | // TabWidget->insertTab( tab, tr("1")); |
178 | 183 | ||
179 | tab_2 = new QWidget( TabWidget, "tab_2" ); | 184 | tab_2 = new QWidget( TabWidget, "tab_2" ); |
180 | tabLayout_2 = new QGridLayout( tab_2 ); | 185 | tabLayout_2 = new QGridLayout( tab_2 ); |
181 | tabLayout_2->setSpacing( 2); | 186 | tabLayout_2->setSpacing( 2); |
182 | tabLayout_2->setMargin( 2); | 187 | tabLayout_2->setMargin( 2); |
183 | 188 | ||
184 | Remote_View = new QListView( tab_2, "Remote_View" ); | 189 | Remote_View = new QListView( tab_2, "Remote_View" ); |
185 | Remote_View->addColumn( tr("File"),130); | 190 | Remote_View->addColumn( tr("File"),130); |
186 | Remote_View->addColumn( tr("Size"),-1); | 191 | Remote_View->addColumn( tr("Size"),-1); |
187 | Remote_View->setColumnAlignment(1,QListView::AlignRight); | 192 | Remote_View->setColumnAlignment(1,QListView::AlignRight); |
188 | Remote_View->addColumn( tr("Date"),-1); | 193 | Remote_View->addColumn( tr("Date"),-1); |
189 | Remote_View->setColumnAlignment(2,QListView::AlignRight); | 194 | Remote_View->setColumnAlignment(2,QListView::AlignRight); |
190 | Remote_View->setAllColumnsShowFocus(TRUE); | 195 | Remote_View->setAllColumnsShowFocus(TRUE); |
191 | Remote_View->setMultiSelection( TRUE ); | 196 | Remote_View->setMultiSelection( TRUE ); |
192 | Remote_View->setSelectionMode(QListView::Extended); | 197 | Remote_View->setSelectionMode(QListView::Extended); |
193 | Remote_View->setFocusPolicy(StrongFocus); | 198 | Remote_View->setFocusPolicy(StrongFocus); |
194 | Remote_View->installEventFilter( this ); | 199 | Remote_View->installEventFilter( this ); |
195 | 200 | ||
196 | QPEApplication::setStylusOperation( Remote_View->viewport(), QPEApplication::RightOnHold); | 201 | QPEApplication::setStylusOperation( Remote_View->viewport(), QPEApplication::RightOnHold); |
197 | 202 | ||
198 | tabLayout_2->addWidget( Remote_View, 0, 0 ); | 203 | tabLayout_2->addWidget( Remote_View, 0, 0 ); |
199 | 204 | ||
200 | TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); | 205 | TabWidget->addWidget( tab_2, "advancedfm/smFileBrowser.png",tr( "2")); |
201 | TabWidget->setSizeChange( 370 ); | 206 | TabWidget->setSizeChange( 370 ); |
202 | // TabWidget->insertTab( tab_2, tr( "2")); | 207 | // TabWidget->insertTab( tab_2, tr( "2")); |
203 | 208 | ||
204 | /* tab_3 = new QWidget( TabWidget, "tab_3" ); | 209 | /* tab_3 = new QWidget( TabWidget, "tab_3" ); |
205 | tabLayout_3 = new QGridLayout( tab_3 ); | 210 | tabLayout_3 = new QGridLayout( tab_3 ); |
206 | tabLayout_3->setSpacing( 2); | 211 | tabLayout_3->setSpacing( 2); |
207 | tabLayout_3->setMargin( 2); | 212 | tabLayout_3->setMargin( 2); |
208 | 213 | ||
209 | 214 | ||
210 | // OFileDialog fileDialog; | 215 | // OFileDialog fileDialog; |
211 | // fileDialog; | 216 | // fileDialog; |
212 | // fileSelector = new FileSelector( "*",tab_3, "fileselector" , FALSE, FALSE); //buggy | 217 | // fileSelector = new FileSelector( "*",tab_3, "fileselector" , FALSE, FALSE); //buggy |
213 | // fileDialog = new OFileDialog("bangalow", tab_3, 4, 2, "Bungalow"); | 218 | // fileDialog = new OFileDialog("bangalow", tab_3, 4, 2, "Bungalow"); |
214 | // OFileSelector fileDialog = new OFileSelector( tab_3, 4, 2,"/"); | 219 | // OFileSelector fileDialog = new OFileSelector( tab_3, 4, 2,"/"); |
215 | 220 | ||
216 | QListView *fileTree; | 221 | QListView *fileTree; |
217 | fileTree = new QListView( tab_3, "tree" ); | 222 | fileTree = new QListView( tab_3, "tree" ); |
218 | 223 | ||
219 | 224 | ||
220 | tabLayout_3->addMultiCellWidget( fileTree, 0, 0, 0, 3 ); | 225 | tabLayout_3->addMultiCellWidget( fileTree, 0, 0, 0, 3 ); |
221 | 226 | ||
222 | TabWidget->insertTab( tab_3, tr( "Remote" ) ); | 227 | TabWidget->insertTab( tab_3, tr( "Remote" ) ); |
223 | */ | 228 | */ |
224 | 229 | ||
225 | /////////////// | 230 | /////////////// |
226 | 231 | ||
227 | if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) { | 232 | if( !StorageInfo::hasSd() || !StorageInfo::hasMmc()) { |
228 | sdButton->hide(); | 233 | sdButton->hide(); |
229 | } | 234 | } |
230 | if( !StorageInfo::hasCf() ) { | 235 | if( !StorageInfo::hasCf() ) { |
231 | cfButton->hide(); | 236 | cfButton->hide(); |