|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.qt.Qt
org.kde.qt.QObject
org.kde.qt.QWidget
org.kde.qt.QDialog
org.kde.koala.KDialog
org.kde.koala.KDialogBase
public class KDialogBase
Provides basic functionality needed by nearly all dialogs.
It offers the standard action buttons you'd expect to find in a
dialog as well as the capability to define at most three configurable
buttons. You can define a main widget that contains your specific
dialog layout or you can use a predefined layout. Currently, TreeList
/Paged, Tabbed
, Plain
, Swallow
and IconList
mode layouts (faces) are available.
The class takes care of the geometry management. You only need to define
a minimum size for the widget you want to use as the main widget.
You can set a background tile (pixmap) for parts of the dialog. The
tile you select is shared by all instances of this class in your
application so that they all get the same look and feel.
There is a tutorial available on http://developer.kde.org/ (NOT YET)
that contains
copy/paste examples as well a screenshots on how to use this class.
UrlDlg.UrlDlg( QWidget parent, String caption, String urltext) { QWidget page = new QWidget( this ); setMainWidget(page); QVBoxLayout topLayout = new QVBoxLayout( page, 0, spacingHint() ); QLabel label = new QLabel( caption, page, "caption" ); topLayout.addWidget( label ); lineedit = new QLineEdit( urltext, page, "lineedit" ); lineedit.setMinimumWidth(fontMetrics().maxWidth()*20); topLayout.addWidget( lineedit ); topLayout.addStretch(10); }If you use makeVBoxMainWidget(), then the dialog above can be made simpler but you lose the ability to add a stretchable area:
UrlDlg.UrlDlg( QWidget parent, String caption, String urltext) { QVBox page = makeVBoxMainWidget(); QLabel label = new QLabel( caption, page, "caption" ); lineedit = new QLineEdit( urltext, page, "lineedit" ); lineedit.setMinimumWidth(fontMetrics().maxWidth()*20); }This class can be used in many ways. Note that most KDE ui widgets and many of KDE core applications use the KDialogBase so for more inspiration you should study the code for these. See
KDialogBaseSignals
for signals emitted by KDialogBase
Field Summary | |
---|---|
static int |
ActionStyle0
|
static int |
ActionStyle1
|
static int |
ActionStyle2
|
static int |
ActionStyle3
|
static int |
ActionStyle4
|
static int |
ActionStyleMAX
|
static int |
Apply
|
static int |
Cancel
|
static int |
Close
|
static int |
Default
|
static int |
Details
|
static int |
Filler
|
static int |
Help
|
static int |
IconList
|
static int |
No
|
static int |
NoDefault
|
static int |
Ok
|
static int |
Plain
|
static int |
Stretch
|
static int |
Swallow
|
static int |
Tabbed
|
static int |
TreeList
TreeList - A dialog with a tree on the left side and a
representation of the contents on the right side. |
static int |
Try
|
static int |
User1
|
static int |
User2
|
static int |
User3
|
static int |
Yes
|
Fields inherited from class org.kde.qt.QDialog |
---|
Accepted, Rejected |
Fields inherited from class org.kde.qt.QWidget |
---|
AncestorOrigin, ClickFocus, NoFocus, ParentOrigin, StrongFocus, TabFocus, WheelFocus, WidgetOrigin, WindowOrigin |
Fields inherited from class org.kde.qt.Qt |
---|
AlignAuto, AlignBottom, AlignCenter, AlignHCenter, AlignHorizontal_Mask, AlignJustify, AlignLeft, AlignRight, AlignTop, AlignVCenter, AlignVertical_Mask, AlphaDither_Mask, ALT, AltButton, AnchorHref, AnchorName, AndNotROP, AndROP, ArrowCursor, Ascending, ASCII_ACCEL, AutoColor, AutoDither, AutoText, AvoidDither, BDiagPattern, BeginsWith, BevelJoin, BitmapCursor, BlankCursor, Bottom, BottomLeft, BottomRight, BreakAnywhere, BusyCursor, CaseSensitive, ClearROP, ColorMode_Mask, ColorOnly, Contains, ControlButton, CopyROP, CrossCursor, CrossPattern, CTRL, CustomPattern, DashDotDotLine, DashDotLine, DashLine, Dense1Pattern, Dense2Pattern, Dense3Pattern, Dense4Pattern, Dense5Pattern, Dense6Pattern, Dense7Pattern, Descending, DiagCrossPattern, DiffuseAlphaDither, DiffuseDither, Dither_Mask, DitherMode_Mask, DockBottom, DockLeft, DockMinimized, DockRight, DockTop, DockTornOff, DockUnmanaged, DontClip, DontPrint, DotLine, DownArrow, EndsWith, EraseROP, ExactMatch, ExpandTabs, FDiagPattern, FixedColor, FixedPixmap, FlatCap, ForbiddenCursor, HiEnglishUnit, HiMetricUnit, Horizontal, HorPattern, IbeamCursor, Identical, IncludeTrailingSpaces, ISODate, Key_0, Key_1, Key_2, Key_3, Key_4, Key_5, Key_6, Key_7, Key_8, Key_9, Key_A, Key_aacute, Key_Aacute, Key_acircumflex, Key_Acircumflex, Key_acute, Key_adiaeresis, Key_Adiaeresis, Key_ae, Key_AE, Key_agrave, Key_Agrave, Key_Alt, Key_Ampersand, Key_Any, Key_Apostrophe, Key_aring, Key_Aring, Key_AsciiCircum, Key_AsciiTilde, Key_Asterisk, Key_At, Key_atilde, Key_Atilde, Key_B, Key_Back, Key_Backslash, Key_Backspace, Key_BackSpace, Key_Backtab, Key_BackTab, Key_Bar, Key_BassBoost, Key_BassDown, Key_BassUp, Key_BraceLeft, Key_BraceRight, Key_BracketLeft, Key_BracketRight, Key_brokenbar, Key_C, Key_CapsLock, Key_ccedilla, Key_Ccedilla, Key_cedilla, Key_cent, Key_Clear, Key_Colon, Key_Comma, Key_Control, Key_copyright, Key_currency, Key_D, Key_degree, Key_Delete, Key_diaeresis, Key_Direction_L, Key_Direction_R, Key_division, Key_Dollar, Key_Down, Key_E, Key_eacute, Key_Eacute, Key_ecircumflex, Key_Ecircumflex, Key_ediaeresis, Key_Ediaeresis, Key_egrave, Key_Egrave, Key_End, Key_Enter, Key_Equal, Key_Escape, Key_eth, Key_ETH, Key_Exclam, Key_exclamdown, Key_F, Key_F1, Key_F10, Key_F11, Key_F12, Key_F13, Key_F14, Key_F15, Key_F16, Key_F17, Key_F18, Key_F19, Key_F2, Key_F20, Key_F21, Key_F22, Key_F23, Key_F24, Key_F25, Key_F26, Key_F27, Key_F28, Key_F29, Key_F3, Key_F30, Key_F31, Key_F32, Key_F33, Key_F34, Key_F35, Key_F4, Key_F5, Key_F6, Key_F7, Key_F8, Key_F9, Key_Favorites, Key_Forward, Key_G, Key_Greater, Key_guillemotleft, Key_guillemotright, Key_H, Key_Help, Key_Home, Key_HomePage, Key_Hyper_L, Key_Hyper_R, Key_hyphen, Key_I, Key_iacute, Key_Iacute, Key_icircumflex, Key_Icircumflex, Key_idiaeresis, Key_Idiaeresis, Key_igrave, Key_Igrave, Key_Insert, Key_J, Key_K, Key_L, Key_Launch0, Key_Launch1, Key_Launch2, Key_Launch3, Key_Launch4, Key_Launch5, Key_Launch6, Key_Launch7, Key_Launch8, Key_Launch9, Key_LaunchA, Key_LaunchB, Key_LaunchC, Key_LaunchD, Key_LaunchE, Key_LaunchF, Key_LaunchMail, Key_LaunchMedia, Key_Left, Key_Less, Key_M, Key_macron, Key_masculine, Key_MediaLast, Key_MediaNext, Key_MediaPlay, Key_MediaPrev, Key_MediaRecord, Key_MediaStop, Key_Menu, Key_Meta, Key_Minus, Key_mu, Key_multiply, Key_N, Key_Next, Key_nobreakspace, Key_notsign, Key_ntilde, Key_Ntilde, Key_NumberSign, Key_NumLock, Key_O, Key_oacute, Key_Oacute, Key_ocircumflex, Key_Ocircumflex, Key_odiaeresis, Key_Odiaeresis, Key_ograve, Key_Ograve, Key_onehalf, Key_onequarter, Key_onesuperior, Key_Ooblique, Key_OpenUrl, Key_ordfeminine, Key_oslash, Key_otilde, Key_Otilde, Key_P, Key_PageDown, Key_PageUp, Key_paragraph, Key_ParenLeft, Key_ParenRight, Key_Pause, Key_Percent, Key_Period, Key_periodcentered, Key_Plus, Key_plusminus, Key_Print, Key_Prior, Key_Q, Key_Question, Key_questiondown, Key_QuoteDbl, Key_QuoteLeft, Key_R, Key_Refresh, Key_registered, Key_Return, Key_Right, Key_S, Key_ScrollLock, Key_Search, Key_section, Key_Semicolon, Key_Shift, Key_Slash, Key_Space, Key_ssharp, Key_Standby, Key_sterling, Key_Stop, Key_Super_L, Key_Super_R, Key_SysReq, Key_T, Key_Tab, Key_thorn, Key_THORN, Key_threequarters, Key_threesuperior, Key_TrebleDown, Key_TrebleUp, Key_twosuperior, Key_U, Key_uacute, Key_Uacute, Key_ucircumflex, Key_Ucircumflex, Key_udiaeresis, Key_Udiaeresis, Key_ugrave, Key_Ugrave, Key_Underscore, Key_unknown, Key_Up, Key_V, Key_VolumeDown, Key_VolumeMute, Key_VolumeUp, Key_W, Key_X, Key_Y, Key_yacute, Key_Yacute, Key_ydiaeresis, Key_yen, Key_Z, KeyButtonMask, Keypad, LastCursor, LastROP, Left, LeftArrow, LeftButton, LocalDate, LocalTime, LoEnglishUnit, LogText, LoMetricUnit, MacStyle, META, MetaButton, MidButton, Minimized, MiterJoin, MODIFIER_MASK, MonoOnly, MotifStyle, MouseButtonMask, MPenCapStyle, MPenJoinStyle, MPenStyle, MV_10_DOT_0, MV_10_DOT_1, MV_10_DOT_2, MV_10_DOT_3, MV_10_DOT_4, MV_9, MV_CHEETAH, MV_JAGUAR, MV_PANTHER, MV_PUMA, MV_TIGER, MV_Unknown, NandROP, NoAccel, NoAlpha, NoBackground, NoBrush, NoButton, NoMatch, NoPen, NopROP, NorROP, NotAndROP, NotCopyROP, NotEraseROP, NotOrROP, NotROP, NotXorROP, OpaqueMode, OrderedAlphaDither, OrderedDither, OrNotROP, OrROP, Overline, PaletteBackground, PaletteBase, PaletteBrightText, PaletteButton, PaletteButtonText, PaletteDark, PaletteForeground, PaletteHighlight, PaletteHighlightedText, PaletteLight, PaletteLink, PaletteLinkVisited, PaletteMid, PaletteMidlight, PaletteShadow, PaletteText, PartialMatch, PixelUnit, PlainText, PMStyle, PointingHandCursor, PreferDither, RichText, Right, RightArrow, RightButton, RoundCap, RoundJoin, SetROP, SHIFT, ShiftButton, ShowPrefix, SingleLine, SizeAllCursor, SizeBDiagCursor, SizeFDiagCursor, SizeHorCursor, SizeVerCursor, SolidLine, SolidPattern, SplitHCursor, SplitVCursor, SquareCap, StrikeOut, TextDate, ThresholdAlphaDither, ThresholdDither, Top, TopLeft, TopRight, TornOff, TransparentMode, TwipsUnit, UI_AnimateCombo, UI_AnimateMenu, UI_AnimateToolBox, UI_AnimateTooltip, UI_FadeMenu, UI_FadeTooltip, UI_General, Underline, UNICODE_ACCEL, Unmanaged, UpArrow, UpArrowCursor, UTC, VerPattern, Vertical, WaitCursor, WDestructiveClose, WGroupLeader, WhatsThisCursor, Win3Style, WindowActive, WindowFullScreen, WindowMaximized, WindowMinimized, WindowNoState, WindowsStyle, WMacDrawer, WMacNoSheet, WMouseNoMask, WNoAutoErase, WNoMousePropagation, WNorthWestGravity, WordBreak, WPaintClever, WPaintDesktop, WPaintUnclipped, WRepaintNoErase, WResizeNoErase, WShowModal, WState_AutoMask, WState_BlockUpdates, WState_CompressKeys, WState_ConfigPending, WState_Created, WState_CreatedHidden, WState_Disabled, WState_DND, WState_Exposed, WState_ForceDisabled, WState_ForceHide, WState_FullScreen, WState_HasMouse, WState_InPaintEvent, WState_Maximized, WState_Minimized, WState_MouseTracking, WState_OwnCursor, WState_OwnSizePolicy, WState_Polished, WState_Reparented, WState_Reserved0, WState_Resized, WState_Visible, WStaticContents, WStyle_ContextHelp, WStyle_Customize, WStyle_Dialog, WStyle_DialogBorder, WStyle_Mask, WStyle_Maximize, WStyle_Minimize, WStyle_MinMax, WStyle_NoBorder, WStyle_NoBorderEx, WStyle_NormalBorder, WStyle_Reserved, WStyle_Splash, WStyle_StaysOnTop, WStyle_SysMenu, WStyle_Title, WStyle_Tool, WSubWindow, WType_Desktop, WType_Dialog, WType_Mask, WType_Modal, WType_Popup, WType_TopLevel, WV_2000, WV_2003, WV_32s, WV_95, WV_98, WV_CE, WV_CE_based, WV_CENET, WV_DOS_based, WV_Me, WV_NT, WV_NT_based, WV_XP, WWinOwnDC, WX11BypassWM, X11ParentRelative, XorROP |
Constructor Summary | |
---|---|
|
KDialogBase()
|
protected |
KDialogBase(java.lang.Class dummy)
|
|
KDialogBase(int dialogFace,
int f)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator,
KGuiItem user1)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator,
KGuiItem user1,
KGuiItem user2)
|
|
KDialogBase(int dialogFace,
int f,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator,
KGuiItem user1,
KGuiItem user2,
KGuiItem user3)
Constructor for the predefined layout mode where you specify the kind of layout (face). |
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent,
java.lang.String name)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator,
KGuiItem user1)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator,
KGuiItem user1,
KGuiItem user2)
|
|
KDialogBase(int dialogFace,
java.lang.String caption,
int buttonMask,
int defaultButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator,
KGuiItem user1,
KGuiItem user2,
KGuiItem user3)
In KDE4 a WFlag paramater should be added after modal and next function can be removed. |
|
KDialogBase(org.kde.qt.QWidget parent)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator,
KGuiItem user1)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator,
KGuiItem user1,
KGuiItem user2)
|
|
KDialogBase(org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
java.lang.String caption,
int buttonMask,
int defaultButton,
boolean separator,
KGuiItem user1,
KGuiItem user2,
KGuiItem user3)
Constructor for the standard mode where you must specify the main widget with setMainWidget() . |
|
KDialogBase(java.lang.String caption)
|
|
KDialogBase(java.lang.String caption,
int buttonMask)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent,
java.lang.String name)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator,
KGuiItem yes)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator,
KGuiItem yes,
KGuiItem no)
|
|
KDialogBase(java.lang.String caption,
int buttonMask,
int defaultButton,
int escapeButton,
org.kde.qt.QWidget parent,
java.lang.String name,
boolean modal,
boolean separator,
KGuiItem yes,
KGuiItem no,
KGuiItem cancel)
Constructor for a message box mode where the buttonMask can only
contain Yes, No, or Cancel. |
Method Summary | |
---|---|
org.kde.qt.QPushButton |
actionButton(int id)
Returns the action button that corresponds to the id.
Normally
you should not use this function. |
int |
activePageIndex()
Returns the index of the active page. |
void |
addButtonBelowList(KGuiItem guiitem,
org.kde.qt.QObject recv,
java.lang.String slot)
The same as the above function, but with a KGuiItem providing the text and icon for the button at the bottom of the TreeList/IconList. |
void |
addButtonBelowList(java.lang.String text,
org.kde.qt.QObject recv,
java.lang.String slot)
Add a button at the bottom of the TreeList/IconList. |
org.kde.qt.QGrid |
addGridPage(int n,
int dir,
java.lang.String itemName)
|
org.kde.qt.QGrid |
addGridPage(int n,
int dir,
java.lang.String[] items)
|
org.kde.qt.QGrid |
addGridPage(int n,
int dir,
java.lang.String[] items,
java.lang.String header)
|
org.kde.qt.QGrid |
addGridPage(int n,
int dir,
java.lang.String[] items,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
This is like addGridPage() just above, with the difference that the first element is a list of strings. |
org.kde.qt.QGrid |
addGridPage(int n,
int dir,
java.lang.String itemName,
java.lang.String header)
|
org.kde.qt.QGrid |
addGridPage(int n,
int dir,
java.lang.String itemName,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
Add a page to the dialog when the class is used in TreeList ,
IconList or Tabbed mode. |
org.kde.qt.QHBox |
addHBoxPage(java.lang.String itemName)
|
org.kde.qt.QHBox |
addHBoxPage(java.lang.String[] items)
|
org.kde.qt.QHBox |
addHBoxPage(java.lang.String[] items,
java.lang.String header)
|
org.kde.qt.QHBox |
addHBoxPage(java.lang.String[] items,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
This is like addHBoxPage() just above, with the difference that the first element is a list of strings. |
org.kde.qt.QHBox |
addHBoxPage(java.lang.String itemName,
java.lang.String header)
|
org.kde.qt.QHBox |
addHBoxPage(java.lang.String itemName,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
Add a page to the dialog when the class is used in TreeList ,
IconList or Tabbed mode. |
org.kde.qt.QFrame |
addPage(java.lang.String itemName)
|
org.kde.qt.QFrame |
addPage(java.lang.String[] items)
|
org.kde.qt.QFrame |
addPage(java.lang.String[] items,
java.lang.String header)
|
org.kde.qt.QFrame |
addPage(java.lang.String[] items,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
This is like addPage() just above, with the difference that the first element is a list of strings. |
org.kde.qt.QFrame |
addPage(java.lang.String itemName,
java.lang.String header)
|
org.kde.qt.QFrame |
addPage(java.lang.String itemName,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
Add a page to the dialog when the class is used in TreeList ,
IconList or Tabbed mode. |
org.kde.qt.QVBox |
addVBoxPage(java.lang.String itemName)
|
org.kde.qt.QVBox |
addVBoxPage(java.lang.String[] items)
|
org.kde.qt.QVBox |
addVBoxPage(java.lang.String[] items,
java.lang.String header)
|
org.kde.qt.QVBox |
addVBoxPage(java.lang.String[] items,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
This is like addVBoxPage() just above, with the difference that the first element is a list of strings. |
org.kde.qt.QVBox |
addVBoxPage(java.lang.String itemName,
java.lang.String header)
|
org.kde.qt.QVBox |
addVBoxPage(java.lang.String itemName,
java.lang.String header,
org.kde.qt.QPixmap pixmap)
Add a page to the dialog when the class is used in TreeList ,
IconList or Tabbed mode. |
void |
addWidgetBelowList(org.kde.qt.QWidget widget)
Add a widget at the bottom of the TreeList/IconList. |
void |
adjustSize()
Adjust the size of the dialog to fit the contents just before QDialog.exec() or QDialog.show() is called. |
static org.kde.qt.QPixmap |
backgroundTile()
Returns a pointer to the background tile if there is one. |
org.kde.qt.QSize |
calculateSize(int w,
int h)
Calculate the size hint for the dialog. |
void |
cancel()
Force closing the dialog, setting its result code to the one Esc would set. |
java.lang.String |
className()
|
protected void |
closeEvent(org.kde.qt.QCloseEvent e)
Detects when a dialog is being closed from the window manager controls. |
org.kde.qt.QSize |
configDialogSize(KConfig config,
java.lang.String groupName)
read the dialogs size from the configuration according to the screen size. |
org.kde.qt.QSize |
configDialogSize(java.lang.String groupName)
read the dialogs size from the configuration according to the screen size. |
void |
delayedDestruct()
Destruct the Dialog delayed. |
void |
disableResize()
Convenience method. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
void |
enableButton(int id,
boolean state)
Enable or disable (gray out) a general action button. |
void |
enableButtonApply(boolean state)
Enable or disable (gray out) the Apply button. |
void |
enableButtonCancel(boolean state)
Enable or disable (gray out) the Cancel button. |
void |
enableButtonOK(boolean state)
Enable or disable (gray out) the OK button. |
void |
enableButtonSeparator(boolean state)
Hide or display the a separator line drawn between the action buttons an the main widget. |
void |
enableLinkedHelp(boolean state)
Display or hide the help link area on the top of the dialog. |
protected void |
finalize()
Deletes the wrapped C++ instance |
static boolean |
haveBackgroundTile()
Check whether the background tile is set or not. |
void |
helpClickedSlot(java.lang.String arg1)
Connected to help link label. |
java.lang.String |
helpLinkText()
Returns the help link text. |
protected void |
hideEvent(org.kde.qt.QHideEvent arg1)
Emits the #hidden signal. |
void |
incInitialSize(org.kde.qt.QSize s)
|
void |
incInitialSize(org.kde.qt.QSize s,
boolean noResize)
Convenience method. |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
protected void |
keyPressEvent(org.kde.qt.QKeyEvent e)
Maps some keys to the actions buttons. |
org.kde.qt.QWidget |
mainWidget()
Returns the main widget if any. |
org.kde.qt.QGrid |
makeGridMainWidget(int n,
int dir)
Make a main widget. |
org.kde.qt.QHBox |
makeHBoxMainWidget()
Make a main widget. |
org.kde.qt.QFrame |
makeMainWidget()
Make a main widget. |
org.kde.qt.QVBox |
makeVBoxMainWidget()
Make a main widget. |
org.kde.qt.QMetaObject |
metaObject()
|
org.kde.qt.QSize |
minimumSizeHint()
|
int |
pageIndex(org.kde.qt.QWidget widget)
Returns the index of a page created with addPage(), addVBoxPage(), addHBoxPage() or addGridPage(). |
org.kde.qt.QFrame |
plainPage()
Retrieve the empty page when the predefined layout is used in Plain
mode. |
void |
saveDialogSize(KConfig config,
java.lang.String groupName)
|
void |
saveDialogSize(KConfig config,
java.lang.String groupName,
boolean global)
save the dialogs size dependant on the screen dimension. |
void |
saveDialogSize(java.lang.String groupName)
|
void |
saveDialogSize(java.lang.String groupName,
boolean global)
save the dialogs size dependant on the screen dimension either to the global or application config file. |
static void |
setBackgroundTile(org.kde.qt.QPixmap pix)
Sets the background tile. |
void |
setButtonApply()
|
void |
setButtonApply(KGuiItem item)
Sets the appearance of the Apply button. |
void |
setButtonBoxOrientation(int orientation)
Sets the orientation of the button box. |
void |
setButtonCancel()
|
void |
setButtonCancel(KGuiItem item)
Sets the appearance of the Cancel button. |
void |
setButtonGuiItem(int id,
KGuiItem item)
Sets the KGuiItem directly for the button instead of using 3 methods to set the text, tooltip and whatsthis strings. |
void |
setButtonOK()
|
void |
setButtonOK(KGuiItem item)
Sets the appearance of the OK button. |
void |
setButtonText(int id,
java.lang.String text)
Sets the text of any button. |
void |
setButtonTip(int id,
java.lang.String text)
Sets the tooltip text of any button. |
void |
setButtonWhatsThis(int id,
java.lang.String text)
Sets the "What's this?" text of any button. |
void |
setDetails(boolean showDetails)
Sets the status of the Details button. |
void |
setDetailsWidget(org.kde.qt.QWidget detailsWidget)
Sets the widget that gets shown when "Details" is enabled. |
void |
setEscapeButton(int id)
Sets the button that will be activated when the Escape key is pressed. |
void |
setFolderIcon(java.lang.String[] path,
org.kde.qt.QPixmap pixmap)
Sets the icon used in TreeList Mode for the given path. |
void |
setHelp(java.lang.String anchor)
|
void |
setHelp(java.lang.String anchor,
java.lang.String appname)
Sets the help path and topic. |
void |
setHelpLinkText(java.lang.String text)
Sets the text that is shown as the linked text. |
void |
setIconListAllVisible(boolean state)
This function has only effect in IconList mode. |
void |
setInitialSize(org.kde.qt.QSize s)
|
void |
setInitialSize(org.kde.qt.QSize s,
boolean noResize)
Convenience method. |
void |
setMainWidget(org.kde.qt.QWidget widget)
Sets the main user definable widget. |
void |
setRootIsDecorated(boolean state)
This function has only effect in TreeList mode. |
void |
setShowIconsInTreeList(boolean state)
This function has only effect in TreeList mode. |
void |
setTreeListAutoResize(boolean state)
This function has only effect in TreeList mode. |
void |
showButton(int id,
boolean state)
Hide or display a general action button. |
void |
showButtonApply(boolean state)
Hide or display the Apply button. |
void |
showButtonCancel(boolean state)
Hide or display the Cancel button. |
void |
showButtonOK(boolean state)
Hide or display the OK button. |
boolean |
showPage(int index)
Sets the page with index to be displayed. |
void |
showTile(boolean state)
Enable hiding of the background tile (if any). |
org.kde.qt.QSize |
sizeHint()
|
protected void |
slotApply()
Activated when the Apply button has been clicked. |
protected void |
slotCancel()
Activated when the Cancel button has been clicked. |
protected void |
slotClose()
Activated when the Close button has been clicked. |
protected void |
slotDefault()
Activated when the Default button has been clicked. |
protected void |
slotDelayedDestruct()
Deletes the dialog immediately. |
protected void |
slotDetails()
Activated when the Details button has been clicked. |
protected void |
slotHelp()
Activated when the Help button has been clicked. |
protected void |
slotNo()
Activated when the Yes button has been clicked. |
protected void |
slotOk()
Activated when the Ok button has been clicked. |
protected void |
slotTry()
Activated when the Try button has been clicked. |
protected void |
slotUser1()
Activated when the User1 button has been clicked. |
protected void |
slotUser2()
Activated when the User2 button has been clicked. |
protected void |
slotUser3()
Activated when the User3 button has been clicked. |
protected void |
slotYes()
Activated when the Yes button has been clicked. |
void |
unfoldTreeList()
|
void |
unfoldTreeList(boolean persist)
This function has only effect in TreeList mode. |
void |
updateBackground()
This method is called automatically whenever the background has changed. |
void |
updateGeometry()
Updates the margins and spacings. |
Methods inherited from class org.kde.koala.KDialog |
---|
avoidArea, avoidArea, centerOnScreen, centerOnScreen, marginHint, polish, resizeLayout, resizeLayout, setCaption, setPlainCaption, spacingHint |
Methods inherited from class org.kde.qt.QDialog |
---|
accept, adjustPosition, contextMenuEvent, done, eventFilter, exec, extension, hide, isModal, isSizeGripEnabled, move, move, orientation, reject, resize, resize, resizeEvent, result, setExtension, setGeometry, setGeometry, setModal, setOrientation, setResult, setSizeGripEnabled, show, showExtension, tr, tr |
Methods inherited from class org.kde.qt.QWidget |
---|
acceptDrops, autoMask, backgroundBrush, backgroundColor, backgroundMode, backgroundOffset, backgroundOrigin, backgroundPixmap, baseSize, caption, childAt, childAt, childAt, childAt, childrenRect, childrenRegion, clearFocus, clearMask, clearWFlags, clearWState, clipRegion, close, close, colorGroup, constPolish, create, create, create, create, cursor, customWhatsThis, destroy, destroy, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, drawText, drawText, dropEvent, enabledChange, enterEvent, erase, erase, erase, erase, eraseColor, erasePixmap, event, find, focusData, focusInEvent, focusNextPrevChild, focusOutEvent, focusPolicy, focusProxy, focusWidget, font, fontChange, fontInf, fontInfo, fontMet, fontMet, fontMet, fontMetrics, foregroundColor, frameGeometry, frameSize, geometry, getWFlags, getWState, grabKeyboard, grabMouse, grabMouse, hasFocus, hasMouse, hasMouseTracking, height, heightForWidth, icon, iconify, iconText, imComposeEvent, imEndEvent, imStartEvent, isActiveWindow, isDesktop, isDialog, isEnabled, isEnabledTo, isEnabledToTLW, isExtDev, isFocusEnabled, isFullScreen, isHidden, isInputMethodEnabled, isMaximized, isMinimized, isPopup, isShown, isTopLevel, isUpdatesEnabled, isVisible, isVisibleTo, isVisibleToTLW, keyboardGrabber, keyReleaseEvent, layout, leaveEvent, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, maximumHeight, maximumSize, maximumWidth, metric, microFocusHint, minimumHeight, minimumSize, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, moveEvent, ownCursor, ownFont, ownPalette, paintDevice, paintEvent, paintingActive, palette, paletteBackgroundColor, paletteBackgroundPixmap, paletteChange, paletteForegroundColor, parentWidget, parentWidget, pos, raise, recreate, recreate, rect, releaseKeyboard, releaseMouse, repaint, repaint, repaint, repaint, repaint, repaint, repaint, repaint, reparent, reparent, reparent, reparent, resetInputContext, resolution, scroll, scroll, setAcceptDrops, setActiveWindow, setAutoMask, setBackgroundColor, setBackgroundMode, setBackgroundMode, setBackgroundOrigin, setBackgroundPixmap, setBaseSize, setBaseSize, setCursor, setDisabled, setEnabled, setEraseColor, setErasePixmap, setFixedHeight, setFixedSize, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setFont, setHidden, setIcon, setIconText, setInputMethodEnabled, setKeyCompression, setMask, setMask, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMicroFocusHint, setMicroFocusHint, setMicroFocusHint, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setMouseTracking, setName, setPalette, setPalette, setPaletteBackgroundColor, setPaletteBackgroundPixmap, setPaletteForegroundColor, setResolution, setShown, setSizeIncrement, setSizeIncrement, setSizePolicy, setSizePolicy, setSizePolicy, setStyle, setStyle, setTabOrder, setUpdatesEnabled, setWFlags, setWindowOpacity, setWindowState, setWState, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, style, styleChange, tabletEvent, testWFlags, testWState, topLevelWidget, unsetCursor, unsetFont, unsetPalette, update, update, update, updateMask, visibleRect, wheelEvent, width, windowActivationChange, windowOpacity, windowState, winId, x, y |
Methods inherited from class org.kde.qt.QObject |
---|
activate_filters, activate_signal_bool, activate_signal, activate_signal, activate_signal, activate_signal, blockSignals, checkConnectArgs, child, child, child, childEvent, children, connect, connect, connectInternal, connectNotify, customEvent, deleteLater, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectInternal, disconnectNotify, dumpObjectInfo, dumpObjectTree, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, highPriority, i18n, inherits, insertChild, installEventFilter, isA, isWidgetType, killTimer, killTimers, name, name, normalizeSignalSlot, objectTrees, parent, property, queryList, queryList, queryList, queryList, queryList, registerUserData, removeChild, removeEventFilter, sender, setProperty, signalsBlocked, startTimer, timerEvent |
Methods inherited from class org.kde.qt.Qt |
---|
arrowCursor, bin, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, bitBlt, black, blankCursor, blue, color0, color1, copyBlt, copyBlt, copyBlt, copyBlt, copyBlt, crossCursor, cyan, darkBlue, darkCyan, darkGray, darkGreen, darkMagenta, darkRed, darkYellow, dec, dynamicCast, endl, flush, forbiddenCursor, fromUtf8, gray, green, hex, ibeamCursor, lightGray, magenta, oct, op_div, op_div, op_div, op_div, op_equals, op_equals, op_equals, op_equals, op_minus, op_minus, op_minus, op_mult, op_mult, op_mult, op_mult, op_mult, op_mult, op_mult, op_mult, op_mult, op_not_equals, op_not_equals, op_not_equals, op_not_equals, op_plus, op_plus, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_read, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, op_write, pointingHandCursor, qAlpha, qApp, qAppName, qBlue, qCompress, qCompress, qDebug, qDebug, qDrawArrow, qDrawItem, qDrawItem, qDrawItem, qDrawPlainRect, qDrawPlainRect, qDrawPlainRect, qDrawPlainRect, qDrawPlainRect, qDrawPlainRect, qDrawShadeLine, qDrawShadeLine, qDrawShadeLine, qDrawShadeLine, qDrawShadeLine, qDrawShadeLine, qDrawShadeLine, qDrawShadeLine, qDrawShadePanel, qDrawShadePanel, qDrawShadePanel, qDrawShadePanel, qDrawShadePanel, qDrawShadePanel, qDrawShadePanel, qDrawShadePanel, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawShadeRect, qDrawWinButton, qDrawWinButton, qDrawWinButton, qDrawWinButton, qDrawWinButton, qDrawWinButton, qDrawWinPanel, qDrawWinPanel, qDrawWinPanel, qDrawWinPanel, qDrawWinPanel, qDrawWinPanel, qFatal, qFatal, qGLVersion, qGray, qGray, qGreen, qInitNetworkProtocols, qInstallPath, qInstallPathBins, qInstallPathData, qInstallPathDocs, qInstallPathHeaders, qInstallPathLibs, qInstallPathPlugins, qInstallPathSysconf, qInstallPathTranslations, qItemRect, qItemRect, qObsolete, qObsolete, qObsolete, qRed, qRgb, qRgba, qRound, qSharedBuild, qSuppressObsoleteWarnings, qSuppressObsoleteWarnings, qSysInfo, qSystemWarning, qSystemWarning, qUncompress, qUncompress, qVersion, qWarning, qWarning, red, reset, SIGNAL, sizeAllCursor, sizeBDiagCursor, sizeFDiagCursor, sizeHorCursor, sizeVerCursor, SLOT, splitHCursor, splitVCursor, upArrowCursor, waitCursor, whatsThisCursor, white, ws, yellow |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int Help
public static final int Default
public static final int Ok
public static final int Apply
public static final int Try
public static final int Cancel
public static final int Close
public static final int User1
public static final int User2
public static final int User3
public static final int No
public static final int Yes
public static final int Details
public static final int Filler
public static final int Stretch
public static final int NoDefault
public static final int ActionStyle0
public static final int ActionStyle1
public static final int ActionStyle2
public static final int ActionStyle3
public static final int ActionStyle4
public static final int ActionStyleMAX
public static final int TreeList
TreeList
- A dialog with a tree on the left side and a
representation of the contents on the right side.
Tabbed
- A dialog using a QTabWidget.
Plain
- A normal dialog. Use plainPage() as parent for widgets.
Swallow
- Simplifes the usage of existing widgets. You specify
the widget to be displayed by setMainWidget().
IconList
- A dialog with an iconlist on the left side and a
representation of the contents on the right side.
public static final int Tabbed
public static final int Plain
public static final int Swallow
public static final int IconList
Constructor Detail |
---|
protected KDialogBase(java.lang.Class dummy)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3)
parent
- Parent of the dialog.name
- Dialog name (for internal use only)modal
- Controls dialog modality. If false
, the rest of the
program interface (example: other dialogs) is accessible while
the dialog is open.caption
- The dialog caption. Do not specify the application name
here. The class will take care of that.buttonMask
- Specifies which buttons will be visible. If zero
(0) no button box will be made.defaultButton
- Specifies which button will be marked as
the default. Use ButtonCode.NoDefault to indicate that no button
should be marked as the default button.separator
- If true
, a separator line is drawn between the
action buttons and the main widget.user1
- User button1 item.user2
- User button2 item.user3
- User button3 item.public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name, boolean modal)
public KDialogBase(org.kde.qt.QWidget parent, java.lang.String name)
public KDialogBase(org.kde.qt.QWidget parent)
public KDialogBase()
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3)
dialogFace
- You can use TreeList, Tabbed, Plain, Swallow or
IconList.caption
- The dialog caption. Do not specify the application name
here. The class will take care of that.buttonMask
- Specifies which buttons will be visible. If zero
(0) no button box will be made.defaultButton
- Specifies which button will be marked as
the default. Use ButtonCode.NoDefault to indicate that no button
should be marked as the default button.parent
- Parent of the dialog.name
- Dialog name (for internal use only).modal
- Controls dialog modality. If false
, the rest of the
program interface (example: other dialogs) is accessible while
the dialog is open.separator
- If true
, a separator line is drawn between the
action buttons and the main widget.user1
- User button1 text item.user2
- User button2 text item.user3
- User button3 text item.public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator, KGuiItem user1, KGuiItem user2)
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator, KGuiItem user1)
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator)
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal)
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent, java.lang.String name)
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton, org.kde.qt.QWidget parent)
public KDialogBase(int dialogFace, java.lang.String caption, int buttonMask, int defaultButton)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2, KGuiItem user3)
dialogFace
- You can use TreeList, Tabbed, Plain, Swallow or
IconList.f
- widget flags, by default it is just set to WStyle_DialogBorder.caption
- The dialog caption. Do not specify the application name
here. The class will take care of that.parent
- Parent of the dialog.name
- Dialog name (for internal use only).modal
- Controls dialog modality. If false
, the rest of the
program interface (example: other dialogs) is accessible while
the dialog is open.buttonMask
- Specifies which buttons will be visible. If zero
(0) no button box will be made.defaultButton
- Specifies which button will be marked as
the default. Use ButtonCode.NoDefault to indicate that no button
should be marked as the default button.separator
- If true
, a separator line is drawn between the
action buttons and the main widget.user1
- User button1 text item.user2
- User button2 text item.user3
- User button3 text item.public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1, KGuiItem user2)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator, KGuiItem user1)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton, boolean separator)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask, int defaultButton)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption, int buttonMask)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, java.lang.String caption)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name, boolean modal)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent, java.lang.String name)
public KDialogBase(int dialogFace, int f, org.kde.qt.QWidget parent)
public KDialogBase(int dialogFace, int f)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no, KGuiItem cancel)
buttonMask
can only
contain Yes, No, or Cancel.
If you need other names you can rename
the buttons with setButtonText(). The dialog box is not resizable
by default but this can be changed by setInitialSize(). If you
select 'modal' to be true, the dialog will return Yes, No, or Cancel
when closed otherwise you can use the signals yesClicked(),
noClicked(), or cancelClicked() to determine the state.
caption
- The dialog caption. Do not specify the application name
here. The class will take care of that.buttonMask
- Specifies which buttons will be visible. If zero
(0) no button box will be made.defaultButton
- Specifies which button will be marked as
the default. Use ButtonCode.NoDefault to indicate that no button
should be marked as the default button.escapeButton
- Specifies which button will be activated by
when the dialog receives a Key_Escape
keypress.parent
- Parent of the dialog.name
- Dialog name (for internal use only).modal
- Controls dialog modality. If false
, the rest of the
program interface (example: other dialogs) is accessible
while the dialog is open.separator
- If true
, a separator line is drawn between the
action buttons and the main widget.yes
- Text to use for the first button (defaults to i18n("Yes"))no
- Text to use for the second button (defaults to i18n("No"))cancel
- Text to use for the third button (defaults to i18n("Cancel"))public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator, KGuiItem yes, KGuiItem no)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator, KGuiItem yes)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal, boolean separator)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent, java.lang.String name, boolean modal)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent, java.lang.String name)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton, org.kde.qt.QWidget parent)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton, int escapeButton)
public KDialogBase(java.lang.String caption, int buttonMask, int defaultButton)
public KDialogBase(java.lang.String caption, int buttonMask)
public KDialogBase(java.lang.String caption)
Method Detail |
---|
public org.kde.qt.QMetaObject metaObject()
metaObject
in class KDialog
public java.lang.String className()
className
in class KDialog
public void setButtonBoxOrientation(int orientation)
Vertical
or Horizontal.
If Horizontal
(default), the button box is positioned at the bottom of the
dialog. If Vertical
it will be placed at the right edge of the
dialog.
orientation
- The button box orientation.public void setEscapeButton(int id)
id
- The button code.public void adjustSize()
adjustSize
in class org.kde.qt.QWidget
public org.kde.qt.QSize sizeHint()
sizeHint
in class org.kde.qt.QDialog
public org.kde.qt.QSize minimumSizeHint()
minimumSizeHint
in class org.kde.qt.QDialog
public org.kde.qt.QFrame plainPage()
Plain
mode.
This widget must be used as the toplevel widget of your dialog
code.
Plain
or if you don't use any predefined layout.public org.kde.qt.QFrame addPage(java.lang.String itemName, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
,
IconList
or Tabbed
mode.
The returned widget must be used as the
toplevel widget for this particular page.
Note: The returned frame widget has no
layout manager associated with it. In order to use it you must
create a layout yourself as the example below illustrates:
QFrame page = addPage( i18n("Layout") ); QVBoxLayout topLayout = new QVBoxLayout( page, 0, KDialog.spacingHint() ); QLabel label = new QLabel( i18n("Layout type"), page ); topLayout.addWidget( label ); ..
itemName
- String used in the list or as tab item name.header
- Header text use in the list modes. Ignored in Tabbed
mode. If empty, the item text is used instead.pixmap
- Used in IconList
mode. You should prefer a pixmap
with size 32x32 pixels.
public org.kde.qt.QFrame addPage(java.lang.String itemName, java.lang.String header)
public org.kde.qt.QFrame addPage(java.lang.String itemName)
public org.kde.qt.QFrame addPage(java.lang.String[] items, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
face. Later this may
be added for the IconList
face too. In other faces than the
TreeList
, all the strings except the last one is ignored.
public org.kde.qt.QFrame addPage(java.lang.String[] items, java.lang.String header)
public org.kde.qt.QFrame addPage(java.lang.String[] items)
public org.kde.qt.QVBox addVBoxPage(java.lang.String itemName, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
,
IconList
or Tabbed
mode.
The returned widget must be used as the toplevel widget for
this particular page. The widget contains a QVBoxLayout
layout so the widget children are lined up vertically. You can
use it as follows:
QVBox page = addVBoxPage( i18n("Layout") ); QLabel label = new QLabel( i18n("Layout type"), page ); ..
itemName
- String used in the list or as tab item name.header
- Header text use in the list modes. Ignored in Tabbed
mode. If empty, the item text is used instead.pixmap
- Used in IconList
mode. You should prefer a pixmap
with size 32x32 pixels.
public org.kde.qt.QVBox addVBoxPage(java.lang.String itemName, java.lang.String header)
public org.kde.qt.QVBox addVBoxPage(java.lang.String itemName)
public org.kde.qt.QVBox addVBoxPage(java.lang.String[] items, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
face. Later this may
be added for the IconList
face too. In other faces than the
TreeList
, all the strings except the last one is ignored.
public org.kde.qt.QVBox addVBoxPage(java.lang.String[] items, java.lang.String header)
public org.kde.qt.QVBox addVBoxPage(java.lang.String[] items)
public org.kde.qt.QHBox addHBoxPage(java.lang.String itemName, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
,
IconList
or Tabbed
mode.
The returned widget must be used as the
toplevel widget for this particular page. The widget contains a
QHBoxLayout layout so the widget children are lined up horizontally.
You can use it as follows:
itemName
- String used in the list or as tab item name.header
- Header text use in the list modes. Ignored in Tabbed
mode. If empty, the item text is used instead.pixmap
- Used in IconList mode. You should prefer a pixmap
with size 32x32 pixels.
public org.kde.qt.QHBox addHBoxPage(java.lang.String itemName, java.lang.String header)
public org.kde.qt.QHBox addHBoxPage(java.lang.String itemName)
public org.kde.qt.QHBox addHBoxPage(java.lang.String[] items, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
face. Later this may
be added for the IconList
face too. In other faces than the
TreeList
, all the strings except the last one is ignored.
public org.kde.qt.QHBox addHBoxPage(java.lang.String[] items, java.lang.String header)
public org.kde.qt.QHBox addHBoxPage(java.lang.String[] items)
public org.kde.qt.QGrid addGridPage(int n, int dir, java.lang.String itemName, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
,
IconList
or Tabbed
mode.
The returned widget must be used as the
toplevel widget for this particular page. The widget contains a
QGridLayout layout so the widget children are positioned in a grid.
n
- Specifies the number of columns if dir
is Qt.Horizontal
or the number of rows if dir
is Qt.Vertical.dir
- Can be Qt.Horizontal or Qt.Vertical.itemName
- String used in the list or as tab item name.header
- Header text use in the list modes Ignored
in Tabbed
mode. If empty, the item text is used instead.pixmap
- Used in IconList
mode. You should prefer a pixmap
with size 32x32 pixels.
public org.kde.qt.QGrid addGridPage(int n, int dir, java.lang.String itemName, java.lang.String header)
public org.kde.qt.QGrid addGridPage(int n, int dir, java.lang.String itemName)
public org.kde.qt.QGrid addGridPage(int n, int dir, java.lang.String[] items, java.lang.String header, org.kde.qt.QPixmap pixmap)
TreeList
face. Later this may
be added for the IconList
face too. In other faces than the
TreeList
, all the strings except the last one is ignored.
public org.kde.qt.QGrid addGridPage(int n, int dir, java.lang.String[] items, java.lang.String header)
public org.kde.qt.QGrid addGridPage(int n, int dir, java.lang.String[] items)
public void setFolderIcon(java.lang.String[] path, org.kde.qt.QPixmap pixmap)
TreeList
Mode for the given path.
path
- The path for which this icon should be shown.pixmap
- The icon used.public org.kde.qt.QFrame makeMainWidget()
Plain
, Swallow
, Tabbed
,
TreeList
).
public org.kde.qt.QVBox makeVBoxMainWidget()
Plain
, Swallow
, Tabbed
,
TreeList
, IconList
).
public org.kde.qt.QHBox makeHBoxMainWidget()
not
if you have used the
constructor where you define the face (Plain
, Swallow
, Tabbed
,
TreeList
, IconList
).
public org.kde.qt.QGrid makeGridMainWidget(int n, int dir)
n
- Specifies the number of columns if 'dir' is Qt.Horizontal
or the number of rows if 'dir' is Qt.Vertical.dir
- Can be Qt.Horizontal or Qt.Vertical.
public void enableButtonSeparator(boolean state)
public void showButton(int id, boolean state)
id
- Button identifier.state
- true display the button(s).public void showButtonOK(boolean state)
state
- If true
, display the button(s).public void showButtonApply(boolean state)
state
- true display the button(s).public void showButtonCancel(boolean state)
state
- true
display the button(s).public boolean showPage(int index)
index
to be displayed.
This method will only
work when the dialog is using the predefined shape of TreeList,
IconList or Tabbed.
index
- Index of the page to be shown.
true
if the page is shown, false
otherwise.public int activePageIndex()
public int pageIndex(org.kde.qt.QWidget widget)
widget
- The widget returned by addPage(), addVBoxPage(),
addHBoxPage() or addGridPage().
public void setMainWidget(org.kde.qt.QWidget widget)
widget
must have the
dialog as parent.
widget
- The widget to be displayed as main widget. If it
is 0, then the dialog will show an empty space of 100x100 pixels
instead.public org.kde.qt.QWidget mainWidget()
public void disableResize()
public void setInitialSize(org.kde.qt.QSize s, boolean noResize)
s
- Startup size.noResize
- If true
the dialog cannot be resized.public void setInitialSize(org.kde.qt.QSize s)
public void incInitialSize(org.kde.qt.QSize s, boolean noResize)
s
- Size added to minimum size.noResize
- If true
the dialog cannot be resized.public void incInitialSize(org.kde.qt.QSize s)
public org.kde.qt.QSize configDialogSize(java.lang.String groupName)
groupName
- Name of the group to read from. The old group
of KGlobal.config is preserved.public org.kde.qt.QSize configDialogSize(KConfig config, java.lang.String groupName)
config
- The KConfig object to read fromgroupName
- Name of the group to read from. The old group
of KGlobal.config is preserved.public void saveDialogSize(java.lang.String groupName, boolean global)
groupName
- The group to which the dialogs size is saved. See configDialogSize
to read the size.global
- Set to true if the entry should go to the global config rather
than to the applications config. Default is false.public void saveDialogSize(java.lang.String groupName)
public void saveDialogSize(KConfig config, java.lang.String groupName, boolean global)
config
- The KConfig object to write to.groupName
- The group to which the dialogs size is saved. See
configDialogSize to read the size.global
- Set to true if the entry should go to the global config.
Default is false.public void saveDialogSize(KConfig config, java.lang.String groupName)
public void setButtonOK(KGuiItem item)
item
- KGuiItem.public void setButtonOK()
public void setButtonApply(KGuiItem item)
item
- KGuiItem.public void setButtonApply()
public void setButtonCancel(KGuiItem item)
item
- KGuiItem.public void setButtonCancel()
public void setButtonText(int id, java.lang.String text)
id
- The button identifier.text
- Button text.public void setButtonTip(int id, java.lang.String text)
id
- The button identifier.text
- Button text.public void setButtonWhatsThis(int id, java.lang.String text)
id
- The button identifier.text
- Button text.public void setButtonGuiItem(int id, KGuiItem item)
id
- The button identifier.item
- The KGuiItem for the button.public void setTreeListAutoResize(boolean state)
state
- The resize mode. If false (default) the tree list keeps
its current width when the dialog becomes wider.public void setShowIconsInTreeList(boolean state)
state
- If true the icons are shown.public void setRootIsDecorated(boolean state)
state
- Root will be decorated if true.public void unfoldTreeList(boolean persist)
persist
flag is set opened
entries cannot be closed again, though.
persist
- If true the tree always stays unfolded.public void unfoldTreeList()
public void addWidgetBelowList(org.kde.qt.QWidget widget)
widget
- The widget to be added. It will be reparented into the
KJanusWidget, therefor it will be deleted with the
KJanusWidget, too. To be on the save side just don't keep
the pointer to this widget.public void addButtonBelowList(java.lang.String text, org.kde.qt.QObject recv, java.lang.String slot)
text
- The text on the PushButton.recv
- The object that is to receive the signal when the button
is clicked.slot
- The slot to connect to the clicked signal of the button.public void addButtonBelowList(KGuiItem guiitem, org.kde.qt.QObject recv, java.lang.String slot)
guiitem
- The text and icon on the PushButton.recv
- The object that is to receive the signal when the button
is clicked.slot
- The slot to connect to the clicked signal of the button.public void setIconListAllVisible(boolean state)
state
- The visibility mode. If true, the minimum height is
adjusted so that every icon in the list is visible at the
same time. The vertical scrollbar will never be visible.public void showTile(boolean state)
state
- true
will make the tile visible.public org.kde.qt.QSize calculateSize(int w, int h)
w
- The width of you special widget.h
- The height of you special widget.
w
and h
as the size of the main widget.public java.lang.String helpLinkText()
public org.kde.qt.QPushButton actionButton(int id)
id.
Normally
you should not use this function. Never delete the object returned
by this function. See also enableButton(), showButton(),
setButtonTip(), setButtonWhatsThis(), and setButtonText().
id
- Integer identifier of the button.
FIXME KDE 4: Return the actual KPushButton instead of QPushButton (Martijn)
public void enableButton(int id, boolean state)
id
- Button identifier.state
- true
enables the button(s).public void enableButtonOK(boolean state)
state
- true
enables the button.public void enableButtonApply(boolean state)
state
- true enables the button.public void enableButtonCancel(boolean state)
state
- true enables the button.public void enableLinkedHelp(boolean state)
state
- true
will display the area.public void delayedDestruct()
public void setHelpLinkText(java.lang.String text)
text
- The link text.public void setHelp(java.lang.String anchor, java.lang.String appname)
anchor
- Defined anchor in your docbook sourcesappname
- Defines the appname the help belongs to
If empty it's the current onepublic void setHelp(java.lang.String anchor)
public void helpClickedSlot(java.lang.String arg1)
public void setDetails(boolean showDetails)
public void setDetailsWidget(org.kde.qt.QWidget detailsWidget)
public void updateBackground()
public void cancel()
public static boolean haveBackgroundTile()
true
if there is defined a background tile.public static org.kde.qt.QPixmap backgroundTile()
public static void setBackgroundTile(org.kde.qt.QPixmap pix)
pix
- The background tile.protected void keyPressEvent(org.kde.qt.QKeyEvent e)
keyPressEvent
in class KDialog
protected void hideEvent(org.kde.qt.QHideEvent arg1)
hideEvent
in class org.kde.qt.QWidget
protected void closeEvent(org.kde.qt.QCloseEvent e)
closeEvent
in class org.kde.qt.QDialog
protected void slotHelp()
protected void slotDefault()
protected void slotDetails()
#detailsClicked(boolean)
protected void slotUser3()
protected void slotUser2()
protected void slotUser1()
protected void slotOk()
protected void slotApply()
protected void slotTry()
protected void slotYes()
protected void slotNo()
protected void slotCancel()
protected void slotClose()
public void updateGeometry()
updateGeometry
in class org.kde.qt.QWidget
protected void slotDelayedDestruct()
protected void finalize() throws java.lang.InternalError
finalize
in class KDialog
java.lang.InternalError
public void dispose()
dispose
in class KDialog
public boolean isDisposed()
isDisposed
in class KDialog
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |