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

tdeui

Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KDialog Class Reference

#include <kdialog.h>

Inheritance diagram for KDialog:
KDialogBase KTipDialog KBugReport KColorDialog KEditToolbar KInputDialog KKeyDialog KLineEditDlg KPasswordDialog KPixmapRegionSelectorDialog KProgressBoxDialog KProgressDialog KSwitchLanguageDialog TDEAboutDialog TDEConfigDialog TDEFontDialog TDEShortcutDialog

Public Slots

virtual void polish ()
 
virtual void setCaption (const TQString &caption)
 
virtual void setPlainCaption (const TQString &caption)
 

Signals

void layoutHintChanged ()
 

Public Member Functions

 KDialog (TQWidget *parent=0, const char *name=0, bool modal=false, WFlags f=0)
 

Static Public Member Functions

static int marginHint ()
 
static int spacingHint ()
 
static void resizeLayout (TQWidget *widget, int margin, int spacing)
 
static void resizeLayout (TQLayoutItem *lay, int margin, int spacing)
 
static void centerOnScreen (TQWidget *widget, int screen=-1)
 
static bool avoidArea (TQWidget *widget, const TQRect &area, int screen=-1)
 

Protected Member Functions

virtual void keyPressEvent (TQKeyEvent *)
 
virtual void virtual_hook (int id, void *data)
 

Detailed Description

Dialog with extended non-modal support and methods for KDE standard compliance.

Generally, you should not use this class directly, but KDialogBase which inherits KDialog.

If the dialog is non-modal and has a parent, the default keybindings (escape = reject(), enter = accept(), etc.) are disabled.

The marginHint() and spacingHint() sizes shall be used whenever you layout the interior of a dialog. One special note. If you make your own action buttons (OK, Cancel etc), the space beteween the buttons shall be spacingHint(), whereas the space above, below, to the right and to the left shall be marginHint(). If you add a separator line above the buttons, there shall be a marginHint() between the buttons and the separator and a marginHint() above the separator as well.

See also
KDialogBase
Author
Thomas Tanghus tangh.nosp@m.us@e.nosp@m.arthl.nosp@m.ing..nosp@m.net, Espen Sand espen.nosp@m.sa@o.nosp@m.nline.nosp@m..no

Definition at line 52 of file kdialog.h.

Constructor & Destructor Documentation

◆ KDialog()

KDialog::KDialog ( TQWidget *  parent = 0,
const char *  name = 0,
bool  modal = false,
WFlags  f = 0 
)

Constructor.

Takes the same arguments as TQDialog.

Definition at line 53 of file kdialog.cpp.

Member Function Documentation

◆ avoidArea()

bool KDialog::avoidArea ( TQWidget *  widget,
const TQRect &  area,
int  screen = -1 
)
static

Places widget so that it doesn't cover a certain area of the screen.

This is typically used by the "find dialog" so that the match it finds can be read. For screen, see centerOnScreen

Returns
true on success (widget doesn't cover area anymore, or never did), false on failure (not enough space found)
Since
3.2

Definition at line 212 of file kdialog.cpp.

◆ centerOnScreen()

void KDialog::centerOnScreen ( TQWidget *  widget,
int  screen = -1 
)
static

Centers widget on the desktop, taking multi-head setups into account.

If screen is -1, widget will be centered on its current screen (if it was shown already) or on the primary screen. If screen is -3, widget will be centered on the screen that currently contains the mouse pointer. screen will be ignored if a merged display (like Xinerama) is not in use, or merged display placement is not enabled in kdeglobals.

Since
3.1

Definition at line 202 of file kdialog.cpp.

◆ keyPressEvent()

void KDialog::keyPressEvent ( TQKeyEvent *  e)
protectedvirtual

Reimplemented in KColorDialog, and KDialogBase.

Definition at line 62 of file kdialog.cpp.

◆ layoutHintChanged

void KDialog::layoutHintChanged ( )
signal

Emitted when the margin size and/or spacing size have changed.

Use marginHint() and spacingHint() in your slot to get the new values.

◆ marginHint()

int KDialog::marginHint ( )
static

Return the number of pixels you shall use between a dialog edge and the outermost widget(s) according to the KDE standard.

Definition at line 104 of file kdialog.cpp.

◆ polish

void KDialog::polish ( )
virtualslot

If the dialog starts with focus in a TQLineEdit child, then call selectAll() on the child.

Definition at line 116 of file kdialog.cpp.

◆ resizeLayout() [1/2]

void KDialog::resizeLayout ( TQLayoutItem *  lay,
int  margin,
int  spacing 
)
static

Resize every layout associated with lay and its children.

Parameters
laylayout to be resized
marginThe new layout margin
spacingThe new layout spacing

Definition at line 163 of file kdialog.cpp.

◆ resizeLayout() [2/2]

void KDialog::resizeLayout ( TQWidget *  widget,
int  margin,
int  spacing 
)
static

Resize every layout manager used in widget and its nested children.

Parameters
widgetThe widget used.
marginThe new layout margin.
spacingThe new layout spacing.

Definition at line 140 of file kdialog.cpp.

◆ setCaption

void KDialog::setCaption ( const TQString &  caption)
virtualslot

Make a KDE compliant caption.

Parameters
captionYour caption. Do not include the application name in this string. It will be added automatically according to the KDE standard.

Definition at line 122 of file kdialog.cpp.

◆ setPlainCaption

void KDialog::setPlainCaption ( const TQString &  caption)
virtualslot

Make a plain caption without any modifications.

Parameters
captionYour caption. This is the string that will be displayed in the window title.

Definition at line 129 of file kdialog.cpp.

◆ spacingHint()

int KDialog::spacingHint ( )
static

Return the number of pixels you shall use between widgets inside a dialog according to the KDE standard.

Definition at line 110 of file kdialog.cpp.

◆ virtual_hook()

void KDialog::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 325 of file kdialog.cpp.


The documentation for this class was generated from the following files:
  • kdialog.h
  • kdialog.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.9.4
This website is maintained by Timothy Pearson.