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

tdeui

  • tdeui
kinputdialog.h
1 /*
2  Copyright (C) 2003 Nadeem Hasan <nhasan@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KINPUTDIALOG_H
21 #define KINPUTDIALOG_H
22 
23 // #include <tqt.h>
24 
25 #include <kdialogbase.h>
26 
27 class TQValidator;
28 
29 class KLineEdit;
30 class KIntSpinBox;
31 class KDoubleSpinBox;
32 class KComboBox;
33 class KTextEdit;
34 class KInputDialogPrivate;
35 
48 class TDEUI_EXPORT KInputDialog : public KDialogBase
49 {
50  Q_OBJECT
51 
52  private:
53 
58  KInputDialog( const TQString &caption, const TQString &label,
59  const TQString &value, TQWidget *parent, const char *name,
60  TQValidator *validator, const TQString &mask );
61  KInputDialog( const TQString &caption, const TQString &label,
62  const TQString &value, TQWidget *parent, const char *name );
63  KInputDialog( const TQString &caption, const TQString &label, int value,
64  int minValue, int maxValue, int step, int base, TQWidget *parent,
65  const char *name );
66  KInputDialog( const TQString &caption, const TQString &label, double value,
67  double minValue, double maxValue, double step, int decimals,
68  TQWidget *parent, const char *name );
69  KInputDialog( const TQString &caption, const TQString &label,
70  const TQStringList &list, int current, bool editable, TQWidget *parent,
71  const char *name );
72  KInputDialog( const TQString &caption, const TQString &label,
73  const TQStringList &list, const TQStringList &select, bool editable,
74  TQWidget *parent, const char *name );
75 
76  ~KInputDialog();
77 
78  KLineEdit *lineEdit() const;
79  KIntSpinBox *intSpinBox() const;
80  KDoubleSpinBox *doubleSpinBox() const;
81  KComboBox *comboBox() const;
82  TDEListBox *listBox() const;
83  KTextEdit *textEdit() const;
84 
85  private slots:
86 
87  void slotEditTextChanged( const TQString& );
88  void slotUpdateButtons( const TQString& );
89 
90  public:
91 
119  static TQString getText( const TQString &caption, const TQString &label,
120  const TQString &value=TQString::null, bool *ok=0, TQWidget *parent=0,
121  const char *name=0, TQValidator *validator=0,
122  const TQString &mask=TQString::null );
123 
132  static TQString text( const TQString &caption, const TQString &label,
133  const TQString &value=TQString::null, bool *ok=0, TQWidget *parent=0,
134  const char *name=0, TQValidator *validator=0,
135  const TQString &mask=TQString::null,
136  const TQString& whatsThis=TQString::null );
137 
156  static TQString getMultiLineText( const TQString &caption,
157  const TQString &label, const TQString &value=TQString::null,
158  bool *ok=0, TQWidget *parent=0, const char *name=0 );
159 
184  static int getInteger( const TQString &caption, const TQString &label,
185  int value=0, int minValue=-2147483647, int maxValue=2147483647,
186  int step=1, int base=10, bool *ok=0, TQWidget *parent=0,
187  const char *name=0 );
188 
193  static int getInteger( const TQString &caption, const TQString &label,
194  int value=0, int minValue=-2147483647, int maxValue=2147483647,
195  int step=1, bool *ok=0, TQWidget *parent=0, const char *name=0 );
196 
220  static double getDouble( const TQString &caption, const TQString &label,
221  double value=0, double minValue=-2147483647,
222  double maxValue=2147483647, double step=0.1, int decimals=1,
223  bool *ok=0, TQWidget *parent=0, const char *name=0 );
224 
229  static double getDouble( const TQString &caption, const TQString &label,
230  double value=0, double minValue=-2147483647,
231  double maxValue=2147483647, int decimals=1, bool *ok=0,
232  TQWidget *parent=0, const char *name=0 );
233 
254  static TQString getItem( const TQString &caption, const TQString &label,
255  const TQStringList &list, int current=0, bool editable=false,
256  bool *ok=0, TQWidget *parent=0, const char *name=0 );
257 
278  static TQStringList getItemList( const TQString &caption,
279  const TQString &label, const TQStringList &list=TQStringList(),
280  const TQStringList &select=TQStringList(), bool multiple=false,
281  bool *ok=0, TQWidget *parent=0, const char *name=0 );
282 
283  private:
284 
285  KInputDialogPrivate* const d;
286  friend class KInputDialogPrivate;
287 };
288 
289 #endif // KINPUTDIALOG_H
KDoubleSpinBox
A spin box for fractional numbers.
Definition: knuminput.h:838
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:191
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:145
KIntSpinBox
A TQSpinBox with support for arbitrary base numbers.
Definition: knuminput.h:707
KComboBox
An enhanced combo box.
Definition: kcombobox.h:151
KInputDialog
The KInputDialog class provides a simple dialog to get a single value from the user.
Definition: kinputdialog.h:48
TDEListBox
A variant of TQListBox that honors KDE's system-wide settings.
Definition: tdelistbox.h:40
KTextEdit
A KDE'ified QTextEdit.
Definition: ktextedit.h:43

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.8.8
This website is maintained by Timothy Pearson.