From 164bc6af16bc03c4265fa1eb3f2204d908b24aee Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Wed, 27 Apr 2011 16:16:00 +0000 Subject: move api to folder git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@55 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- fingerprint_mod/include/m_options.h | 108 ------------------------------------ 1 file changed, 108 deletions(-) delete mode 100644 fingerprint_mod/include/m_options.h (limited to 'fingerprint_mod/include/m_options.h') diff --git a/fingerprint_mod/include/m_options.h b/fingerprint_mod/include/m_options.h deleted file mode 100644 index fdbab5c..0000000 --- a/fingerprint_mod/include/m_options.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - -Miranda IM: the free IM client for Microsoft* Windows* - -Copyright 2000-2003 Miranda ICQ/IM project, -all portions of this codebase are copyrighted to the people -listed in contributors.txt. - -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 M_OPTIONS_H__ -#define M_OPTIONS_H__ - -/* Opt/Initialise -The user opened the options dialog. Modules should do whatever initialisation -they need and call opt/addpage one or more times if they want pages displayed -in the options dialog -wParam=addInfo -lParam=0 -addInfo should be passed straight to the wParam of opt/addpage -*/ -#define ME_OPT_INITIALISE "Opt/Initialise" - -/* Opt/AddPage -Must only be called during an opt/initialise hook -Adds a page to the options dialog -wParam=addInfo -lParam=(LPARAM)(OPTIONSDIALOGPAGE*)odp -addInfo must have come straight from the wParam of opt/initialise -Pages in the options dialog operate just like pages in property sheets. See the -Microsoft documentation for details on how they operate. -Strings in the structure can be released as soon as the service returns, but -icons must be kept around. This is not a problem if you're loading them from a -resource. -Prior to v0.1.2.1 the options dialog would resize to fit the largest page, but -since then it is fixed in size. The largest page that fits neatly is 314x240 -DLUs. -*/ -typedef struct { - int cbSize; - int position; //a position number, lower numbers are topmost - union { - char* pszTitle; - TCHAR* ptszTitle; - }; - DLGPROC pfnDlgProc; - char *pszTemplate; - HINSTANCE hInstance; - HICON hIcon; //v0.1.0.1+ - union { - char* pszGroup; //v0.1.0.1+ - TCHAR* ptszGroup; //v0.1.0.1+ - }; - int groupPosition; //v0.1.0.1+ - HICON hGroupIcon; //v0.1.0.1+ - DWORD flags; //v0.1.2.1+ - int nIDBottomSimpleControl; //v0.1.2.1+ if in simple mode the dlg will be cut off after this control, 0 to disable - int nIDRightSimpleControl; //v0.1.2.1+ if in simple mode the dlg will be cut off after this control, 0 to disable - UINT *expertOnlyControls; - int nExpertOnlyControls; //v0.1.2.1+ these controls will be hidden in simple mode. Array must remain valid for duration of dlg. -} OPTIONSDIALOGPAGE; -#define ODPF_SIMPLEONLY 1 // page is only shown when in simple mode -#define ODPF_EXPERTONLY 2 // " expert mode -#define ODPF_BOLDGROUPS 4 // give group box titles a bold font -#define ODPF_UNICODE 8 // string fields in OPTIONSDIALOGPAGE are WCHAR* - -#if defined( _UNICODE ) - #define ODPF_TCHAR ODPF_UNICODE -#else - #define ODPF_TCHAR 0 -#endif - -#define PSN_EXPERTCHANGED 2 //sent to pages via WM_NOTIFY when the expert checkbox is clicked. lParam=new state -#define PSM_ISEXPERT (WM_USER+101) //returns true/false -#define PSM_GETBOLDFONT (WM_USER+102) //returns HFONT used for group box titles -#define MS_OPT_ADDPAGE "Opt/AddPage" - -//Opens the options dialog, optionally at the specified page v0.1.2.1+ -//wParam=0 -//lParam=(LPARAM)(OPENOPTIONSDIALOG*)&ood; -//Returns 0 on success, nonzero on failure -//The behaviour if the options dialog is already open is that it will just be -//activated, the page won't be changed. This may change in the future. -typedef struct { - int cbSize; - const char *pszGroup; //set to NULL if it's a root item - const char *pszPage; //set to NULL to just open the options at no - //specific page -} OPENOPTIONSDIALOG; -#define MS_OPT_OPENOPTIONS "Opt/OpenOptions" - -#define SETTING_SHOWEXPERT_DEFAULT 1 - -#endif //M_OPTIONS_H__ - -- cgit v1.2.3