blob: f7ccdf0f6bf0d18500abf6b1ed7676ba229053e4 (
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
|
//
// C++ Interface: colordialog
//
// Description:
//
//
// Author: Andras Mantia <amantia@kdewebdev.org>, (C) 2008
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef FONTDIALOG_H
#define FONTDIALOG_H
#include <tqlabel.h>
#include <kommanderwidget.h>
#include <tqfont.h>
/**
@author Andras Mantia <amantia@kdewebdev.org>
*/
class FontDialog : public TQLabel, public KommanderWidget
{
Q_OBJECT
Q_PROPERTY(TQString populationText READ populationText WRITE setPopulationText DESIGNABLE false)
Q_PROPERTY(TQStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false)
Q_PROPERTY(bool KommanderWidget READ isKommanderWidget)
public:
FontDialog(TQWidget *parent = 0, const char *name = 0);
~FontDialog();
virtual bool isKommanderWidget() const;
virtual TQString currentState() const;
virtual bool isFunctionSupported(int function);
virtual TQString handleDCOP(int function, const TQStringList& args);
virtual TQStringList associatedText() const;
virtual void setAssociatedText(const TQStringList&);
virtual TQString populationText() const;
virtual void setPopulationText(const TQString&);
public slots:
virtual void setWidgetText(const TQString &);
virtual void populate();
TQFont m_font;
};
#endif
|