blob: 663eaae0076e155fecb2672e7995f296d3370b9d (
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
#ifndef _HTMLEXPORT_H_
#define _HTMLEXPORT_H_
#include <tqfile.h>
#include <tqtextstream.h>
#include <tqlabel.h>
#include <tqhgroupbox.h>
#include <tqlineedit.h>
#include <tqcheckbox.h>
#include <tqpushbutton.h>
#include <tqlayout.h>
#include <tqtooltip.h>
#include <tqwhatsthis.h>
#include <klocale.h>
#include <kpopupmenu.h>
#include <kfiledialog.h>
#include <ktempfile.h>
#include <kcolorbutton.h>
#include <kio/netaccess.h>
#include <kconfig.h>
#include <kurlrequester.h>
//#include <kdebug.h>
#include <noatun/app.h>
#include <noatun/playlist.h>
#include <noatun/pref.h>
#include <noatun/plugin.h>
class KAction;
class HTMLExport : public TQObject, public Plugin
{
Q_OBJECT
TQ_OBJECT
NOATUNPLUGIND
public:
HTMLExport();
~HTMLExport();
private:
TQString htmlEscape(const TQString &source);
TQString getColorByEntry(TQString s);
KConfig *config;
KAction *mAction;
private slots:
void slotExport();
};
class Prefs : public CModule
{
Q_OBJECT
TQ_OBJECT
public:
Prefs(TQObject *parent);
virtual void save();
virtual void reopen();
TQGroupBox* colorBox;
KColorButton* headColorSelect;
KColorButton* hoverColorSelect;
KColorButton* bgColorSelect;
KColorButton* txtColorSelect;
TQLabel* bgColorLabel;
TQLabel* txtColorLabel;
TQLabel* headColorLabel;
TQLabel* hoverColorLabel;
TQCheckBox* linkEntries;
TQCheckBox* numberEntries;
TQGroupBox* bgPicBox;
KURLRequester* bgPicPath;
protected:
TQGridLayout* bgcolorLabel;
signals:
void saved();
};
#endif
|