blob: 78638b414c34d144fff3e5f3b97da3b9ffd7a94f (
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
|
//
// C++ Interface: textlineedit
//
// Description:
//
//
// Author: Dominik Seichter <domseichter@web.de>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef TECLINEEDITDLG_H
#define TECLINEEDITDLG_H
#include <tqwidget.h>
#include <knuminput.h>
class TDEActionCollection;
class TDEToggleAction;
class TDEFontAction;
class TDEFontSizeAction;
class TDEToolBar;
class KSpell;
class KSpellConfig;
class KComboBox;
class TokenProvider;
class KLineEdit;
class TextLineEditor : public TQWidget {
TQ_OBJECT
public:
TextLineEditor( TokenProvider* token, TQWidget *parent=0, const char *name=0);
~TextLineEditor();
TQString text();
KIntNumInput* mag_vert;
KIntNumInput* mag_hor;
void setText( const TQString & t );
void setFontType(int index);
int getFontType();
int getHorMag();
void setHorMag( int index );
int getVertMag();
void setVertMag( int index );
private slots:
void setupActions();
void updateActions();
void insertNewField();
protected:
TokenProvider* m_token;
KLineEdit* editor;
TDEActionCollection* ac;
KComboBox *action_font_type ;
TDEToolBar* toolBar;
TDEToolBar* tool2Bar;
TDEToolBar* tool3Bar;
};
#endif
|