summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/commons.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 09:01:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 09:01:36 +0000
commit50a78e4066edc5634457bca45b512225c07cb4cb (patch)
treec61d4e793b5fac0dc170c3597707a1294188f5ef /plugins/SpellChecker/src/commons.h
parent86802925857034fec1fbfb5c0eb668e996b0518d (diff)
GUI stuff moved to the separate file
git-svn-id: http://svn.miranda-ng.org/main/trunk@2579 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SpellChecker/src/commons.h')
-rw-r--r--plugins/SpellChecker/src/commons.h31
1 files changed, 27 insertions, 4 deletions
diff --git a/plugins/SpellChecker/src/commons.h b/plugins/SpellChecker/src/commons.h
index 41d9e6e2e8..55dcfacefc 100644
--- a/plugins/SpellChecker/src/commons.h
+++ b/plugins/SpellChecker/src/commons.h
@@ -77,7 +77,6 @@ using namespace std;
#include "ardialog.h"
#include "RichEdit.h"
-
#define MODULE_NAME "SpellChecker"
#define FLAGS_DLL_FOLDER _T("%miranda_path%\\Icons")
@@ -89,14 +88,19 @@ extern HINSTANCE hInst;
extern BOOL uinfoex_enabled;
extern BOOL variables_enabled;
-
#define FREE(_m_) if (_m_ != NULL) { free(_m_); _m_ = NULL; }
-
#define ICON_SIZE 16
+#define TIMER_ID 17982
+#define WMU_DICT_CHANGED (WM_USER+100)
+#define WMU_KBDL_CHANGED (WM_USER+101)
+
+#define HOTKEY_ACTION_TOGGLE 1
extern LIST<Dictionary> languages;
+extern BITMAP bmpChecked;
+extern HBITMAP hCheckedBmp;
struct WrongWordPopupMenuData
{
@@ -137,9 +141,28 @@ struct Dialog
};
BOOL CenterParent(HWND hwnd);
-BOOL CreatePath(const TCHAR *path);
TCHAR *lstrtrim(TCHAR *str);
BOOL lstreq(TCHAR *a, TCHAR *b, size_t len = -1);
BOOL IsNumber(TCHAR c);
+int MsgWindowEvent(WPARAM wParam, LPARAM lParam);
+int MsgWindowPopup(WPARAM wParam, LPARAM lParam);
+int IconPressed(WPARAM wParam, LPARAM lParam);
+
+int AddContactTextBox(HANDLE hContact, HWND hwnd, char *name, BOOL srmm, HWND hwndOwner);
+int RemoveContactTextBox(HWND hwnd);
+int ShowPopupMenu(HWND hwnd, HMENU hMenu, POINT pt, HWND hwndOwner);
+
+INT_PTR AddContactTextBoxService(WPARAM wParam, LPARAM lParam);
+INT_PTR RemoveContactTextBoxService(WPARAM wParam, LPARAM lParam);
+INT_PTR ShowPopupMenuService(WPARAM wParam, LPARAM lParam);
+
+LRESULT CALLBACK MenuWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+
+void ModifyIcon(Dialog *dlg);
+BOOL GetWordCharRange(Dialog *dlg, CHARRANGE &sel, TCHAR *text, size_t text_len, int &first_char);
+TCHAR *GetWordUnderPoint(Dialog *dlg, POINT pt, CHARRANGE &sel);
+
+int GetClosestLanguage(TCHAR *lang_name);
+
#endif // __COMMONS_H__