From 397e25f2b71347c7c83495fe5b25496ff3b02b75 Mon Sep 17 00:00:00 2001 From: Philip Schell Date: Sat, 19 Oct 2013 13:05:02 +0000 Subject: WinterSpeak: ticket:269 WinterSpeak now rewritten git-svn-id: http://svn.miranda-ng.org/main/trunk@6532 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/WinterSpeak/src/DialogConfigActive.h | 49 ++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 plugins/WinterSpeak/src/DialogConfigActive.h (limited to 'plugins/WinterSpeak/src/DialogConfigActive.h') diff --git a/plugins/WinterSpeak/src/DialogConfigActive.h b/plugins/WinterSpeak/src/DialogConfigActive.h new file mode 100644 index 0000000000..8dbbbd43a9 --- /dev/null +++ b/plugins/WinterSpeak/src/DialogConfigActive.h @@ -0,0 +1,49 @@ +#pragma once +#include "mirandadialog.h" + +class DialogConfigActive : public MirandaDialog +{ + public: + //-------------------------------------------------------------------------- + // Description : Initialise + // Parameters : db - reference to the database to initalise and save + // control to and from + //-------------------------------------------------------------------------- + DialogConfigActive(ConfigDatabase &db); + virtual ~DialogConfigActive(); + + //-------------------------------------------------------------------------- + // Description : process a dialog message + // Return : 0 - process ok + // 1 - error + //-------------------------------------------------------------------------- + static INT_PTR CALLBACK process(HWND window, UINT message, WPARAM wparam, LPARAM lparam); + + private: + //-------------------------------------------------------------------------- + // Description : load/save setting to the miranda database + //-------------------------------------------------------------------------- + void load(HWND window); + void save(HWND window); + void notify(HWND window, LPARAM lparam); + + //-------------------------------------------------------------------------- + // Description : select/unselect all the active status checkboxes + // Parameters : state - the state to apply to the checkboxes + //-------------------------------------------------------------------------- + void selectAllUsers(HWND window, bool state); + void ResetListOptions(HWND listview); + void InitialiseItem(HWND hwndList, HANDLE hItem, bool message, bool status); + void SetAllContactIcons(HWND listview, HWND window); + void SetIconsForColumn(HWND hwndList, HANDLE hItem, HANDLE hItemAll, int iColumn, int iImage); + void SetAllChildIcons(HWND hwndList, HANDLE hFirstItem, int iColumn, int iImage); + void SetListGroupIcons(HWND hwndList, HANDLE hFirstItem, HANDLE hParentItem, int *groupChildCount); + void SaveItemMask(HWND hwndList, HANDLE hContact, HANDLE hItem); + + static DialogConfigActive *m_instance; + ConfigDatabase &m_db; + HICON hIcons[4]; + HANDLE hItemUnknown; + HANDLE hItemAll; +}; + -- cgit v1.2.3