summaryrefslogtreecommitdiff
path: root/noncore/apps
authorllornkcor <llornkcor>2002-09-02 13:46:42 (UTC)
committer llornkcor <llornkcor>2002-09-02 13:46:42 (UTC)
commit4d7f2095e3119cac9319ab6b48492705188ce5cb (patch) (unidiff)
tree0b59cbeab8ebbdc421dabb3049895ccdb69baaca /noncore/apps
parent4ee373ce314d6790c50861834d1c6d16f13b15f1 (diff)
downloadopie-4d7f2095e3119cac9319ab6b48492705188ce5cb.zip
opie-4d7f2095e3119cac9319ab6b48492705188ce5cb.tar.gz
opie-4d7f2095e3119cac9319ab6b48492705188ce5cb.tar.bz2
added add To Documents in menus, and cleaned up compiler warnings
Diffstat (limited to 'noncore/apps') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp57
-rw-r--r--noncore/apps/advancedfm/advancedfm.h1
2 files changed, 45 insertions, 13 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 0f2555d..c054465 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -140,2 +140,3 @@ AdvancedFm::AdvancedFm( )
140 fileMenu->insertSeparator(); 140 fileMenu->insertSeparator();
141 fileMenu->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() ));
141 fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() )); 142 fileMenu->insertItem( tr( "Delete" ), this, SLOT( del() ));
@@ -296,3 +297,3 @@ void AdvancedFm::cleanUp()
296 297
297void AdvancedFm::tabChanged(QWidget *w) 298void AdvancedFm::tabChanged(QWidget *)
298{ 299{
@@ -334,3 +335,3 @@ void AdvancedFm::populateLocalView()
334 QFileInfo sym( symLink); 335 QFileInfo sym( symLink);
335 fileS.sprintf( "%10li", sym.size() ); 336 fileS.sprintf( "%10i", sym.size() );
336 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() ); 337 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() );
@@ -338,3 +339,3 @@ void AdvancedFm::populateLocalView()
338 } else { 339 } else {
339 fileS.sprintf( "%10li", fi->size() ); 340 fileS.sprintf( "%10i", fi->size() );
340 fileL.sprintf( "%s",fi->fileName().data() ); 341 fileL.sprintf( "%s",fi->fileName().data() );
@@ -433,3 +434,3 @@ void AdvancedFm::populateRemoteView()
433 QFileInfo sym( symLink); 434 QFileInfo sym( symLink);
434 fileS.sprintf( "%10li", sym.size() ); 435 fileS.sprintf( "%10i", sym.size() );
435 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() ); 436 fileL.sprintf( "%s -> %s", fi->fileName().data(),sym.absFilePath().data() );
@@ -438,3 +439,3 @@ void AdvancedFm::populateRemoteView()
438 // qDebug("Not a dir: "+currentDir.canonicalPath()+fileL); 439 // qDebug("Not a dir: "+currentDir.canonicalPath()+fileL);
439 fileS.sprintf( "%10li", fi->size() ); 440 fileS.sprintf( "%10i", fi->size() );
440 fileL.sprintf( "%s",fi->fileName().data() ); 441 fileL.sprintf( "%s",fi->fileName().data() );
@@ -631,3 +632,3 @@ void AdvancedFm::showRemoteHidden()
631 632
632void AdvancedFm::localListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) 633void AdvancedFm::localListPressed( int mouse, QListViewItem *, const QPoint& , int )
633{ 634{
@@ -644,3 +645,3 @@ void AdvancedFm::localListPressed( int mouse, QListViewItem *item, const QPoint
644 645
645void AdvancedFm::remoteListPressed( int mouse, QListViewItem *item, const QPoint &point, int i) 646void AdvancedFm::remoteListPressed( int mouse, QListViewItem*, const QPoint&, int )
646{ 647{
@@ -1301,3 +1302,3 @@ void AdvancedFm::copySameDir() {
1301 case 0: 1302 case 0:
1302 qDebug(""); 1303
1303 f.remove(); 1304 f.remove();
@@ -1802,3 +1803,3 @@ void AdvancedFm::doBeam() {
1802 1803
1803void AdvancedFm::fileBeamFinished( Ir *ir) { 1804void AdvancedFm::fileBeamFinished( Ir *) {
1804 QMessageBox::message( tr("Advancedfm Beam out"), tr("Ir sent.") ,tr("Ok") ); 1805 QMessageBox::message( tr("Advancedfm Beam out"), tr("Ir sent.") ,tr("Ok") );
@@ -1858,7 +1859,8 @@ void AdvancedFm::showFileMenu() {
1858 m->insertSeparator(); 1859 m->insertSeparator();
1860 m->insertItem( tr( "Add To Documents" ), this, SLOT( addToDocs() ));
1859 1861
1860 if(isLocalView) 1862// if(isLocalView)
1861 m->insertItem( tr( "Rescan" ), this, SLOT( populateLocalView() )); 1863// m->insertItem( tr( "Rescan" ), this, SLOT( populateLocalView() ));
1862 else 1864// else
1863 m->insertItem( tr( "Rescan" ), this, SLOT( populateRemoteView() )); 1865// m->insertItem( tr( "Rescan" ), this, SLOT( populateRemoteView() ));
1864 1866
@@ -1883,2 +1885,3 @@ void AdvancedFm::showFileMenu() {
1883 m->setItemChecked(m->idAt(0),FALSE); 1885 m->setItemChecked(m->idAt(0),FALSE);
1886
1884 if(Ir::supported()) 1887 if(Ir::supported())
@@ -1917 +1920,29 @@ QString AdvancedFm::checkDiskSpace(const QString &path) {
1917 1920
1921void AdvancedFm::addToDocs() {
1922 QStringList strListPaths = getPath();
1923 if( strListPaths.count() > 0) {
1924 QString curFile;
1925 if (TabWidget->currentPageIndex() == 0) {
1926 for ( QStringList::Iterator it = strListPaths.begin(); it != strListPaths.end(); ++it ) {
1927 curFile = currentDir.canonicalPath()+"/"+(*it);
1928 qDebug(curFile);
1929 DocLnk f;
1930// curFile.replace(QRegExp("\\..*"),"");
1931 f.setName((*it));
1932 f.setFile( curFile);
1933 f.writeLink();
1934 }
1935 } else {
1936 for ( QStringList::Iterator it = strListPaths.begin(); it != strListPaths.end(); ++it ) {
1937 curFile = currentRemoteDir.canonicalPath()+"/"+(*it);
1938 qDebug(curFile);
1939
1940 DocLnk f;
1941// curFile.replace(QRegExp("\\..*"),"");
1942 f.setName((*it));
1943 f.setFile( curFile);
1944 f.writeLink();
1945 }
1946 }
1947 }
1948}
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 5b714ae..53dad50 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -69,2 +69,3 @@ public:
69protected slots: 69protected slots:
70 void addToDocs();
70 void doLocalCd(); 71 void doLocalCd();