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

tdeui

Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes
KLineEditDlg Class Reference

#include <klineeditdlg.h>

Inheritance diagram for KLineEditDlg:
KDialogBase KDialog TQDialog

List of all members.

Public Slots

void slotClear ()

Public Member Functions

 KLineEditDlg (const TQString &_text, const TQString &_value, TQWidget *parent) KDE_DEPRECATED
TQString text () const
KLineEdit * lineEdit () const

Static Public Member Functions

static TQString getText (const TQString &text, const TQString &value, bool *ok, TQWidget *parent, TQValidator *validator=0) KDE_DEPRECATED
static TQString getText (const TQString &caption, const TQString &text, const TQString &value=TQString::null, bool *ok=0, TQWidget *parent=0, TQValidator *validator=0) KDE_DEPRECATED

Protected Slots

void slotTextChanged (const TQString &)

Protected Member Functions

virtual void virtual_hook (int id, void *data)

Protected Attributes

KLineEdit * edit

Detailed Description

Deprecated:
Please use KInputDialog instead.

Dialog for user to enter a single line of text.

Version:
$Id$
Author:
David Faure <faure@kde.org>, layout management by Preston Brown <pbrown@kde.org>

Definition at line 40 of file klineeditdlg.h.


Constructor & Destructor Documentation

KLineEditDlg::KLineEditDlg ( const TQString &  _text,
const TQString &  _value,
TQWidget *  parent 
)

Create a dialog that asks for a single line of text.

_value is the initial value of the line. _text appears as label on top of the entry box. If the internal line edit has an associated TQValidator set, the OK button is disabled as long as the validator doesn't return Acceptable. If there's no validator, the OK button is enabled whenever the line edit isn't empty.

If you want to accept empty input, make a trivial TQValidator that always returns Acceptable, e.g. TQRegExpValidator with a regexp of ".*".

Parameters:
_textText of the label
_valueInitial value of the inputline
parentParent widget for the line edit dialog

Definition at line 37 of file klineeditdlg.cpp.


Member Function Documentation

TQString KLineEditDlg::getText ( const TQString &  text,
const TQString &  value,
bool *  ok,
TQWidget *  parent,
TQValidator *  validator = 0 
) [static]

Static convenience function to get a textual input from the user.

Parameters:
textText of the label
valueInitial value of the inputline
okthis bool will be set to true if user pressed "Ok"
validatorValidator to be stuffed into the line edit.
parentThe parent widget

Definition at line 159 of file klineeditdlg.cpp.

TQString KLineEditDlg::getText ( const TQString &  caption,
const TQString &  text,
const TQString &  value = TQString::null,
bool *  ok = 0,
TQWidget *  parent = 0,
TQValidator *  validator = 0 
) [static]

Static convenience function to get a textual input from the user.

This method includes a caption, and has (almost) the same API as QInputDialog::getText (no echo mode, we have KPasswordDialog).

Parameters:
captionCaption of the dialog
textText of the label
valueInitial value of the inputline
okthis bool will be set to true if user pressed "Ok"
parentThe parent widget for this text input dialog
validatorValidator to be stuffed into the line edit.

Definition at line 174 of file klineeditdlg.cpp.

KLineEdit* KLineEditDlg::lineEdit ( ) const [inline]
Returns:
the line edit widget

Definition at line 71 of file klineeditdlg.h.

void KLineEditDlg::slotClear ( ) [slot]

Clears the edit widget.

Definition at line 134 of file klineeditdlg.cpp.

void KLineEditDlg::slotTextChanged ( const TQString &  text) [protected, slot]

Enables and disables the OK button depending on the state returned by the lineedit's TQValidator.

Definition at line 139 of file klineeditdlg.cpp.

TQString KLineEditDlg::text ( ) const
Returns:
the value the user entered

Definition at line 154 of file klineeditdlg.cpp.


Member Data Documentation

KLineEdit* KLineEditDlg::edit [protected]

The line edit widget.

Definition at line 119 of file klineeditdlg.h.


The documentation for this class was generated from the following files:
  • klineeditdlg.h
  • klineeditdlg.cpp

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.7.6.1
This website is maintained by Timothy Pearson.