author | llornkcor <llornkcor> | 2004-09-25 06:21:43 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 06:21:43 (UTC) |
commit | 448e2835ff7b84162022b62f8570935739a167bb (patch) (side-by-side diff) | |
tree | 57cbbc4e2a6a87119df7240a346b256314e99910 | |
parent | c47a2d0e8ec283737f7c43474be4cf8070cde046 (diff) | |
download | opie-448e2835ff7b84162022b62f8570935739a167bb.zip opie-448e2835ff7b84162022b62f8570935739a167bb.tar.gz opie-448e2835ff7b84162022b62f8570935739a167bb.tar.bz2 |
change message
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 6f017b4..ec7a08a 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -248,101 +248,102 @@ void AdvancedFm::ListClicked(QListViewItem *selectedItem) { isDirectory = true; } if( isDirectory ) { CurrentDir()->cd( strItem, TRUE); populateView(); CurrentView()->ensureItemVisible( CurrentView()->firstChild()); } chdir( strItem.latin1()); } } void AdvancedFm::ListPressed( int mouse, QListViewItem *item, const QPoint& , int ) { Q_UNUSED(item); switch (mouse) { case 1: { if(renameBox != 0 ) { cancelRename(); } } break; // case 2: // menuTimer.start( 50, TRUE ); // break; }; } void AdvancedFm::refreshCurrentTab() { populateView(); // if ( TabWidget->currentWidget() == tab) { } void AdvancedFm::switchToLocalTab() { TabWidget->setCurrentWidget(0); // Local_View->setFocus(); whichTab = 1; } void AdvancedFm::switchToRemoteTab() { TabWidget->setCurrentWidget(1); // Remote_View->setFocus(); whichTab = 2; } void AdvancedFm::currentPathComboChanged() { - if(QDir( currentPathCombo->lineEdit()->text()).exists()) { - CurrentDir()->setPath( currentPathCombo->lineEdit()->text() ); + QString pDir = currentPathCombo->lineEdit()->text(); + if(QDir(pDir).exists()) { + CurrentDir()->setPath(pDir ); populateView(); } else { - QMessageBox::message(tr("Note"),tr("<p>That directory does not exist</p>")); + QMessageBox::message(tr("Note"),tr("<p>%1 does not exist</p>").arg(pDir)); } } void AdvancedFm::fillCombo(const QString ¤tPath) { if ( TabWidget->currentWidget() == tab) { // if ( whichTab == 1) { currentPathCombo->lineEdit()->setText( currentPath); if( localDirPathStringList.grep( currentPath,TRUE).isEmpty() ) { currentPathCombo->clear(); localDirPathStringList.prepend( currentPath ); currentPathCombo->insertStringList( localDirPathStringList,-1); } } else { currentPathCombo->lineEdit()->setText( currentPath); if( remoteDirPathStringList.grep( currentPath,TRUE).isEmpty() ) { currentPathCombo->clear(); remoteDirPathStringList.prepend( currentPath ); currentPathCombo->insertStringList( remoteDirPathStringList,-1); } } } QStringList AdvancedFm::getPath() { QStringList strList; QListView *thisView=CurrentView(); QList<QListViewItem> * getSelectedItems( QListView * thisView ); QListViewItemIterator it( thisView ); for ( ; it.current(); ++it ) { if ( it.current()->isSelected() ) { strList << it.current()->text(0); // odebug << it.current()->text(0) << oendl; } } return strList; } void AdvancedFm::changeTo(const QString dir) { chdir( dir.latin1()); CurrentDir()->cd(dir, TRUE); populateView(); update(); } void AdvancedFm::homeButtonPushed() { changeTo(QDir::homeDirPath()); } |