OSDN Git Service

Ver0.19
[gefu/Gefu.git] / common.h
index 9829d8f..05f7162 100644 (file)
--- a/common.h
+++ b/common.h
@@ -6,11 +6,10 @@ typedef QMap<QString, QString> StringMap;
 \r
 class QObject;\r
 class QKeyEvent;\r
-//class MainWindow;\r
-//extern MainWindow* getMainWnd();\r
 extern QString FilesizeToString(quint64 size);\r
 extern QString ViewerIgnoreExt();\r
 extern QString KeyEventToSequence(const QKeyEvent *event);\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
@@ -23,6 +22,8 @@ extern void Sleep(int msec);
 #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
@@ -41,6 +42,7 @@ extern void Sleep(int msec);
 #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
@@ -50,10 +52,11 @@ extern void Sleep(int msec);
 #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