diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-23 09:55:08 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-23 09:55:08 +0000 |
commit | e1ca8a12e6111e5ec0bb4cb35e5edebc2bf1e3ae (patch) | |
tree | 51f375ecf1fb2d7a46cd5206f06cdb10ba0b85d1 /plugins/NewXstatusNotify/src/popup.h | |
parent | 18e0b1e1b7e216e13c58d863510af4a25df1fee1 (diff) |
NewXstatusNotify: changed folder structure
git-svn-id: http://svn.miranda-ng.org/main/trunk@1113 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewXstatusNotify/src/popup.h')
-rw-r--r-- | plugins/NewXstatusNotify/src/popup.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/plugins/NewXstatusNotify/src/popup.h b/plugins/NewXstatusNotify/src/popup.h new file mode 100644 index 0000000000..e6e56f6c5b --- /dev/null +++ b/plugins/NewXstatusNotify/src/popup.h @@ -0,0 +1,54 @@ +/*
+ NewXstatusNotify YM - Plugin for Miranda IM
+ Copyright (c) 2001-2004 Luca Santarelli
+ Copyright (c) 2005-2007 Vasilich
+ Copyright (c) 2007-2011 yaho
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef POPUP_H
+#define POPUP_H
+
+#define POPUP_COLOR_OWN 1
+#define POPUP_COLOR_WINDOWS 2
+#define POPUP_COLOR_POPUP 3
+#define DEFAULT_COLORS POPUP_COLOR_POPUP
+
+// Actions on popup click
+#define PCA_OPENMESSAGEWND 0 // open message window
+#define PCA_CLOSEPOPUP 1 // close popup
+#define PCA_OPENDETAILS 2 // open contact details window
+#define PCA_OPENMENU 3 // open contact menu
+#define PCA_OPENHISTORY 4 // open contact history
+#define PCA_DONOTHING 5 // do nothing
+
+#define STRING_SHOWPREVIOUSSTATUS _T("(was %s)")
+
+static struct {
+ TCHAR *Text;
+ int Action;
+} PopupActions[] = {
+ _T("Open message window"), PCA_OPENMESSAGEWND,
+ _T("Close popup"), PCA_CLOSEPOPUP,
+ _T("Open contact details window"), PCA_OPENDETAILS,
+ _T("Open contact menu"), PCA_OPENMENU,
+ _T("Open contact history"), PCA_OPENHISTORY,
+ _T("Do nothing"), PCA_DONOTHING
+};
+
+INT_PTR CALLBACK PopupDlgProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
+
+#endif
\ No newline at end of file |