author | llornkcor <llornkcor> | 2004-01-08 22:46:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-01-08 22:46:40 (UTC) |
commit | b52dbdb9e992bd891d69601a6425086099e2ea04 (patch) (unidiff) | |
tree | 16f57fb5e0063c5095161b30a898287e22e318b5 | |
parent | 5862ce131c780c38d5df7d336ec5d8fb8f62a0bc (diff) | |
download | opie-b52dbdb9e992bd891d69601a6425086099e2ea04.zip opie-b52dbdb9e992bd891d69601a6425086099e2ea04.tar.gz opie-b52dbdb9e992bd891d69601a6425086099e2ea04.tar.bz2 |
make quicklaunch again
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 10 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 5 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.pro | 28 | ||||
-rw-r--r-- | noncore/apps/advancedfm/main.cpp | 6 |
4 files changed, 44 insertions, 5 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index ac16540..9c13e53 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -20,125 +20,129 @@ | |||
20 | 20 | ||
21 | #include <qpe/filemanager.h> | 21 | #include <qpe/filemanager.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 22 | #include <qpe/qcopenvelope_qws.h> |
23 | #include <qpe/qpeapplication.h> | 23 | #include <qpe/qpeapplication.h> |
24 | #include <qpe/config.h> | 24 | #include <qpe/config.h> |
25 | #include <qpe/mimetype.h> | 25 | #include <qpe/mimetype.h> |
26 | #include <qpe/applnk.h> | 26 | #include <qpe/applnk.h> |
27 | #include <qpe/ir.h> | 27 | #include <qpe/ir.h> |
28 | #include <qpe/resource.h> | 28 | #include <qpe/resource.h> |
29 | #include <qpe/menubutton.h> | 29 | #include <qpe/menubutton.h> |
30 | 30 | ||
31 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
32 | #include <qfile.h> | 32 | #include <qfile.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qpopupmenu.h> | 34 | #include <qpopupmenu.h> |
35 | #include <qlistview.h> | 35 | #include <qlistview.h> |
36 | #include <qlabel.h> | 36 | #include <qlabel.h> |
37 | #include <qwidget.h> | 37 | #include <qwidget.h> |
38 | #include <qlayout.h> | 38 | #include <qlayout.h> |
39 | #include <qimage.h> | 39 | #include <qimage.h> |
40 | #include <qmessagebox.h> | 40 | #include <qmessagebox.h> |
41 | #include <qlineedit.h> | 41 | #include <qlineedit.h> |
42 | 42 | ||
43 | #include <qpe/qpemessagebox.h> | 43 | #include <qpe/qpemessagebox.h> |
44 | 44 | ||
45 | #include <sys/stat.h> | 45 | #include <sys/stat.h> |
46 | #include <time.h> | 46 | #include <time.h> |
47 | #include <dirent.h> | 47 | #include <dirent.h> |
48 | #include <fcntl.h> | 48 | #include <fcntl.h> |
49 | #include <sys/vfs.h> | 49 | #include <sys/vfs.h> |
50 | #include <mntent.h> | 50 | #include <mntent.h> |
51 | 51 | ||
52 | #ifdef NOQUICKLAUNCH | ||
52 | AdvancedFm::AdvancedFm( ) | 53 | AdvancedFm::AdvancedFm( ) |
54 | #else | ||
55 | AdvancedFm::AdvancedFm(QWidget *,const char*, WFlags ) | ||
56 | #endif | ||
53 | : QMainWindow( ) { | 57 | : QMainWindow( ) { |
54 | init(); | 58 | init(); |
55 | renameBox = 0; | 59 | renameBox = 0; |
56 | 60 | ||
57 | unknownXpm = Resource::loadImage( "UnknownDocument" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); | 61 | unknownXpm = Resource::loadImage( "UnknownDocument" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); |
58 | 62 | ||
59 | initConnections(); | 63 | initConnections(); |
60 | whichTab=1; | 64 | whichTab=1; |
61 | rePopulate(); | 65 | rePopulate(); |
62 | currentPathCombo->setFocus(); | 66 | currentPathCombo->setFocus(); |
63 | channel = new QCopChannel( "QPE/Application/advancedfm", this ); | 67 | channel = new QCopChannel( "QPE/Application/advancedfm", this ); |
64 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), | 68 | connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), |
65 | this, SLOT( qcopReceive(const QCString&, const QByteArray&)) ); | 69 | this, SLOT( qcopReceive(const QCString&, const QByteArray&)) ); |
66 | } | 70 | } |
67 | 71 | ||
68 | AdvancedFm::~AdvancedFm() { | 72 | AdvancedFm::~AdvancedFm() { |
69 | } | 73 | } |
70 | 74 | ||
71 | 75 | ||
72 | void AdvancedFm::cleanUp() { | 76 | void AdvancedFm::cleanUp() { |
73 | QString sfile=QDir::homeDirPath(); | 77 | QString sfile=QDir::homeDirPath(); |
74 | if(sfile.right(1) != "/") | 78 | if(sfile.right(1) != "/") |
75 | sfile+="/._temp"; | 79 | sfile+="/._temp"; |
76 | else | 80 | else |
77 | sfile+="._temp"; | 81 | sfile+="._temp"; |
78 | QFile file( sfile); | 82 | QFile file( sfile); |
79 | if(file.exists()) | 83 | if(file.exists()) |
80 | file.remove(); | 84 | file.remove(); |
81 | } | 85 | } |
82 | 86 | ||
83 | void AdvancedFm::tabChanged(QWidget *) { | 87 | void AdvancedFm::tabChanged(QWidget *) { |
84 | // qWarning("tab changed"); | 88 | // qWarning("tab changed"); |
85 | QString path = CurrentDir()->canonicalPath(); | 89 | QString path = CurrentDir()->canonicalPath(); |
86 | currentPathCombo->lineEdit()->setText( path ); | 90 | currentPathCombo->lineEdit()->setText( path ); |
87 | 91 | ||
88 | if(whichTab == 1) { | 92 | if(whichTab == 1) { |
89 | viewMenu->setItemChecked(viewMenu->idAt(0), true); | 93 | viewMenu->setItemChecked(viewMenu->idAt(0), true); |
90 | viewMenu->setItemChecked(viewMenu->idAt(1), false); | 94 | viewMenu->setItemChecked(viewMenu->idAt(1), false); |
91 | } else { | 95 | } else { |
92 | viewMenu->setItemChecked(viewMenu->idAt(0), false); | 96 | viewMenu->setItemChecked(viewMenu->idAt(0), false); |
93 | viewMenu->setItemChecked(viewMenu->idAt(1), true); | 97 | viewMenu->setItemChecked(viewMenu->idAt(1), true); |
94 | } | 98 | } |
95 | 99 | ||
96 | QString fs= getFileSystemType( (const QString &) path); | 100 | QString fs= getFileSystemType( (const QString &) path); |
97 | 101 | ||
98 | setCaption(tr("AdvancedFm :: ")+fs+" :: " | 102 | setCaption(tr("AdvancedFm :: ")+fs+" :: " |
99 | +checkDiskSpace( (const QString &) path )+ tr(" kB free") ); | 103 | +checkDiskSpace( (const QString &) path )+ tr(" kB free") ); |
100 | chdir( path.latin1()); | 104 | chdir( path.latin1()); |
101 | } | 105 | } |
102 | 106 | ||
103 | 107 | ||
104 | void AdvancedFm::populateView() { | 108 | void AdvancedFm::populateView() { |
105 | 109 | ||
106 | qWarning("PopulateView"); | 110 | // qWarning("PopulateView"); |
107 | QPixmap pm; | 111 | QPixmap pm; |
108 | QListView *thisView = CurrentView(); | 112 | QListView *thisView = CurrentView(); |
109 | QDir *thisDir = CurrentDir(); | 113 | QDir *thisDir = CurrentDir(); |
110 | QString path = thisDir->canonicalPath(); | 114 | QString path = thisDir->canonicalPath(); |
111 | 115 | ||
112 | qWarning("path is "+path); | 116 | //qWarning("path is "+path); |
113 | thisView->clear(); | 117 | thisView->clear(); |
114 | thisDir->setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); | 118 | thisDir->setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); |
115 | thisDir->setMatchAllDirs(TRUE); | 119 | thisDir->setMatchAllDirs(TRUE); |
116 | thisDir->setNameFilter(filterStr); | 120 | thisDir->setNameFilter(filterStr); |
117 | QString fileL, fileS, fileDate; | 121 | QString fileL, fileS, fileDate; |
118 | QString fs= getFileSystemType((const QString &) path); | 122 | QString fs= getFileSystemType((const QString &) path); |
119 | setCaption(tr("AdvancedFm :: ")+fs+" :: " | 123 | setCaption(tr("AdvancedFm :: ")+fs+" :: " |
120 | +checkDiskSpace((const QString &) path)+ tr(" kB free") ); | 124 | +checkDiskSpace((const QString &) path)+ tr(" kB free") ); |
121 | bool isDir=FALSE; | 125 | bool isDir=FALSE; |
122 | const QFileInfoList *list = thisDir->entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); | 126 | const QFileInfoList *list = thisDir->entryInfoList( /*QDir::All*/ /*, QDir::SortByMask*/); |
123 | QFileInfoListIterator it(*list); | 127 | QFileInfoListIterator it(*list); |
124 | QFileInfo *fi; | 128 | QFileInfo *fi; |
125 | while ( (fi=it.current()) ) { | 129 | while ( (fi=it.current()) ) { |
126 | if (fi->isSymLink() ) { | 130 | if (fi->isSymLink() ) { |
127 | QString symLink=fi->readLink(); | 131 | QString symLink=fi->readLink(); |
128 | QFileInfo sym( symLink); | 132 | QFileInfo sym( symLink); |
129 | fileS.sprintf( "%10i", sym.size() ); | 133 | fileS.sprintf( "%10i", sym.size() ); |
130 | fileL = fi->fileName() +" -> " + sym.filePath().data(); | 134 | fileL = fi->fileName() +" -> " + sym.filePath().data(); |
131 | fileDate = sym.lastModified().toString(); | 135 | fileDate = sym.lastModified().toString(); |
132 | } else { | 136 | } else { |
133 | fileS.sprintf( "%10i", fi->size() ); | 137 | fileS.sprintf( "%10i", fi->size() ); |
134 | fileL = fi->fileName(); | 138 | fileL = fi->fileName(); |
135 | fileDate= fi->lastModified().toString(); | 139 | fileDate= fi->lastModified().toString(); |
136 | if( QDir(QDir::cleanDirPath( path +"/"+fileL)).exists() ) { | 140 | if( QDir(QDir::cleanDirPath( path +"/"+fileL)).exists() ) { |
137 | // if(fileL == "..") | 141 | // if(fileL == "..") |
138 | fileL += "/"; | 142 | fileL += "/"; |
139 | isDir=TRUE; | 143 | isDir=TRUE; |
140 | } | 144 | } |
141 | } | 145 | } |
142 | QFileInfo fileInfo( path + "/" + fileL); | 146 | QFileInfo fileInfo( path + "/" + fileL); |
143 | 147 | ||
144 | if(fileL !="./" && fi->exists()) { | 148 | if(fileL !="./" && fi->exists()) { |
@@ -784,65 +788,65 @@ QDir *AdvancedFm::CurrentDir() { | |||
784 | return ¤tDir; | 788 | return ¤tDir; |
785 | } else { | 789 | } else { |
786 | return ¤tRemoteDir; | 790 | return ¤tRemoteDir; |
787 | } | 791 | } |
788 | } | 792 | } |
789 | 793 | ||
790 | QDir *AdvancedFm::OtherDir() { | 794 | QDir *AdvancedFm::OtherDir() { |
791 | if ( whichTab == 1) { | 795 | if ( whichTab == 1) { |
792 | return ¤tRemoteDir; | 796 | return ¤tRemoteDir; |
793 | } else { | 797 | } else { |
794 | return ¤tDir; | 798 | return ¤tDir; |
795 | } | 799 | } |
796 | } | 800 | } |
797 | 801 | ||
798 | QListView * AdvancedFm::CurrentView() { | 802 | QListView * AdvancedFm::CurrentView() { |
799 | if ( whichTab == 1) { | 803 | if ( whichTab == 1) { |
800 | // qWarning("CurrentView Tab 1"); | 804 | // qWarning("CurrentView Tab 1"); |
801 | return Local_View; | 805 | return Local_View; |
802 | } else { | 806 | } else { |
803 | // qWarning("CurrentView Tab 2"); | 807 | // qWarning("CurrentView Tab 2"); |
804 | return Remote_View; | 808 | return Remote_View; |
805 | } | 809 | } |
806 | } | 810 | } |
807 | 811 | ||
808 | QListView * AdvancedFm::OtherView() { | 812 | QListView * AdvancedFm::OtherView() { |
809 | if ( whichTab == 1) | 813 | if ( whichTab == 1) |
810 | return Remote_View; | 814 | return Remote_View; |
811 | else | 815 | else |
812 | return Local_View; | 816 | return Local_View; |
813 | } | 817 | } |
814 | 818 | ||
815 | void AdvancedFm::setOtherTabCurrent() { | 819 | void AdvancedFm::setOtherTabCurrent() { |
816 | qWarning("setOtherTabCurrent() %d", whichTab); | 820 | // qWarning("setOtherTabCurrent() %d", whichTab); |
817 | if ( whichTab == 1) { | 821 | if ( whichTab == 1) { |
818 | TabWidget->setCurrentWidget(1); | 822 | TabWidget->setCurrentWidget(1); |
819 | } else { | 823 | } else { |
820 | TabWidget->setCurrentWidget(0); | 824 | TabWidget->setCurrentWidget(0); |
821 | } | 825 | } |
822 | OtherView()->setFocus(); | 826 | OtherView()->setFocus(); |
823 | OtherView()->setSelected( CurrentView()->firstChild(), true); | 827 | OtherView()->setSelected( CurrentView()->firstChild(), true); |
824 | } | 828 | } |
825 | 829 | ||
826 | void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { | 830 | void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { |
827 | // qDebug("qcop message "+msg ); | 831 | // qDebug("qcop message "+msg ); |
828 | QDataStream stream ( data, IO_ReadOnly ); | 832 | QDataStream stream ( data, IO_ReadOnly ); |
829 | if ( msg == "openDirectory(QString)" ) { | 833 | if ( msg == "openDirectory(QString)" ) { |
830 | // qDebug("received"); | 834 | // qDebug("received"); |
831 | QString file; | 835 | QString file; |
832 | stream >> file; | 836 | stream >> file; |
833 | gotoDirectory( (const QString &) file); | 837 | gotoDirectory( (const QString &) file); |
834 | } | 838 | } |
835 | } | 839 | } |
836 | 840 | ||
837 | void AdvancedFm::setDocument(const QString &file) { | 841 | void AdvancedFm::setDocument(const QString &file) { |
838 | gotoDirectory( file); | 842 | gotoDirectory( file); |
839 | 843 | ||
840 | } | 844 | } |
841 | 845 | ||
842 | void AdvancedFm::gotoDirectory(const QString &file) { | 846 | void AdvancedFm::gotoDirectory(const QString &file) { |
843 | // qWarning("goto dir "+file); | 847 | // qWarning("goto dir "+file); |
844 | QString curDir = file; | 848 | QString curDir = file; |
845 | QDir *thisDir = CurrentDir(); | 849 | QDir *thisDir = CurrentDir(); |
846 | if(QDir( curDir).exists() ) { | 850 | if(QDir( curDir).exists() ) { |
847 | thisDir->setPath( curDir ); | 851 | thisDir->setPath( curDir ); |
848 | chdir( curDir.latin1() ); | 852 | chdir( curDir.latin1() ); |
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index be574c4..bfefa77 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -26,65 +26,70 @@ | |||
26 | #include <qstringlist.h> | 26 | #include <qstringlist.h> |
27 | #include <qdir.h> | 27 | #include <qdir.h> |
28 | #include <qstring.h> | 28 | #include <qstring.h> |
29 | #include <qpoint.h> | 29 | #include <qpoint.h> |
30 | #include <qtimer.h> | 30 | #include <qtimer.h> |
31 | #include <qpixmap.h> | 31 | #include <qpixmap.h> |
32 | 32 | ||
33 | class OSplitter; | 33 | class OSplitter; |
34 | class QVBoxLayout; | 34 | class QVBoxLayout; |
35 | class QHBoxLayout; | 35 | class QHBoxLayout; |
36 | class QGridLayout; | 36 | class QGridLayout; |
37 | class QComboBox; | 37 | class QComboBox; |
38 | class QListView; | 38 | class QListView; |
39 | class QListviewItem; | 39 | class QListviewItem; |
40 | class QLabel; | 40 | class QLabel; |
41 | class QProgressBar; | 41 | class QProgressBar; |
42 | class QSpinBox; | 42 | class QSpinBox; |
43 | class QTabWidget; | 43 | class QTabWidget; |
44 | class QWidget; | 44 | class QWidget; |
45 | class QPopupMenu; | 45 | class QPopupMenu; |
46 | class QFile; | 46 | class QFile; |
47 | class QListViewItem; | 47 | class QListViewItem; |
48 | class QLineEdit; | 48 | class QLineEdit; |
49 | class MenuButton; | 49 | class MenuButton; |
50 | 50 | ||
51 | class QToolButton; | 51 | class QToolButton; |
52 | class Ir; | 52 | class Ir; |
53 | 53 | ||
54 | class AdvancedFm : public QMainWindow | 54 | class AdvancedFm : public QMainWindow |
55 | { | 55 | { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | public: | 57 | public: |
58 | static QString appName() { return QString::fromLatin1("advancedfm"); } | ||
59 | #ifdef NOQUICKLAUNCH | ||
58 | AdvancedFm(); | 60 | AdvancedFm(); |
61 | #else | ||
62 | AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); | ||
63 | #endif | ||
59 | ~AdvancedFm(); | 64 | ~AdvancedFm(); |
60 | protected slots: | 65 | protected slots: |
61 | void slotSwitchMenu(int); | 66 | void slotSwitchMenu(int); |
62 | void selectAll(); | 67 | void selectAll(); |
63 | void addToDocs(); | 68 | void addToDocs(); |
64 | void doDirChange(); | 69 | void doDirChange(); |
65 | void mkDir(); | 70 | void mkDir(); |
66 | void del(); | 71 | void del(); |
67 | void rn(); | 72 | void rn(); |
68 | void populateView(); | 73 | void populateView(); |
69 | void rePopulate(); | 74 | void rePopulate(); |
70 | void showHidden(); | 75 | void showHidden(); |
71 | void showMenuHidden(); | 76 | void showMenuHidden(); |
72 | void writeConfig(); | 77 | void writeConfig(); |
73 | void readConfig(); | 78 | void readConfig(); |
74 | void ListClicked(QListViewItem *); | 79 | void ListClicked(QListViewItem *); |
75 | void ListPressed( int, QListViewItem *, const QPoint&, int); | 80 | void ListPressed( int, QListViewItem *, const QPoint&, int); |
76 | void makeDir(); | 81 | void makeDir(); |
77 | void doDelete(); | 82 | void doDelete(); |
78 | void tabChanged(QWidget*); | 83 | void tabChanged(QWidget*); |
79 | void cleanUp(); | 84 | void cleanUp(); |
80 | void renameIt(); | 85 | void renameIt(); |
81 | void runThis(); | 86 | void runThis(); |
82 | void runText(); | 87 | void runText(); |
83 | void filePerms(); | 88 | void filePerms(); |
84 | void doProperties(); | 89 | void doProperties(); |
85 | void runCommand(); | 90 | void runCommand(); |
86 | void runCommandStd(); | 91 | void runCommandStd(); |
87 | QStringList getPath(); | 92 | QStringList getPath(); |
88 | void mkSym(); | 93 | void mkSym(); |
89 | void switchToLocalTab(); | 94 | void switchToLocalTab(); |
90 | void switchToRemoteTab(); | 95 | void switchToRemoteTab(); |
diff --git a/noncore/apps/advancedfm/advancedfm.pro b/noncore/apps/advancedfm/advancedfm.pro index 590db6a..70db018 100644 --- a/noncore/apps/advancedfm/advancedfm.pro +++ b/noncore/apps/advancedfm/advancedfm.pro | |||
@@ -1,11 +1,35 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release quick-app |
3 | # CONFIG += qt warn_on release | ||
3 | HEADERS = advancedfm.h filePermissions.h output.h | 4 | HEADERS = advancedfm.h filePermissions.h output.h |
4 | SOURCES = advancedfm.cpp advancedfmData.cpp advancedfmMenu.cpp filePermissions.cpp output.cpp main.cpp | 5 | SOURCES = advancedfm.cpp advancedfmData.cpp advancedfmMenu.cpp filePermissions.cpp output.cpp main.cpp |
5 | TARGET = advancedfm | 6 | TARGET = advancedfm |
6 | INCLUDEPATH += $(OPIEDIR)/include | 7 | INCLUDEPATH += $(OPIEDIR)/include |
7 | DEPENDPATH += $(OPIEDIR)/include | 8 | DEPENDPATH += $(OPIEDIR)/include |
8 | DESTDIR = $(OPIEDIR)/bin | ||
9 | LIBS += -lqpe -lopie | 9 | LIBS += -lqpe -lopie |
10 | 10 | ||
11 | TRANSLATIONS = ../../../i18n/de/advancedfm.ts \ | ||
12 | ../../../i18n/nl/advancedfm.ts \ | ||
13 | ../../../i18n/da/advancedfm.ts \ | ||
14 | ../../../i18n/xx/advancedfm.ts \ | ||
15 | ../../../i18n/en/advancedfm.ts \ | ||
16 | ../../../i18n/es/advancedfm.ts \ | ||
17 | ../../../i18n/fr/advancedfm.ts \ | ||
18 | ../../../i18n/hu/advancedfm.ts \ | ||
19 | ../../../i18n/ja/advancedfm.ts \ | ||
20 | ../../../i18n/ko/advancedfm.ts \ | ||
21 | ../../../i18n/no/advancedfm.ts \ | ||
22 | ../../../i18n/pl/advancedfm.ts \ | ||
23 | ../../../i18n/pt/advancedfm.ts \ | ||
24 | ../../../i18n/pt_BR/advancedfm.ts \ | ||
25 | ../../../i18n/sl/advancedfm.ts \ | ||
26 | ../../../i18n/zh_CN/advancedfm.ts \ | ||
27 | ../../../i18n/zh_TW/advancedfm.ts | ||
28 | |||
29 | |||
30 | !contains(CONFIG,quick-app) { | ||
31 | DESTDIR = $(OPIEDIR)/bin | ||
32 | DEFINES += NOQUICKLAUNCH | ||
33 | } | ||
34 | |||
11 | include ( $(OPIEDIR)/include.pro ) | 35 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/noncore/apps/advancedfm/main.cpp b/noncore/apps/advancedfm/main.cpp index 8cacc4a..51e38dc 100644 --- a/noncore/apps/advancedfm/main.cpp +++ b/noncore/apps/advancedfm/main.cpp | |||
@@ -1,27 +1,33 @@ | |||
1 | 1 | ||
2 | /*************************************************************************** | 2 | /*************************************************************************** |
3 | main.cpp - description | 3 | main.cpp - description |
4 | ------------------- | 4 | ------------------- |
5 | begin : March 10, 2002 | 5 | begin : March 10, 2002 |
6 | copyright : (C) 2002 by llornkcor | 6 | copyright : (C) 2002 by llornkcor |
7 | email : ljp@llornkcor.com | 7 | email : ljp@llornkcor.com |
8 | * This program is free software; you can redistribute it and/or modify * | 8 | * This program is free software; you can redistribute it and/or modify * |
9 | * it under the terms of the GNU General Public License as published by * | 9 | * it under the terms of the GNU General Public License as published by * |
10 | * the Free Software Foundation; either version 2 of the License, or * | 10 | * the Free Software Foundation; either version 2 of the License, or * |
11 | * (at your option) any later version. * | 11 | * (at your option) any later version. * |
12 | ***************************************************************************/ | 12 | ***************************************************************************/ |
13 | #include <qpe/qpeapplication.h> | 13 | #include <qpe/qpeapplication.h> |
14 | 14 | ||
15 | 15 | ||
16 | 16 | ||
17 | #include "advancedfm.h" | 17 | #include "advancedfm.h" |
18 | 18 | ||
19 | #ifdef NOQUICKLAUNCH | ||
19 | int main(int argc, char *argv[]) | 20 | int main(int argc, char *argv[]) |
20 | { | 21 | { |
21 | QPEApplication a(argc, argv); | 22 | QPEApplication a(argc, argv); |
22 | 23 | ||
23 | AdvancedFm advencedFm; | 24 | AdvancedFm advencedFm; |
24 | a.showMainWidget( &advencedFm); | 25 | a.showMainWidget( &advencedFm); |
25 | return a.exec(); | 26 | return a.exec(); |
26 | } | 27 | } |
28 | #else | ||
29 | #include <opie/oapplicationfactory.h> | ||
27 | 30 | ||
31 | OPIE_EXPORT_APP( OApplicationFactory<AdvancedFm> ) | ||
32 | |||
33 | #endif | ||