• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • superkaramba
 

superkaramba

  • superkaramba
  • src
input.h
1 /****************************************************************************
2  * Copyright (c) 2005 Alexander Wiedenbruch <mail@wiedenbruch.de>
3  *
4  * This file is part of SuperKaramba.
5  *
6  * SuperKaramba is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * SuperKaramba is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with SuperKaramba; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  ****************************************************************************/
20 
21 #ifndef INPUT_H
22 #define INPUT_H
23 
24 #include <meter.h>
25 #include <sklineedit.h>
26 
27 #include <tqpainter.h>
28 #include <tqcolor.h>
29 #include <tqlineedit.h>
30 #include <tqwidget.h>
31 #include <tqstring.h>
32 #include <tqfont.h>
33 
34 #include "textfield.h"
35 
36 class Input : public Meter
37 {
38 TQ_OBJECT
39 
40 public:
41  Input(karamba* k, int ix, int iy, int iw, int ih);
42  Input();
43 
44  ~Input();
45 
46  void mUpdate(TQPainter *p);
47 
48  void setValue(TQString text);
49  TQString getStringValue() const;
50 
51  void setBGColor(TQColor c);
52  TQColor getBGColor() const;
53  void setColor(TQColor c);
54  TQColor getColor() const;
55  void setFontColor(TQColor fontColor);
56  TQColor getFontColor() const;
57  void setSelectionColor(TQColor selectionColor);
58  TQColor getSelectionColor() const;
59  void setSelectedTextColor(TQColor selectedTextColor);
60  TQColor getSelectedTextColor() const;
61  void setTextProps(TextField*);
62 
63  void hide();
64  void show();
65 
66  void setSize(int ix, int iy, int iw, int ih);
67  void setX(int ix);
68  void setY(int iy);
69  void setWidth(int iw);
70  void setHeight(int ih);
71 
72  void setFont(TQString f);
73  TQString getFont() const;
74  void setFontSize(int size);
75  int getFontSize() const;
76 
77  void setInputFocus();
78  void clearInputFocus();
79 
80 private:
81  SKLineEdit *edit;
82  TQFont font;
83 };
84 
85 #endif
TextField
Ralph M.
Definition: textfield.h:21

superkaramba

Skip menu "superkaramba"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members

superkaramba

Skip menu "superkaramba"
  • kcalc
  •   knumber
  • superkaramba
Generated for superkaramba by doxygen 1.8.13
This website is maintained by Timothy Pearson.