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.h79
1 files changed, 44 insertions, 35 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h
index def6fe2..2234b3c 100644
--- a/noncore/apps/advancedfm/advancedfm.h
+++ b/noncore/apps/advancedfm/advancedfm.h
@@ -54,44 +54,12 @@ class 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 AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0); 58 AdvancedFm(QWidget *p = 0, const char* name = 0, WFlags fl = 0);
59 ~AdvancedFm(); 59 ~AdvancedFm();
60protected slots:
61 void slotSwitchMenu(int);
62 void selectAll();
63 void addToDocs();
64 void doDirChange();
65 void mkDir();
66 void del();
67 void rn();
68 void populateView();
69 void rePopulate();
70 void showHidden();
71 void showMenuHidden();
72 void writeConfig();
73 void readConfig();
74 void ListClicked(QListViewItem *);
75 void ListPressed( int, QListViewItem *, const QPoint&, int);
76 void makeDir();
77 void doDelete();
78 void tabChanged(QWidget*);
79 void cleanUp();
80 void renameIt();
81 void runThis();
82 void runText();
83 void filePerms();
84 void doProperties();
85 void runCommand();
86 void runCommandStd();
87 QStringList getPath();
88 void mkSym();
89 void switchToLocalTab();
90 void switchToRemoteTab();
91 void refreshCurrentTab();
92protected: 60protected:
93 61
94 Opie::Ui::OSplitter *TabWidget; 62 Opie::Ui::OSplitter *TabWidget;
95 QCopChannel * channel; 63 QCopChannel * channel;
96 QPixmap unknownXpm; 64 QPixmap unknownXpm;
97 int whichTab; 65 int whichTab;
@@ -127,44 +95,84 @@ protected:
127 QDir *CurrentDir(); 95 QDir *CurrentDir();
128 QDir *OtherDir(); 96 QDir *OtherDir();
129 QListView *CurrentView(); 97 QListView *CurrentView();
130 QListView *OtherView(); 98 QListView *OtherView();
131 void setOtherTabCurrent(); 99 void setOtherTabCurrent();
132 100
101//protected signals:
102 // void newPath(QString);
103
133protected slots: 104protected slots:
105 void slotSwitchMenu(int);
106 void selectAll();
107 void addToDocs();
108 void doDirChange();
109 void mkDir();
110 void del();
111 void rn();
112 void populateView();
113 void rePopulate();
114 void showHidden();
115 void showMenuHidden();
116 void writeConfig();
117 void readConfig();
118 void ListClicked(QListViewItem *);
119 void ListPressed( int, QListViewItem *, const QPoint&, int);
120 void makeDir();
121 void doDelete();
122 void tabChanged(QWidget*);
123 void cleanUp();
124 void renameIt();
125 void runThis();
126 void runText();
127 void filePerms();
128 void doProperties();
129 void runCommand();
130 void runCommandStd();
131 QStringList getPath();
132 void mkSym();
133 void switchToLocalTab();
134 void switchToRemoteTab();
135 void refreshCurrentTab();
134 136
135 void openSearch(); 137 void openSearch();
136 void dirMenuSelected(int); 138 void dirMenuSelected(int);
137 void showFileMenu(); 139 void showFileMenu();
138 void homeButtonPushed(); 140 void homeButtonPushed();
139 void docButtonPushed(); 141 void docButtonPushed();
140 void SDButtonPushed(); 142 void SDButtonPushed();
141 void CFButtonPushed(); 143 void CFButtonPushed();
142 void QPEButtonPushed(); 144 void QPEButtonPushed();
143 void upDir(); 145 void upDir();
144 void currentPathComboChanged(); 146 void currentPathComboChanged();
147
145 void copy(); 148 void copy();
149 void copyTimer();
146 void copyAs(); 150 void copyAs();
151 void copyAsTimer();
147 void copySameDir(); 152 void copySameDir();
148 void currentPathComboActivated(const QString &); 153 void copySameDirTimer();
154 void move();
155 void moveTimer();
156
157 void currentPathComboActivated(const QString &);
149 void fillCombo(const QString &); 158 void fillCombo(const QString &);
150 bool copyFile( const QString & , const QString & ); 159 bool copyFile( const QString & , const QString & );
151 void move();
152 void fileStatus(); 160 void fileStatus();
153 void doAbout(); 161 void doAbout();
154 void doBeam(); 162 void doBeam();
155 void fileBeamFinished( Ir *); 163 void fileBeamFinished( Ir *);
156 bool copyDirectory( const QString & , const QString & ); 164 bool copyDirectory( const QString & , const QString & );
157// void navigateToSelected(); 165// void navigateToSelected();
158 bool moveDirectory( const QString & , const QString & ); 166 bool moveDirectory( const QString & , const QString & );
159 167
160// void slotSwitchtoLocal(int); 168// void slotSwitchtoLocal(int);
161 169
162private: 170private:
163 MenuButton *menuButton; 171 MenuButton *menuButton;
164 QString oldName; 172 QString oldName, localViewDir, remoteViewDir;
165 void startProcess(const QString &); 173 void startProcess(const QString &);
166 bool eventFilter( QObject * , QEvent * ); 174 bool eventFilter( QObject * , QEvent * );
167 void cancelRename(); 175 void cancelRename();
168 void doRename(QListView *); 176 void doRename(QListView *);
169 void okRename(); 177 void okRename();
170 void customDirsToMenu(); 178 void customDirsToMenu();
@@ -177,10 +185,11 @@ private:
177private slots: 185private slots:
178 void processEnded(Opie::Core::OProcess *); 186 void processEnded(Opie::Core::OProcess *);
179 void oprocessStderr(Opie::Core::OProcess *, char *, int); 187 void oprocessStderr(Opie::Core::OProcess *, char *, int);
180 void gotoCustomDir(const QString &); 188 void gotoCustomDir(const QString &);
181 void qcopReceive(const QCString&, const QByteArray&); 189 void qcopReceive(const QCString&, const QByteArray&);
182 void setDocument(const QString &); 190 void setDocument(const QString &);
191 // void doMenu(int
183 192
184}; 193};
185 194
186#endif // ADVANCEDFM_H 195#endif // ADVANCEDFM_H