blob: e90409426d5f830737cb7f785fa781aeaa18b441 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
/*
appearanceconfig.cpp - Kopete Look Feel Config
Kopete (c) 2002-2009 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* 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. *
* *
*************************************************************************
*/
#ifndef EMOTICONSEDITDIALOG_H
#define EMOTICONSEDITDIALOG_H
#include <kdebug.h>
#include <tqhbox.h>
#include <kdialogbase.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <tqfile.h>
#include <tqdom.h>
class EmoticonsEditWidget;
class EditDialog : public KDialogBase
{
TQ_OBJECT
public:
EditDialog(TQWidget *parent, const char* name);
EditDialog(TQWidget *parent, const char* name, TQPixmap emot, TQString text, TQString file);
const TQString getText() { return leText->text(); };
const TQString getEmoticon() { return emoticon; };
private slots:
void btnIconClicked();
private:
void setupDlg();
TQWidget *wdg;
KLineEdit *leText;
KPushButton *btnIcon;
TQString emoticon;
};
class EmoticonsEditDialog : public KDialogBase
{
TQ_OBJECT
public:
EmoticonsEditDialog(TQWidget *parent=0, TQString theme = TQString(), const char* name="EmoticonsEditDialog");
void addEmoticon(TQString emo, TQString text, bool copy);
private slots:
void slotOkClicked();
void slotAddClicked();
void slotEditClicked();
void slotRemoveClicked();
private:
void removeEmoticon(TQString emo);
EmoticonsEditWidget *mMainWidget;
TQString themeName;
EditDialog *dlg;
TQDomDocument themeXml;
};
#endif
|