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

superkaramba

  • superkaramba
  • src
sklineedit.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 SKLINEEDIT_H
22 #define SKLINEEDIT_H
23 
24 #include <tqlineedit.h>
25 #include <tqwidget.h>
26 #include <tqevent.h>
27 #include <tqpainter.h>
28 #include <tqcolor.h>
29 
30 class Input;
31 
32 class SKLineEdit : public TQLineEdit
33 {
34  public:
35  SKLineEdit(TQWidget *w, Input *i);
36  ~SKLineEdit();
37 
38  void drawFrame(TQPainter *p);
39  void drawContents(TQPainter *p);
40 
41  void setFrameColor(TQColor c);
42  TQColor getFrameColor() const;
43 
44  void setBackgroundColor(TQColor c);
45 
46  Input* getInput();
47 
48  protected:
49  virtual void keyReleaseEvent(TQKeyEvent* e);
50  virtual void keyPressEvent(TQKeyEvent* e);
51 
52  private:
53  TQColor frameColor;
54  Input* m_input;
55 };
56 
57 #endif

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.