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

superkaramba

input.h

00001 /****************************************************************************
00002  * Copyright (c) 2005 Alexander Wiedenbruch <mail@wiedenbruch.de>
00003  *
00004  * This file is part of SuperKaramba.
00005  *
00006  *  SuperKaramba is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  SuperKaramba is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with SuperKaramba; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  ****************************************************************************/
00020 
00021 #ifndef INPUT_H
00022 #define INPUT_H
00023 
00024 #include <meter.h>
00025 #include <sklineedit.h>
00026 
00027 #include <tqpainter.h>
00028 #include <tqcolor.h>
00029 #include <tqlineedit.h>
00030 #include <tqwidget.h>
00031 #include <tqstring.h>
00032 #include <tqfont.h>
00033 
00034 #include "textfield.h"
00035 
00036 class Input : public Meter
00037 {
00038 Q_OBJECT
00039   
00040 public:
00041   Input(karamba* k, int ix, int iy, int iw, int ih);
00042   Input();
00043 
00044   ~Input();
00045 
00046   void mUpdate(TQPainter *p);
00047 
00048   void setValue(TQString text);
00049   TQString getStringValue() const;
00050 
00051   void setBGColor(TQColor c);
00052   TQColor getBGColor() const;
00053   void setColor(TQColor c);
00054   TQColor getColor() const;
00055   void setFontColor(TQColor fontColor);
00056   TQColor getFontColor() const;
00057   void setSelectionColor(TQColor selectionColor);
00058   TQColor getSelectionColor() const;
00059   void setSelectedTextColor(TQColor selectedTextColor);
00060   TQColor getSelectedTextColor() const;
00061   void setTextProps(TextField*);
00062 
00063   void hide();
00064   void show();
00065 
00066   void setSize(int ix, int iy, int iw, int ih);
00067   void setX(int ix);
00068   void setY(int iy);
00069   void setWidth(int iw);
00070   void setHeight(int ih);
00071 
00072   void setFont(TQString f);
00073   TQString getFont() const;
00074   void setFontSize(int size);
00075   int getFontSize() const;
00076   
00077   void setInputFocus();
00078   void clearInputFocus();
00079 
00080 private:
00081   SKLineEdit *edit;
00082   TQFont font;
00083 };
00084 
00085 #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.7.1
This website is maintained by Timothy Pearson.