#ifndef MAINWINDOW_H\r
#define MAINWINDOW_H\r
\r
+#include <QFileInfo>\r
#include <QMainWindow>\r
class FolderPanel;\r
+class FileTableView;\r
+class QNetworkReply;\r
\r
namespace Ui {\r
class MainWindow;\r
explicit MainWindow(QWidget *parent = 0);\r
~MainWindow();\r
\r
- void setStatusText(const QString &str);\r
+ FileTableView* otherSideView(const FileTableView *view) const;\r
\r
-public slots:\r
- void onActionCommand();\r
- void onActionExec();\r
- void onActionOpen();\r
- void onActionQuit();\r
- void onActionSetting();\r
-\r
- void onMarkAll();\r
- void onMarkAllFiles();\r
- void onMarkAllOff();\r
- void onMarkInvert();\r
- void onMarkToggle();\r
-\r
- void onMoveCursorDown();\r
- void onMoveCursorUp();\r
- void onMoveCursorBegin();\r
- void onMoveCursorEnd();\r
- void onMoveBack();\r
- void onMoveForward();\r
- void onMoveHome();\r
- void onMoveJump();\r
- void onMoveOther();\r
- void onMoveParent();\r
- void onMoveRoot();\r
+signals:\r
+ void showHiddenFiles(bool show);\r
+ void showSystemFiles(bool show);\r
\r
- void onViewFromOther();\r
- void onViewToOther();\r
- void onViewHidden();\r
- void onViewSwap();\r
-\r
- void onCmdDelete();\r
- void onCmdNewFile();\r
- void onCmdNewFolder();\r
- void onCmdRename();\r
-\r
- void onHelpAbout();\r
+public slots:\r
\r
private slots:\r
+ void openRequest(const QFileInfo &info);\r
+ void showPreferenceDialog();\r
+ void about();\r
+ void toggleShowHiddenFiles();\r
+ void toggleShowSystemFiles();\r
+ void checkUpdate(bool silent = false);\r
+ void checkUpdateFinished(QNetworkReply *reply);\r
+ void checkUpdateFinished(QNetworkReply *reply, bool silent);\r
+ void checkUpdateFinishedSilent(QNetworkReply *reply);\r
+ void viewFinish(QWidget *sender);\r
\r
private:\r
Ui::MainWindow *ui;\r
+ QWidget *m_focusedView;\r
\r
- FolderPanel* activePanel();\r
- FolderPanel* inactivePanel();\r
+ // QWidget interface\r
+protected:\r
+ void closeEvent(QCloseEvent *event);\r
};\r
\r
#endif // MAINWINDOW_H\r