summaryrefslogtreecommitdiff
path: root/noncore/apps/advancedfm/advancedfm.h
Unidiff
Diffstat (limited to 'noncore/apps/advancedfm/advancedfm.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index 4eaa6d6..effda0b 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -34,53 +34,49 @@
34class QVBoxLayout; 34class QVBoxLayout;
35class QHBoxLayout; 35class QHBoxLayout;
36class QGridLayout; 36class QGridLayout;
37class QComboBox; 37class QComboBox;
38class QListView; 38class QListView;
39class QListviewItem; 39class QListviewItem;
40class QLabel; 40class QLabel;
41class QProgressBar; 41class QProgressBar;
42class QSpinBox; 42class QSpinBox;
43class QWidget; 43class QWidget;
44class QPopupMenu; 44class QPopupMenu;
45class QFile; 45class QFile;
46class QListViewItem; 46class QListViewItem;
47class QLineEdit; 47class QLineEdit;
48class MenuButton; 48class MenuButton;
49 49
50class QToolButton; 50class QToolButton;
51class Ir; 51class Ir;
52 52
53class AdvancedFm : public QMainWindow 53class AdvancedFm : public QMainWindow
54{ 54{
55 Q_OBJECT 55 Q_OBJECT
56public: 56public:
57 static QString appName() { return QString::fromLatin1("advancedfm"); } 57 static QString appName() { return QString::fromLatin1("advancedfm"); }
58#ifdef NOQUICKLAUNCH
59 AdvancedFm();
60#else
61 AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); 58 AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0);
62#endif
63 ~AdvancedFm(); 59 ~AdvancedFm();
64protected slots: 60protected slots:
65 void slotSwitchMenu(int); 61 void slotSwitchMenu(int);
66 void selectAll(); 62 void selectAll();
67 void addToDocs(); 63 void addToDocs();
68 void doDirChange(); 64 void doDirChange();
69 void mkDir(); 65 void mkDir();
70 void del(); 66 void del();
71 void rn(); 67 void rn();
72 void populateView(); 68 void populateView();
73 void rePopulate(); 69 void rePopulate();
74 void showHidden(); 70 void showHidden();
75 void showMenuHidden(); 71 void showMenuHidden();
76 void writeConfig(); 72 void writeConfig();
77 void readConfig(); 73 void readConfig();
78 void ListClicked(QListViewItem *); 74 void ListClicked(QListViewItem *);
79 void ListPressed( int, QListViewItem *, const QPoint&, int); 75 void ListPressed( int, QListViewItem *, const QPoint&, int);
80 void makeDir(); 76 void makeDir();
81 void doDelete(); 77 void doDelete();
82 void tabChanged(QWidget*); 78 void tabChanged(QWidget*);
83 void cleanUp(); 79 void cleanUp();
84 void renameIt(); 80 void renameIt();
85 void runThis(); 81 void runThis();
86 void runText(); 82 void runText();
@@ -117,75 +113,73 @@ protected:
117 bool zaurusDevice; 113 bool zaurusDevice;
118 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3; 114 QGridLayout *tabLayout, *tabLayout_2, *tabLayout_3;
119 QStringList remoteDirPathStringList, localDirPathStringList; 115 QStringList remoteDirPathStringList, localDirPathStringList;
120 QLineEdit *renameBox; 116 QLineEdit *renameBox;
121 117
122 void init(); 118 void init();
123 void initConnections(); 119 void initConnections();
124 void keyReleaseEvent( QKeyEvent *); 120 void keyReleaseEvent( QKeyEvent *);
125 void keyPressEvent( QKeyEvent *); 121 void keyPressEvent( QKeyEvent *);
126 QString getFileSystemType(const QString &); 122 QString getFileSystemType(const QString &);
127 QString getDiskSpace(const QString &); 123 QString getDiskSpace(const QString &);
128 void parsetab(const QString &fileName); 124 void parsetab(const QString &fileName);
129 QString checkDiskSpace(const QString &); 125 QString checkDiskSpace(const QString &);
130 QString dealWithSymName(const QString &); 126 QString dealWithSymName(const QString &);
131 QDir *CurrentDir(); 127 QDir *CurrentDir();
132 QDir *OtherDir(); 128 QDir *OtherDir();
133 QListView *CurrentView(); 129 QListView *CurrentView();
134 QListView *OtherView(); 130 QListView *OtherView();
135 void setOtherTabCurrent(); 131 void setOtherTabCurrent();
136 void dealWithSchmooSchmaa(QWidget *); 132 void dealWithSchmooSchmaa(QWidget *);
137 133
138protected slots: 134protected slots:
139 void openSearch(); 135 void openSearch();
140 void dirMenuSelected(int); 136 void dirMenuSelected(int);
141 void showFileMenu(); 137 void showFileMenu();
142 void cancelMenuTimer();
143 void homeButtonPushed(); 138 void homeButtonPushed();
144 void docButtonPushed(); 139 void docButtonPushed();
145 void SDButtonPushed(); 140 void SDButtonPushed();
146 void CFButtonPushed(); 141 void CFButtonPushed();
147 void QPEButtonPushed(); 142 void QPEButtonPushed();
148 void upDir(); 143 void upDir();
149 void currentPathComboChanged(); 144 void currentPathComboChanged();
150 void copy(); 145 void copy();
151 void copyAs(); 146 void copyAs();
152 void copySameDir(); 147 void copySameDir();
153 void currentPathComboActivated(const QString &); 148 void currentPathComboActivated(const QString &);
154 void fillCombo(const QString &); 149 void fillCombo(const QString &);
155 bool copyFile( const QString & , const QString & ); 150 bool copyFile( const QString & , const QString & );
156 void move(); 151 void move();
157 void fileStatus(); 152 void fileStatus();
158 void doAbout(); 153 void doAbout();
159 void doBeam(); 154 void doBeam();
160 void fileBeamFinished( Ir *); 155 void fileBeamFinished( Ir *);
161 bool copyDirectory( const QString & , const QString & ); 156 bool copyDirectory( const QString & , const QString & );
162// void navigateToSelected(); 157// void navigateToSelected();
163 bool moveDirectory( const QString & , const QString & ); 158 bool moveDirectory( const QString & , const QString & );
164// void slotSwitchtoLocal(int); 159// void slotSwitchtoLocal(int);
165 160
166private: 161private:
167 MenuButton *menuButton; 162 MenuButton *menuButton;
168 QString oldName; 163 QString oldName;
169 QTimer menuTimer;
170 void startProcess(const QString &); 164 void startProcess(const QString &);
171 bool eventFilter( QObject * , QEvent * ); 165 bool eventFilter( QObject * , QEvent * );
172 void cancelRename(); 166 void cancelRename();
173 void doRename(QListView *); 167 void doRename(QListView *);
174 void okRename(); 168 void okRename();
175 void customDirsToMenu(); 169 void customDirsToMenu();
176 void addCustomDir(); 170 void addCustomDir();
177 void removeCustomDir(); 171 void removeCustomDir();
178 void gotoDirectory(const QString &); 172 void gotoDirectory(const QString &);
179 void navigateToSelected(); 173 void navigateToSelected();
180 void findFile(const QString &); 174 void findFile(const QString &);
181 175
182private slots: 176private slots:
183 void processEnded(Opie::Core::OProcess *); 177 void processEnded(Opie::Core::OProcess *);
184 void oprocessStderr(Opie::Core::OProcess *, char *, int); 178 void oprocessStderr(Opie::Core::OProcess *, char *, int);
185 void gotoCustomDir(const QString &); 179 void gotoCustomDir(const QString &);
186 void qcopReceive(const QCString&, const QByteArray&); 180 void qcopReceive(const QCString&, const QByteArray&);
187 void setDocument(const QString &); 181 void setDocument(const QString &);
188 182
189}; 183};
190 184
191#endif // ADVANCEDFM_H 185#endif // ADVANCEDFM_H