blob: b8efdd318197ab9d7c37c851f7720bfd7cc68107 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef __MIRANDA_SKINNED_DIALOG_H__
# define __MIRANDA_SKINNED_DIALOG_H__
#include "SkinLib\SkinnedDialog.h"
class SkinOption;
class MirandaSkinnedDialog : public SkinnedDialog
{
public:
MirandaSkinnedDialog(const char *name, const char *module);
virtual ~MirandaSkinnedDialog();
virtual const char * getModule() const;
virtual const TCHAR * getSkinName();
virtual bool finishedConfiguring();
void storeToDB(const SkinOptions *opts);
private:
std::string module;
std::tstring skinName;
void updateFilename();
void loadFromDB(SkinOption *opt);
void storeToDB(const SkinOption *opt);
bool getSettting(const char *name, bool defVal);
void setSettting(const char *name, bool val);
int getSettting(const char *name, int defVal);
void setSettting(const char *name, int val);
void getSettting(const char *name, const WCHAR *defVal, std::wstring &ret);
void setSettting(const char *name, const WCHAR *val);
void getSettting(const char *name, const char *defVal, std::string &ret);
void setSettting(const char *name, const char *val);
inline void getSettingName(char *setting, const char * name);
void onOptionChange(const SkinOption *opt);
static void staticOnOptionChange(void *param, const SkinOption *opt);
};
#endif // __MIRANDA_SKINNED_DIALOG_H__
|