blob: 4bbaccda1c2a369b299aa048fe41892f9bdd15a9 (
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
|
/*
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 <qhbox.h>
#include <kdialogbase.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <qfile.h>
#include <qdom.h>
class EmoticonsEditWidget;
class EditDialog : public KDialogBase
{
Q_OBJECT
public:
EditDialog(QWidget *parent, const char* name);
EditDialog(QWidget *parent, const char* name, QPixmap emot, QString text, QString file);
const QString getText() { return leText->text(); };
const QString getEmoticon() { return emoticon; };
private slots:
void btnIconClicked();
private:
void setupDlg();
QWidget *wdg;
KLineEdit *leText;
KPushButton *btnIcon;
QString emoticon;
};
class EmoticonsEditDialog : public KDialogBase
{
Q_OBJECT
public:
EmoticonsEditDialog(QWidget *parent=0, QString theme = QString::null, const char* name="EmoticonsEditDialog");
void addEmoticon(QString emo, QString text, bool copy);
private slots:
void slotOkClicked();
void slotAddClicked();
void slotEditClicked();
void slotRemoveClicked();
private:
void removeEmoticon(QString emo);
EmoticonsEditWidget *mMainWidget;
QString themeName;
EditDialog *dlg;
QDomDocument themeXml;
};
#endif
|