OSDN Git Service

Ver0.19
[gefu/Gefu.git] / common.h
index 54d56b0..05f7162 100644 (file)
--- a/common.h
+++ b/common.h
@@ -4,14 +4,14 @@
 #include <QMap>\r
 typedef QMap<QString, QString> StringMap;\r
 \r
-class MainWindow;\r
+class QObject;\r
 class QKeyEvent;\r
-extern MainWindow* getMainWnd();\r
 extern QString FilesizeToString(quint64 size);\r
 extern QString ViewerIgnoreExt();\r
 extern QString KeyEventToSequence(const QKeyEvent *event);\r
-\r
-#define VERSION_VALUE   0.11\r
+extern bool IsKeyUpDown(const QKeyEvent *event);\r
+extern bool ProcessShortcut(const QString &ksq, const QObject *object);\r
+extern void Sleep(int msec);\r
 \r
 #define slash   QString("/")\r
 #define QQ(x)   ("\"" + QString(x) + "\"")\r
@@ -22,6 +22,8 @@ extern QString KeyEventToSequence(const QKeyEvent *event);
 #define IniKey_MoveAfterCreateFolder    "Common/MoveAfterFolderCreation"\r
 #define IniKey_OpenAfterCreateFile      "Common/OpenAfterFileCreation"\r
 #define IniKey_CheckUpdates             "Common/CheckUpdates"\r
+#define IniKey_BookmarkEntryName(x)     QString("Bookmark/Name%1").arg(x)\r
+#define IniKey_BookmarkEntryPath(x)     QString("Bookmark/Path%1").arg(x)\r
 #define IniKey_BootSizeSpec             "BootAndExit/SizeSpec"\r
 #define IniKey_BootSizeRel              "BootAndExit/SizeRel"\r
 #define IniKey_BootSizeAbs              "BootAndExit/SizeAbs"\r
@@ -40,6 +42,7 @@ extern QString KeyEventToSequence(const QKeyEvent *event);
 #define IniKey_ViewColorFgSystem        "Appearance/ViewColorFgSystem"\r
 #define IniKey_ViewColorFgHidden        "Appearance/ViewColorFgHidden"\r
 #define IniKey_ViewColorFgReadonly      "Appearance/ViewColorFgReadonly"\r
+#define IniKey_Darkness                 "Appearance/Darkness"\r
 #define IniKey_ConfirmExit              "Confirm/Exit"\r
 #define IniKey_ConfirmCopy              "Confirm/Copy"\r
 #define IniKey_ConfirmMove              "Confirm/Move"\r
@@ -49,10 +52,11 @@ extern QString KeyEventToSequence(const QKeyEvent *event);
 #define IniKey_AutoCloseMove            "AutoClose/Move"\r
 #define IniKey_AutoCloseDelete          "AutoClose/Delete"\r
 #define IniKey_AutoCloseRename          "AutoClose/Rename"\r
-#define IniKey_EditorPath               "Editor/Path"\r
-#define IniKey_EditorOption             "Editor/Option"\r
-#define IniKey_TerminalPath             "Terminal/Path"\r
-#define IniKey_TerminalOption           "Terminal/Option"\r
+#define IniKey_PathEditor               "Path/Editor"\r
+#define IniKey_PathTerminal             "Path/Terminal"\r
+#define IniKey_PathArchiver             "Path/Archiver"\r
+#define IniKey_InflateOptions           "Path/InflateOptions"\r
+#define IniKey_DeflateOptions           "Path/DeflateOptions"\r
 #define IniKey_ViewerFont               "Viewer/Font"\r
 #define IniKey_ViewerColorBg            "Viewer/ColorBg"\r
 #define IniKey_ViewerColorFg            "Viewer/ColorFg"\r