• 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 <kdialogbase.h>
24 
25 class TQValidator;
26 
27 class KLineEdit;
28 class KIntSpinBox;
29 class KDoubleSpinBox;
30 class KComboBox;
31 class KTextEdit;
32 class KInputDialogPrivate;
33 
46 class TDEUI_EXPORT KInputDialog : public KDialogBase
47 {
48  TQ_OBJECT
49 
50  private:
51 
56  KInputDialog( const TQString &caption, const TQString &label,
57  const TQString &value, TQWidget *parent, const char *name,
58  TQValidator *validator, const TQString &mask );
59  KInputDialog( const TQString &caption, const TQString &label,
60  const TQString &value, TQWidget *parent, const char *name );
61  KInputDialog( const TQString &caption, const TQString &label, int value,
62  int minValue, int maxValue, int step, int base, TQWidget *parent,
63  const char *name );
64  KInputDialog( const TQString &caption, const TQString &label, double value,
65  double minValue, double maxValue, double step, int decimals,
66  TQWidget *parent, const char *name );
67  KInputDialog( const TQString &caption, const TQString &label,
68  const TQStringList &list, int current, bool editable, TQWidget *parent,
69  const char *name );
70  KInputDialog( const TQString &caption, const TQString &label,
71  const TQStringList &list, const TQStringList &select, bool editable,
72  TQWidget *parent, const char *name );
73 
74  ~KInputDialog();
75 
76  KLineEdit *lineEdit() const;
77  KIntSpinBox *intSpinBox() const;
78  KDoubleSpinBox *doubleSpinBox() const;
79  KComboBox *comboBox() const;
80  TDEListBox *listBox() const;
81  KTextEdit *textEdit() const;
82 
83  private slots:
84 
85  void slotEditTextChanged( const TQString& );
86  void slotUpdateButtons( const TQString& );
87 
88  public:
89 
117  static TQString getText( const TQString &caption, const TQString &label,
118  const TQString &value=TQString::null, bool *ok=0, TQWidget *parent=0,
119  const char *name=0, TQValidator *validator=0,
120  const TQString &mask=TQString::null );
121 
130  static TQString text( const TQString &caption, const TQString &label,
131  const TQString &value=TQString::null, bool *ok=0, TQWidget *parent=0,
132  const char *name=0, TQValidator *validator=0,
133  const TQString &mask=TQString::null,
134  const TQString& whatsThis=TQString::null );
135 
154  static TQString getMultiLineText( const TQString &caption,
155  const TQString &label, const TQString &value=TQString::null,
156  bool *ok=0, TQWidget *parent=0, const char *name=0 );
157 
182  static int getInteger( const TQString &caption, const TQString &label,
183  int value=0, int minValue=-2147483647, int maxValue=2147483647,
184  int step=1, int base=10, bool *ok=0, TQWidget *parent=0,
185  const char *name=0 );
186 
191  static int getInteger( const TQString &caption, const TQString &label,
192  int value=0, int minValue=-2147483647, int maxValue=2147483647,
193  int step=1, bool *ok=0, TQWidget *parent=0, const char *name=0 );
194 
218  static double getDouble( const TQString &caption, const TQString &label,
219  double value=0, double minValue=-2147483647,
220  double maxValue=2147483647, double step=0.1, int decimals=1,
221  bool *ok=0, TQWidget *parent=0, const char *name=0 );
222 
227  static double getDouble( const TQString &caption, const TQString &label,
228  double value=0, double minValue=-2147483647,
229  double maxValue=2147483647, int decimals=1, bool *ok=0,
230  TQWidget *parent=0, const char *name=0 );
231 
252  static TQString getItem( const TQString &caption, const TQString &label,
253  const TQStringList &list, int current=0, bool editable=false,
254  bool *ok=0, TQWidget *parent=0, const char *name=0 );
255 
276  static TQStringList getItemList( const TQString &caption,
277  const TQString &label, const TQStringList &list=TQStringList(),
278  const TQStringList &select=TQStringList(), bool multiple=false,
279  bool *ok=0, TQWidget *parent=0, const char *name=0 );
280 
281  private:
282 
283  KInputDialogPrivate* const d;
284  friend class KInputDialogPrivate;
285 };
286 
287 #endif // KINPUTDIALOG_H
KComboBox
An enhanced combo box.
Definition: kcombobox.h:152
KDialogBase
A dialog base class with standard buttons and predefined layouts.
Definition: kdialogbase.h:192
KDoubleSpinBox
A spin box for fractional numbers.
Definition: knuminput.h:838
KInputDialog
The KInputDialog class provides a simple dialog to get a single value from the user.
Definition: kinputdialog.h:47
KIntSpinBox
A TQSpinBox with support for arbitrary base numbers.
Definition: knuminput.h:708
KLineEdit
An enhanced TQLineEdit widget for inputting text.
Definition: klineedit.h:146
KTextEdit
A KDE'ified QTextEdit.
Definition: ktextedit.h:44
TDEListBox
A variant of TQListBox that honors KDE's system-wide settings.
Definition: tdelistbox.h:41

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.1
This website is maintained by Timothy Pearson.