author | llornkcor <llornkcor> | 2002-07-28 19:16:22 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-28 19:16:22 (UTC) |
commit | 89f6643ef5f1f4401d45f51d9115636742dd926b (patch) (unidiff) | |
tree | 179bb54eeea55d944086d10ea316c6e219d18017 | |
parent | 3cf3093654579932750fe82afa4504dbef96b937 (diff) | |
download | opie-89f6643ef5f1f4401d45f51d9115636742dd926b.zip opie-89f6643ef5f1f4401d45f51d9115636742dd926b.tar.gz opie-89f6643ef5f1f4401d45f51d9115636742dd926b.tar.bz2 |
made caption change with tab
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 16dc7da..818a281 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -275,37 +275,42 @@ void AdvancedFm::cleanUp() | |||
275 | QString sfile=QDir::homeDirPath(); | 275 | QString sfile=QDir::homeDirPath(); |
276 | if(sfile.right(1) != "/") | 276 | if(sfile.right(1) != "/") |
277 | sfile+="/._temp"; | 277 | sfile+="/._temp"; |
278 | else | 278 | else |
279 | sfile+="._temp"; | 279 | sfile+="._temp"; |
280 | QFile file( sfile); | 280 | QFile file( sfile); |
281 | if(file.exists()) | 281 | if(file.exists()) |
282 | file.remove(); | 282 | file.remove(); |
283 | } | 283 | } |
284 | 284 | ||
285 | void AdvancedFm::tabChanged(QWidget *w) | 285 | void AdvancedFm::tabChanged(QWidget *w) |
286 | { | 286 | { |
287 | if (TabWidget->currentPageIndex() == 0) { | 287 | if (TabWidget->currentPageIndex() == 0) { |
288 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); | 288 | currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); |
289 | viewMenu->setItemChecked(viewMenu->idAt(0),TRUE); | 289 | viewMenu->setItemChecked(viewMenu->idAt(0),TRUE); |
290 | viewMenu->setItemChecked(viewMenu->idAt(1),FALSE); | 290 | viewMenu->setItemChecked(viewMenu->idAt(1),FALSE); |
291 | QString fs= getFileSystemType((const QString &) currentDir.canonicalPath()); | ||
292 | setCaption("AdvancedFm :: "+fs+" :: "+checkDiskSpace((const QString &) currentDir.canonicalPath())+" kB free" ); | ||
293 | |||
291 | } | 294 | } |
292 | if (TabWidget->currentPageIndex() == 1) { | 295 | if (TabWidget->currentPageIndex() == 1) { |
293 | currentPathCombo->lineEdit()->setText( currentRemoteDir.canonicalPath()); | 296 | currentPathCombo->lineEdit()->setText( currentRemoteDir.canonicalPath()); |
294 | viewMenu->setItemChecked(viewMenu->idAt(1),TRUE); | 297 | viewMenu->setItemChecked(viewMenu->idAt(1),TRUE); |
295 | viewMenu->setItemChecked(viewMenu->idAt(0),FALSE); | 298 | viewMenu->setItemChecked(viewMenu->idAt(0),FALSE); |
299 | QString fs= getFileSystemType((const QString &) currentRemoteDir.canonicalPath()); | ||
300 | setCaption("AdvancedFm :: "+fs+" :: "+checkDiskSpace((const QString &) currentRemoteDir.canonicalPath())+" kB free" ); | ||
296 | } | 301 | } |
297 | } | 302 | } |
298 | 303 | ||
299 | 304 | ||
300 | void AdvancedFm::populateLocalView() | 305 | void AdvancedFm::populateLocalView() |
301 | { | 306 | { |
302 | QPixmap pm; | 307 | QPixmap pm; |
303 | Local_View->clear(); | 308 | Local_View->clear(); |
304 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 309 | currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
305 | currentDir.setMatchAllDirs(TRUE); | 310 | currentDir.setMatchAllDirs(TRUE); |
306 | currentDir.setNameFilter(filterStr); | 311 | currentDir.setNameFilter(filterStr); |
307 | QString fileL, fileS, fileDate; | 312 | QString fileL, fileS, fileDate; |
308 | QString fs= getFileSystemType((const QString &) currentDir.canonicalPath()); | 313 | QString fs= getFileSystemType((const QString &) currentDir.canonicalPath()); |
309 | setCaption("AdvancedFm :: "+fs+" :: "+checkDiskSpace((const QString &) currentDir.canonicalPath())+" kB free" ); | 314 | setCaption("AdvancedFm :: "+fs+" :: "+checkDiskSpace((const QString &) currentDir.canonicalPath())+" kB free" ); |
310 | bool isDir=FALSE; | 315 | bool isDir=FALSE; |
311 | const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); | 316 | const QFileInfoList *list = currentDir.entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); |