#include <QMap>\r
typedef QMap<QString, QString> StringMap;\r
\r
-class MainWindow;\r
-extern MainWindow* getMainWnd();\r
+class QObject;\r
+class QKeyEvent;\r
extern QString FilesizeToString(quint64 size);\r
-\r
-#define VERSION_VALUE 0.02\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
#define slash QString("/")\r
-#define QQ(x) ("\"" + (x) + "\"")\r
-\r
-#define IniKey_ShowHidden "Common/ShowHidden"\r
-#define IniKey_ShowSystem "Common/ShowSystem"\r
-#define IniKey_WindowGeometry "Window/Geometry"\r
-#define IniSec_Left "Left"\r
-#define IniSec_Right "Right"\r
-#define IniKey_Dir "dir"\r
-#define IniKey_SortBy "SortBy"\r
-#define IniKey_OrderBy "OrderBy"\r
-#define IniKey_PutDirs "PutDirs"\r
-#define IniKey_IgnoreCase "IgnoreCase"\r
-#define IniKey_LeftDir IniSec_Left"/"IniKey_Dir\r
-#define IniKey_LeftSortBy IniSec_Left"/"IniKey_SortBy\r
-#define IniKey_LeftOrderBy IniSec_Left"/"IniKey_OrderBy\r
-#define IniKey_LeftPutDirs IniSec_Left"/"IniKey_PutDirs\r
-#define IniKey_LeftIgnoreCase IniSec_Left"/"IniKey_IgnoreCase\r
-#define IniKey_RightDir IniSec_Right"/"IniKey_Dir\r
-#define IniKey_RightSortBy IniSec_Right"/"IniKey_SortBy\r
-#define IniKey_RightOrderBy IniSec_Right"/"IniKey_OrderBy\r
-#define IniKey_RightPutDirs IniSec_Right"/"IniKey_PutDirs\r
-#define IniKey_RightIgnoreCase IniSec_Right"/"IniKey_IgnoreCase\r
+#define QQ(x) ("\"" + QString(x) + "\"")\r
+\r
+#define IniKey_ShowHidden "Common/ShowHidden"\r
+#define IniKey_ShowSystem "Common/ShowSystem"\r
+#define IniKey_DefaultOnCopy "Common/DefaultCopyMode"\r
+#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
+#define IniKey_BootPosSpec "BootAndExit/PosSpec"\r
+#define IniKey_BootPosRel "BootAndExit/PosRel"\r
+#define IniKey_BootPosAbs "BootAndExit/PosAbs"\r
+#define IniKey_ResetOnBoot "BootAndExit/Reset"\r
+#define IniKey_BoxColorFg "Appearance/BoxColorFg"\r
+#define IniKey_BoxColorBg "Appearance/BoxColorBg"\r
+#define IniKey_BoxFont "Appearance/BoxFont"\r
+#define IniKey_ViewFont "Appearance/ViewFont"\r
+#define IniKey_ViewColorBgNormal "Appearance/ViewColorBgNormal"\r
+#define IniKey_ViewColorBgMark "Appearance/ViewColorBgMark"\r
+#define IniKey_ViewColorFgNormal "Appearance/ViewColorFgNormal"\r
+#define IniKey_ViewColorFgMark "Appearance/ViewColorFgMark"\r
+#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
+#define IniKey_ConfirmDelete "Confirm/Delete"\r
+#define IniKey_ConfirmRename "Confirm/Rename"\r
+#define IniKey_AutoCloseCopy "AutoClose/Copy"\r
+#define IniKey_AutoCloseMove "AutoClose/Move"\r
+#define IniKey_AutoCloseDelete "AutoClose/Delete"\r
+#define IniKey_AutoCloseRename "AutoClose/Rename"\r
+#define IniKey_PathEditor "Path/Editor"\r
+#define IniKey_PathTerminal "Path/Terminal"\r
+#define IniKey_PathArchiver "Path/Archiver"\r
+#define IniKey_ViewerFont "Viewer/Font"\r
+#define IniKey_ViewerColorBg "Viewer/ColorBg"\r
+#define IniKey_ViewerColorFg "Viewer/ColorFg"\r
+#define IniKey_ViewerInherit "Viewer/Inherit"\r
+#define IniKey_ViewerForceOpen "Viewer/ForceOpen"\r
+#define IniKey_ViewerIgnoreExt "Viewer/IgnoreExt"\r
+#define IniKey_WindowGeometry "Window/Geometry"\r
+#define iniKey_WindowState "Window/State"\r
+// 以下は[Left/Right]セクションのキー\r
+#define IniKey_Dir "dir"\r
+#define IniKey_SortBy "SortBy"\r
+#define IniKey_OrderBy "OrderBy"\r
+#define IniKey_PutDirs "PutDirs"\r
+#define IniKey_IgnoreCase "IgnoreCase"\r
\r
#define SortByName QDir::Name\r
#define SortByDate QDir::Time\r
#define PutDirsLast QDir::DirsLast\r
#define PutDirsDefault 0\r
\r
-\r
#endif // COMMON_H\r