OSDN Git Service

Use the reg command to import/export properties
[xkeymacs/xkeymacs.git] / xkeymacsdll / Utils.h
index 7d66134..2a30746 100644 (file)
@@ -9,18 +9,23 @@
 #pragma once\r
 #endif // _MSC_VER > 1000\r
 \r
+#include "AppName.h"\r
+\r
 class AFX_EXT_CLASS CUtils  \r
 {\r
 public:\r
+       static bool IsConsole();\r
+       static int GetWindowTextType(const CString& text);\r
+       static bool IsMatchWindowText(const CString& text);\r
+       static BOOL GetFindDialogTitle(CString *szDialogTitle);\r
        static BOOL IsAtok();\r
        static BOOL IsLunascape();\r
-       static int GetWindowTextType(CString strWindowText);\r
        static BOOL IsThunderbird();\r
        static BOOL IsOpenJane();\r
        static BOOL IsVisualSlickEdit();\r
        static BOOL IsMSDN();\r
        static BOOL IsJavaW();\r
-       static BOOL Run(CString szCommandLine, BOOL isWait = FALSE);\r
+       static BOOL Run(CString szCommandLine, BOOL isWait = FALSE, BOOL isHide = FALSE);\r
        static BOOL IsBorlandCppBuilder();\r
        static BOOL IsLispWorksPersonalEdition();\r
        static BOOL IsTeraPad();\r
@@ -61,10 +66,8 @@ public:
        static BOOL IsCsh();\r
        static BOOL IsSh();\r
        static BOOL IsBash();\r
-       static void SetCorrectApplicationName(LPTSTR szApplicationName, LPTSTR szWindowText);\r
        static void Log(LPCTSTR fmt, ...);\r
        static BOOL IsSleipnir();\r
-       static BOOL IsConsole();\r
        static BOOL IsPaint();\r
        static BOOL IsReget();\r
        static BOOL IsMicrosoftPowerPoint();\r
@@ -83,8 +86,6 @@ public:
        static BOOL IsEmacs();\r
        static BOOL SetClipboardText(const CString& text);\r
        static BOOL GetClipboardText(CString& text);\r
-       static void SetApplicationName(BOOL bImeComposition);\r
-       static LPCTSTR const GetApplicationName();\r
        static BOOL IsXyzzy();\r
        static BOOL IsWordpad();\r
        static BOOL IsVisualCpp();\r
@@ -111,15 +112,8 @@ public:
        static BOOL IsAstecX();\r
        static BOOL IsXkeymacs();\r
        static BOOL IsChrome();\r
-       static BOOL GetFindDialogTitle(CString *szDialogTitle);\r
-\r
 private:\r
        static BOOL IsTOForEOF();\r
-       static void FairConsoleApplicationName(LPTSTR szApplicationName, LPTSTR szWindowText);\r
-       static BOOL IsConsole(LPCTSTR szApplicationName);\r
-       static BOOL IsJavaW(LPCTSTR szApplicationName);\r
-       static TCHAR m_szIMEName[MAX_PATH];\r
-       static TCHAR m_szApplicationName[MAX_PATH];\r
 };\r
 \r
 #endif // !defined(AFX_UTILS_H__D64BCD3F_F2E2_41F7_AD58_0F32E2D46942__INCLUDED_)\r