Diffstat (limited to 'noncore/apps/advancedfm/advancedfmData.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmData.cpp | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/noncore/apps/advancedfm/advancedfmData.cpp b/noncore/apps/advancedfm/advancedfmData.cpp index bb80dc6..90425dc 100644 --- a/noncore/apps/advancedfm/advancedfmData.cpp +++ b/noncore/apps/advancedfm/advancedfmData.cpp | |||
@@ -188,82 +188,91 @@ void AdvancedFm::init() { | |||
188 | tabLayout_3->setMargin( 2); | 188 | tabLayout_3->setMargin( 2); |
189 | 189 | ||
190 | 190 | ||
191 | // OFileDialog fileDialog; | 191 | // OFileDialog fileDialog; |
192 | // fileDialog; | 192 | // fileDialog; |
193 | // fileSelector = new FileSelector( "*",tab_3, "fileselector" , FALSE, FALSE); //buggy | 193 | // fileSelector = new FileSelector( "*",tab_3, "fileselector" , FALSE, FALSE); //buggy |
194 | // fileDialog = new OFileDialog("bangalow", tab_3, 4, 2, "Bungalow"); | 194 | // fileDialog = new OFileDialog("bangalow", tab_3, 4, 2, "Bungalow"); |
195 | // OFileSelector fileDialog = new OFileSelector( tab_3, 4, 2,"/"); | 195 | // OFileSelector fileDialog = new OFileSelector( tab_3, 4, 2,"/"); |
196 | 196 | ||
197 | QListView *fileTree; | 197 | QListView *fileTree; |
198 | fileTree = new QListView( tab_3, "tree" ); | 198 | fileTree = new QListView( tab_3, "tree" ); |
199 | 199 | ||
200 | 200 | ||
201 | tabLayout_3->addMultiCellWidget( fileTree, 0, 0, 0, 3 ); | 201 | tabLayout_3->addMultiCellWidget( fileTree, 0, 0, 0, 3 ); |
202 | 202 | ||
203 | TabWidget->insertTab( tab_3, tr( "Remote" ) ); | 203 | TabWidget->insertTab( tab_3, tr( "Remote" ) ); |
204 | */ | 204 | */ |
205 | 205 | ||
206 | /////////////// | 206 | /////////////// |
207 | 207 | ||
208 | struct utsname name; /* check for embedix kernel running on the zaurus*/ | 208 | struct utsname name; /* check for embedix kernel running on the zaurus*/ |
209 | if (uname(&name) != -1) { | 209 | if (uname(&name) != -1) { |
210 | QString release=name.release; | 210 | QString release=name.release; |
211 | if(release.find("embedix",0,TRUE) !=-1) { | 211 | if(release.find("embedix",0,TRUE) !=-1) { |
212 | zaurusDevice=TRUE; | 212 | zaurusDevice=TRUE; |
213 | } else { | 213 | } else { |
214 | zaurusDevice=FALSE; | 214 | zaurusDevice=FALSE; |
215 | sdButton->hide(); | 215 | sdButton->hide(); |
216 | } | 216 | } |
217 | } | 217 | } |
218 | 218 | ||
219 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 219 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
220 | currentDir.setPath( QDir::currentDirPath()); | 220 | currentDir.setPath( QDir::currentDirPath()); |
221 | 221 | ||
222 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 222 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
223 | currentRemoteDir.setPath( QDir::currentDirPath()); | 223 | currentRemoteDir.setPath( QDir::currentDirPath()); |
224 | 224 | ||
225 | b = TRUE; | 225 | b = TRUE; |
226 | 226 | ||
227 | filterStr="*"; | 227 | filterStr="*"; |
228 | b=FALSE; | 228 | b=FALSE; |
229 | TabWidget->setCurrentTab(0); | 229 | TabWidget->setCurrentTab(0); |
230 | 230 | ||
231 | } | 231 | } |
232 | 232 | ||
233 | void AdvancedFm::initConnections() { | 233 | void AdvancedFm::initConnections() |
234 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 234 | { |
235 | connect( qpeDirButton ,SIGNAL(released()),this,SLOT( QPEButtonPushed()) ); | 235 | |
236 | connect( cfButton ,SIGNAL(released()),this,SLOT( CFButtonPushed()) ); | 236 | connect( qApp,SIGNAL( aboutToQuit()), |
237 | connect( sdButton ,SIGNAL(released()),this,SLOT( SDButtonPushed()) ); | 237 | this, SLOT( cleanUp()) ); |
238 | connect( cdUpButton ,SIGNAL(released()),this,SLOT( upDir()) ); | 238 | connect( qpeDirButton ,SIGNAL(released()), |
239 | connect( docButton,SIGNAL(released()),this,SLOT( docButtonPushed()) ); | 239 | this,SLOT( QPEButtonPushed()) ); |
240 | connect( homeButton,SIGNAL(released()),this,SLOT(homeButtonPushed()) ); | 240 | connect( cfButton ,SIGNAL(released()), |
241 | this,SLOT( CFButtonPushed()) ); | ||
242 | connect( sdButton ,SIGNAL(released()), | ||
243 | this,SLOT( SDButtonPushed()) ); | ||
244 | connect( cdUpButton ,SIGNAL(released()), | ||
245 | this,SLOT( upDir()) ); | ||
246 | connect( docButton,SIGNAL(released()), | ||
247 | this,SLOT( docButtonPushed()) ); | ||
248 | connect( homeButton,SIGNAL(released()), | ||
249 | this,SLOT( homeButtonPushed()) ); | ||
241 | connect( currentPathCombo, SIGNAL( activated( const QString & ) ), | 250 | connect( currentPathCombo, SIGNAL( activated( const QString & ) ), |
242 | this, SLOT( currentPathComboActivated( const QString & ) ) ); | 251 | this, SLOT( currentPathComboActivated( const QString & ) ) ); |
243 | 252 | ||
244 | connect( currentPathCombo->lineEdit(),SIGNAL(returnPressed()), | 253 | connect( currentPathCombo->lineEdit(),SIGNAL(returnPressed()), |
245 | this,SLOT(currentPathComboChanged())); | 254 | this,SLOT(currentPathComboChanged())); |
246 | 255 | ||
247 | connect( Local_View, SIGNAL( clicked( QListViewItem*)), | 256 | connect( Local_View, SIGNAL( clicked( QListViewItem*)), |
248 | this,SLOT( localListClicked(QListViewItem *)) ); | 257 | this,SLOT( ListClicked(QListViewItem *)) ); |
249 | connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), | 258 | connect( Local_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), |
250 | this,SLOT( localListPressed(int, QListViewItem *, const QPoint&, int)) ); | 259 | this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); |
251 | 260 | ||
252 | connect( Local_View, SIGNAL( selectionChanged() ), SLOT( cancelMenuTimer() ) ); | 261 | connect( Local_View, SIGNAL( selectionChanged() ), SLOT( cancelMenuTimer() ) ); |
253 | 262 | ||
254 | connect( Remote_View, SIGNAL( clicked( QListViewItem*)), | 263 | connect( Remote_View, SIGNAL( clicked( QListViewItem*)), |
255 | this,SLOT( remoteListClicked(QListViewItem *)) ); | 264 | this,SLOT( ListClicked(QListViewItem *)) ); |
256 | connect( Remote_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), | 265 | connect( Remote_View, SIGNAL( mouseButtonPressed( int, QListViewItem *, const QPoint&, int)), |
257 | this,SLOT( remoteListPressed(int, QListViewItem *, const QPoint&, int)) ); | 266 | this,SLOT( ListPressed(int, QListViewItem *, const QPoint&, int)) ); |
258 | 267 | ||
259 | connect( TabWidget,SIGNAL(currentChanged(QWidget *)), | 268 | connect( TabWidget,SIGNAL(currentChanged(QWidget *)), |
260 | this,SLOT(tabChanged(QWidget*))); | 269 | this,SLOT(tabChanged(QWidget*))); |
261 | 270 | ||
262 | connect( &menuTimer, SIGNAL( timeout() ), SLOT( showFileMenu() ) ); | 271 | connect( &menuTimer, SIGNAL( timeout() ), SLOT( showFileMenu() ) ); |
263 | 272 | ||
264 | connect( menuButton, SIGNAL( selected(const QString &)), SLOT(gotoCustomDir(const QString&))); | 273 | connect( menuButton, SIGNAL( selected(const QString &)), SLOT(gotoCustomDir(const QString&))); |
265 | // connect( menuButton, SIGNAL( selected( int)), SLOT( dirMenuSelected(int))); | 274 | // connect( menuButton, SIGNAL( selected( int)), SLOT( dirMenuSelected(int))); |
266 | 275 | ||
267 | // connect( customDirMenu, SIGNAL( activated(int)), this, SLOT( dirMenuSelected(int))); | 276 | // connect( customDirMenu, SIGNAL( activated(int)), this, SLOT( dirMenuSelected(int))); |
268 | 277 | ||
269 | } | 278 | } |