diff options
Diffstat (limited to 'python/pykde/sip/kdeui')
146 files changed, 15081 insertions, 0 deletions
diff --git a/python/pykde/sip/kdeui/kaboutapplication.sip b/python/pykde/sip/kdeui/kaboutapplication.sip new file mode 100644 index 00000000..5b88fc09 --- /dev/null +++ b/python/pykde/sip/kdeui/kaboutapplication.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAboutApplication : KAboutDialog +{ +%TypeHeaderCode +#include <kaboutapplication.h> +%End + + +public: + KAboutApplication (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + KAboutApplication (const KAboutData*, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + +protected: + void buildDialog (const KAboutData*); + +//force +%ConvertToSubClassCode + // The table of Python class objects indexed by their names. The table + // must be sorted by name. + + static sipStringTypeClassMap map[] = { + {sipName_KAboutApplication, &sipClass_KAboutApplication}, + {sipName_KAboutContainer, &sipClass_KAboutContainer}, + {sipName_KAboutContributor, &sipClass_KAboutContributor}, + {sipName_KAboutDialog, &sipClass_KAboutDialog}, + {sipName_KAboutKDE, &sipClass_KAboutKDE}, + {sipName_KAboutWidget, &sipClass_KAboutWidget}, + {sipName_KAction, &sipClass_KAction}, + {sipName_KActionCollection, &sipClass_KActionCollection}, + {sipName_KActionMenu, &sipClass_KActionMenu}, + {sipName_KActionSeparator, &sipClass_KActionSeparator}, + {sipName_KActiveLabel, &sipClass_KActiveLabel}, + {sipName_KAnimWidget, &sipClass_KAnimWidget}, + {sipName_KArrowButton, &sipClass_KArrowButton}, + {sipName_KAuthIcon, &sipClass_KAuthIcon}, + {sipName_KBugReport, &sipClass_KBugReport}, + {sipName_KButtonBox, &sipClass_KButtonBox}, + {sipName_KCModule, &sipClass_KCModule}, + {sipName_KCharSelect, &sipClass_KCharSelect}, + {sipName_KCharSelectTable, &sipClass_KCharSelectTable}, + {sipName_KColorButton, &sipClass_KColorButton}, + {sipName_KColorCells, &sipClass_KColorCells}, + {sipName_KColorCombo, &sipClass_KColorCombo}, + {sipName_KColorDialog, &sipClass_KColorDialog}, + {sipName_KColorDrag, &sipClass_KColorDrag}, + {sipName_KColorPatch, &sipClass_KColorPatch}, + {sipName_KComboBox, &sipClass_KComboBox}, + {sipName_KCommandHistory, &sipClass_KCommandHistory}, + {sipName_KCompletionBox, &sipClass_KCompletionBox}, + {sipName_KContextMenuManager, &sipClass_KContextMenuManager}, + {sipName_KDateInternalMonthPicker,&sipClass_KDateInternalMonthPicker}, +#if KDE_VERSION >= 0x030100 + {sipName_KDateInternalWeekSelector,&sipClass_KDateInternalWeekSelector}, +#endif + {sipName_KDateInternalYearSelector,&sipClass_KDateInternalYearSelector}, + {sipName_KDatePicker, &sipClass_KDatePicker}, + {sipName_KDatePicker, &sipClass_KDatePicker}, + {sipName_KDateTable, &sipClass_KDateTable}, + {sipName_KDateValidator, &sipClass_KDateValidator}, + {sipName_KDateWidget, &sipClass_KDateWidget}, + {sipName_KDialog, &sipClass_KDialog}, + {sipName_KDialogBase, &sipClass_KDialogBase}, + {sipName_KDialogQueue, &sipClass_KDialogQueue}, + {sipName_KDockArea, &sipClass_KDockArea}, + {sipName_KDockMainWindow, &sipClass_KDockMainWindow}, + {sipName_KDockManager, &sipClass_KDockManager}, + {sipName_KDockTabGroup, &sipClass_KDockTabGroup}, + {sipName_KDockWidget, &sipClass_KDockWidget}, + {sipName_KDockWidgetAbstractHeader,&sipClass_KDockWidgetAbstractHeader}, + {sipName_KDockWidgetAbstractHeaderDrag,&sipClass_KDockWidgetAbstractHeaderDrag}, + {sipName_KDockWidgetHeader, &sipClass_KDockWidgetHeader}, + {sipName_KDockWidgetHeaderDrag, &sipClass_KDockWidgetHeaderDrag}, +// {sipName_KDockWindow, &sipClass_KDockWindow}, +#if KDE_VERSION >= 0x030100 + {sipName_KDoubleSpinBox, &sipClass_KDoubleSpinBox}, + {sipName_KDoubleValidator, &sipClass_KDoubleValidator}, +#endif + {sipName_KDualColorButton, &sipClass_KDualColorButton}, + {sipName_KDualColorButton, &sipClass_KDualColorButton}, + {sipName_KEdFind, &sipClass_KEdFind}, + {sipName_KEdGotoLine, &sipClass_KEdGotoLine}, + {sipName_KEdReplace, &sipClass_KEdReplace}, + {sipName_KEdit, &sipClass_KEdit}, + {sipName_KEditListBox, &sipClass_KEditListBox}, + {sipName_KEditToolbar, &sipClass_KEditToolbar}, + {sipName_KEditToolbarWidget, &sipClass_KEditToolbarWidget}, + {sipName_KFloatValidator, &sipClass_KFloatValidator}, + {sipName_KFontAction, &sipClass_KFontAction}, + {sipName_KFontChooser, &sipClass_KFontChooser}, + {sipName_KFontCombo, &sipClass_KFontCombo}, + {sipName_KFontDialog, &sipClass_KFontDialog}, + {sipName_KFontSizeAction, &sipClass_KFontSizeAction}, + {sipName_KGradientSelector, &sipClass_KGradientSelector}, + {sipName_KHSSelector, &sipClass_KHSSelector}, + {sipName_KHelpMenu, &sipClass_KHelpMenu}, + {sipName_KHistoryCombo, &sipClass_KHistoryCombo}, + {sipName_KIconView, &sipClass_KIconView}, + {sipName_KIntSpinBox, &sipClass_KIntSpinBox}, + {sipName_KIntValidator, &sipClass_KIntValidator}, + {sipName_KJanusWidget, &sipClass_KJanusWidget}, + {sipName_KKeyButton, &sipClass_KKeyButton}, + {sipName_KKeyChooser, &sipClass_KKeyChooser}, + {sipName_KKeyDialog, &sipClass_KKeyDialog}, + {sipName_KLed, &sipClass_KLed}, + {sipName_KLineEdit, &sipClass_KLineEdit}, + {sipName_KLineEditDlg, &sipClass_KLineEditDlg}, + {sipName_KListAction, &sipClass_KListAction}, + {sipName_KListBox, &sipClass_KListBox}, + {sipName_KListView, &sipClass_KListView}, + {sipName_KMainWindow, &sipClass_KMainWindow}, + {sipName_KMenuBar, &sipClass_KMenuBar}, + {sipName_KMimeTypeValidator, &sipClass_KMimeTypeValidator}, + {sipName_KNumInput, &sipClass_KNumInput}, + {sipName_KPaletteTable, &sipClass_KPaletteTable}, + {sipName_KPanelApplet, &sipClass_KPanelApplet}, + {sipName_KPanelAppMenu, &sipClass_KPanelAppMenu}, + {sipName_KPanelExtension, &sipClass_KPanelExtension}, + {sipName_KPanelMenu, &sipClass_KPanelMenu}, +#if KDE_VERSION >= 0x030100 + {sipName_KPassivePopup, &sipClass_KPassivePopup}, +#endif + {sipName_KPasswordDialog, &sipClass_KPasswordDialog}, + {sipName_KPasswordEdit, &sipClass_KPasswordEdit}, + {sipName_KPopupFrame, &sipClass_KPopupFrame}, + {sipName_KPopupMenu, &sipClass_KPopupMenu}, + {sipName_KPopupTitle, &sipClass_KPopupTitle}, + {sipName_KProgress, &sipClass_KProgress}, + {sipName_KProgressDialog, &sipClass_KProgressDialog}, + {sipName_KPushButton, &sipClass_KPushButton}, + {sipName_KRadioAction, &sipClass_KRadioAction}, + {sipName_KRecentFilesAction, &sipClass_KRecentFilesAction}, + {sipName_KRestrictedLine, &sipClass_KRestrictedLine}, + {sipName_KRootPermsIcon, &sipClass_KRootPermsIcon}, + {sipName_KRootPixmap, &sipClass_KRootPixmap}, + {sipName_KRuler, &sipClass_KRuler}, + {sipName_KSelectAction, &sipClass_KSelectAction}, + {sipName_KSelector, &sipClass_KSelector}, + {sipName_KSeparator, &sipClass_KSeparator}, +// {sipName_KSharedPixmap, &sipClass_KSharedPixmap}, + {sipName_KSqueezedTextLabel, &sipClass_KSqueezedTextLabel}, + {sipName_KStatusBar, &sipClass_KStatusBar}, + {sipName_KStatusBarLabel, &sipClass_KStatusBarLabel}, + {sipName_KStringListValidator, &sipClass_KStringListValidator}, + {sipName_KSystemTray, &sipClass_KSystemTray}, + {sipName_KTabCtl, &sipClass_KTabCtl}, + {sipName_KTextBrowser, &sipClass_KTextBrowser}, +#if KDE_VERSION >= 0x030100 + {sipName_KTextEdit, &sipClass_KTextEdit}, +#endif + {sipName_KTipDialog, &sipClass_KTipDialog}, + {sipName_KToggleAction, &sipClass_KToggleAction}, +#if KDE_VERSION >= 0x030100 + {sipName_KToggleToolBarAction, &sipClass_KToggleToolBarAction}, +#endif + {sipName_KToolBar, &sipClass_KToolBar}, + {sipName_KToolBarButton, &sipClass_KToolBarButton}, + {sipName_KToolBarPopupAction, &sipClass_KToolBarPopupAction}, + {sipName_KToolBarRadioGroup, &sipClass_KToolBarRadioGroup}, + {sipName_KToolBarSeparator, &sipClass_KToolBarSeparator}, + {sipName_KURLLabel, &sipClass_KURLLabel}, + {sipName_KValueSelector, &sipClass_KValueSelector}, +#if KDE_VERSION >= 0x030100 + {sipName_KWidgetAction, &sipClass_KWidgetAction}, + {sipName_KWindowInfo, &sipClass_KWindowInfo}, +#endif + {sipName_KWindowListMenu, &sipClass_KWindowListMenu}, + {sipName_KWizard, &sipClass_KWizard}, + {sipName_KWritePermsIcon, &sipClass_KWritePermsIcon}, + {sipName_KXMLGUIFactory, &sipClass_KXMLGUIFactory}, + {sipName_KXYSelector, &sipClass_KXYSelector}, +// {sipName_PyKPanelApplet, &sipClass_PyKPanelApplet}, +// {sipName_QXEmbed, &sipClass_QXEmbed}, + }; + + sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0])); +%End +//end + +}; // class KAboutApplication + diff --git a/python/pykde/sip/kdeui/kaboutdialog.sip b/python/pykde/sip/kdeui/kaboutdialog.sip new file mode 100644 index 00000000..167d2d09 --- /dev/null +++ b/python/pykde/sip/kdeui/kaboutdialog.sip @@ -0,0 +1,190 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAboutContainer : QFrame +{ +%TypeHeaderCode +#include <kaboutdialog.h> +%End + + +public: + KAboutContainer (QWidget* /TransferThis/ = 0, const char* = 0, int = 0, int = 0, int = AlignCenter , int = AlignCenter ); + void addWidget (QWidget*); + void addPerson (const QString&, const QString&, const QString&, const QString&, bool = 0, bool = 0, bool = 0); + void addTitle (const QString&, int = AlignLeft , bool = 0, bool = 0); + void addImage (const QString&, int = AlignLeft ); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + +protected: + virtual void childEvent (QChildEvent*); + +signals: + void urlClick (const QString&); + void mailClick (const QString&, const QString&); + +}; // class KAboutContainer + + +class KAboutContributor : QFrame +{ +%TypeHeaderCode +#include <kaboutdialog.h> +%End + + +public: + KAboutContributor (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null , bool = 0, bool = 1, bool = 0); + void setName (const QString&, const QString& = QString ::null , bool = 1); + void setEmail (const QString&, const QString& = QString ::null , bool = 1); + void setURL (const QString&, const QString& = QString ::null , bool = 1); + void setWork (const QString&, const QString& = QString ::null , bool = 1); + QString getName (); + QString getEmail (); + QString getURL (); + QString getWork (); + virtual QSize sizeHint () const; + +protected: + virtual void fontChange (const QFont&); + +protected slots: + void urlClickedSlot (const QString&); + void emailClickedSlot (const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +}; // class KAboutContributor + + +class KAboutWidget : QWidget +{ +%TypeHeaderCode +#include <kaboutdialog.h> +%End + + +public: + KAboutWidget (QWidget* /TransferThis/ = 0, const char* = 0); + void adjust (); + void setLogo (const QPixmap&); + void setAuthor (const QString&, const QString&, const QString&, const QString&); + void setMaintainer (const QString&, const QString&, const QString&, const QString&); + void addContributor (const QString&, const QString&, const QString&, const QString&); + void setVersion (const QString&); + +protected slots: + void sendEmailSlot (const QString&, const QString&); + void openURLSlot (const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +protected: + void resizeEvent (QResizeEvent*); + +}; // class KAboutWidget + + +class KAboutDialog : KDialogBase +{ +%TypeHeaderCode +#include <kaboutdialog.h> +%End + + +public: + + enum LayoutType + { + AbtPlain, + AbtTabbed, + AbtTitle, + AbtImageLeft, + AbtImageRight, + AbtImageOnly, + AbtProduct, + AbtKDEStandard, + AbtAppStandard, + AbtImageAndTitle + }; + + +public: + KAboutDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + KAboutDialog (int, const QString&, int, ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + void adjust (); + virtual void show (); + virtual void show (QWidget*); + void setTitle (const QString&); + void setImage (const QString&); + +%If ( KDE_3_3_0 - ) + void setIcon (const QString&); + +%If ( KDE_3_4_0 - ) + void setProgramLogo (const QString&); + void setProgramLogo (const QPixmap&); +%End + +%End + + void setImageBackgroundColor (const QColor&); + void setImageFrame (bool); + void setProduct (const QString&, const QString&, const QString&, const QString&); + QFrame* addTextPage (const QString&, const QString&, bool = 0, int = 10); + QFrame* addLicensePage (const QString&, const QString&, int = 10); + KAboutContainer* addContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); + KAboutContainer* addScrolledContainerPage (const QString&, int = AlignCenter , int = AlignCenter ); + KAboutContainer* addContainer (int, int); + QFrame* addPage (const QString&); + void setLogo (const QPixmap&); + void setAuthor (const QString&, const QString&, const QString&, const QString&); + void setMaintainer (const QString&, const QString&, const QString&, const QString&); + void addContributor (const QString&, const QString&, const QString&, const QString&); + void setVersion (const QString&); + static void imageURL (QWidget* /Transfer/, const QString&, const QString&, const QColor&, const QString&); + +signals: + void sendEmail (const QString&, const QString&); + void openURL (const QString&); + +protected: + +protected slots: + void sendEmailSlot (const QString&, const QString&); + void openURLSlot (const QString&); + virtual void mouseTrackSlot (int, const QMouseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAboutDialog + diff --git a/python/pykde/sip/kdeui/kaboutkde.sip b/python/pykde/sip/kdeui/kaboutkde.sip new file mode 100644 index 00000000..36c437b1 --- /dev/null +++ b/python/pykde/sip/kdeui/kaboutkde.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAboutKDE : KAboutDialog +{ +%TypeHeaderCode +#include <kaboutkde.h> +%End + + +public: + KAboutKDE (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + +}; // class KAboutKDE + diff --git a/python/pykde/sip/kdeui/kaccelmanager.sip b/python/pykde/sip/kdeui/kaccelmanager.sip new file mode 100644 index 00000000..c8ebb465 --- /dev/null +++ b/python/pykde/sip/kdeui/kaccelmanager.sip @@ -0,0 +1,43 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_4 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KAcceleratorManager +{ +%TypeHeaderCode +#include <kaccelmanager.h> +%End + + +public: + static void manage (QWidget*); + static void manage (QWidget*, bool); + +}; // class KAcceleratorManager + +%End + diff --git a/python/pykde/sip/kdeui/kaccelmenu.sip b/python/pykde/sip/kdeui/kaccelmenu.sip new file mode 100644 index 00000000..5c0f6724 --- /dev/null +++ b/python/pykde/sip/kdeui/kaccelmenu.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAccelMenu : KPopupMenu +{ +%TypeHeaderCode +#include <kaccel.h> +#include <kpopupmenu.h> +#include <kaccelmenu.h> +%End + + +public: + KAccelMenu (KAccel*, QWidget*/TransferThis/ = 0, const char* = 0); + int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); + int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const char* = 0); + int insItem (const QPixmap&, const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); + int insItem (const char*, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), KStdAccel::StdAccel); + +protected: + char* stripAnd (const char*); + void keyPressEvent (QKeyEvent*); + void popMsg (); + +protected slots: + void highl (int); + void aboutTS (); + +}; // class KAccelMenu + diff --git a/python/pykde/sip/kdeui/kaction.sip b/python/pykde/sip/kdeui/kaction.sip new file mode 100644 index 00000000..20399bc7 --- /dev/null +++ b/python/pykde/sip/kdeui/kaction.sip @@ -0,0 +1,759 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAction : QObject +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + KAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual void plugAccel (KAccel*, bool = 1); + virtual void unplug (QWidget*); + virtual void unplugAccel (); + virtual bool isPlugged () const; + +%If ( KDE_3_1_0 - ) + bool isPlugged (const QWidget*) const; +%End + + virtual bool isPlugged (const QWidget*, int) const; + virtual bool isPlugged (const QWidget*, const QWidget*) const; + QWidget* container (int) const; + int itemId (int) const; + QWidget* representative (int) const; + int containerCount () const; + +%If ( KDE_3_1_0 - ) + uint kaccelCount () const; +%End + + virtual bool hasIcon () const; + bool hasIconSet () const; + virtual QString plainText () const; + virtual QString text () const; + virtual const KShortcut& shortcut () const; + virtual const KShortcut& shortcutDefault () const; + QString shortcutText () const; + void setShortcutText (const QString&); + virtual bool isEnabled () const; + virtual bool isShortcutConfigurable () const; + virtual QString group () const; + virtual QString whatsThis () const; + virtual QString toolTip () const; + virtual QIconSet iconSet (KIcon::Group, int = 0) const; + QIconSet iconSet () const; + virtual QString icon () const; + KActionCollection* parentCollection () const; + static int getToolButtonID (); + void unplugAll (); + +%If ( KDE_3_4_0 - ) + + enum ActivationReason + { + UnknownActivation, + EmulatedActivation, + AccelActivation, + PopupMenuActivation, + ToolBarActivation + }; + +%End + + +public slots: + virtual void setText (const QString&); + virtual bool setShortcut (const KShortcut&); + virtual void setGroup (const QString&); + virtual void setWhatsThis (const QString&); + virtual void setToolTip (const QString&); + virtual void setIconSet (const QIconSet&); + virtual void setIcon (const QString&); + virtual void setEnabled (bool); + +%If ( KDE_3_5_0 - ) + void setDisabled (bool); +%End + + virtual void setShortcutConfigurable (bool); + virtual void activate (); + +protected slots: + virtual void slotDestroyed (); + virtual void slotKeycodeChanged (); + virtual void slotActivated (); + +%If ( KDE_3_4_0 - ) + void slotPopupActivated (); + void slotButtonClicked (int, Qt::ButtonState); +%End + + +protected: + KToolBar* toolBar (int) const; + QPopupMenu* popupMenu (int) const; + void removeContainer (int); + int findContainer (const QWidget*) const; + +%If ( KDE_3_4_0 - ) + int findContainer (int) const; +%End + + void plugMainWindowAccel (QWidget*); + void addContainer (QWidget* /Transfer/, int); + void addContainer (QWidget* /Transfer/, QWidget*); + virtual void updateShortcut (int); + virtual void updateShortcut (QPopupMenu*, int); + virtual void updateGroup (int); + virtual void updateText (int); + virtual void updateEnabled (int); + virtual void updateIconSet (int); + virtual void updateIcon (int); + virtual void updateToolTip (int); + virtual void updateWhatsThis (int); + +%If ( KDE_3_1_0 - ) + QString whatsThisWithIcon () const; + +%If ( KDE_3_3_0 - ) + const KGuiItem& guiItem () const; +%End + +%End + + +signals: + void activated (); + +%If ( KDE_3_4_0 - ) + void activated (KAction::ActivationReason, Qt::ButtonState); +%End + + void enabled (bool); + +public: + int accel () const; + QString statusText () const; + void setAccel (int); + void setStatusText (const QString&); + int menuId (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAction + + +%If ( - KDE_3_2_0 ) + +class KToggleAction : KAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + bool isChecked () const; + QString exclusiveGroup () const; + virtual void setExclusiveGroup (const QString&); + +public slots: + virtual void setChecked (bool); + +protected slots: + virtual void slotActivated (); + +protected: + virtual void updateChecked (int); + +signals: + void toggled (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KRadioAction : KToggleAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRadioAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KSelectAction : KAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual bool isEditable () const; + virtual QStringList items () const; + virtual void changeItem (int, const QString&); + virtual QString currentText () const; + virtual int currentItem () const; + virtual int comboWidth () const; + QPopupMenu* popupMenu (); + +%If ( KDE_3_1_0 - ) + void setRemoveAmpersandsInCombo (bool); + bool removeAmpersandsInCombo () const; + void setMenuAccelsEnabled (bool); + bool menuAccelsEnabled () const; +%End + + +public slots: + virtual void setCurrentItem (int); + virtual void setItems (const QStringList&); + virtual void clear (); + virtual void setEditable (bool); + virtual void setComboWidth (int); + +protected: + virtual void changeItem (int, int, const QString&); + +%If ( KDE_3_1_0 - ) + QStringList comboItems () const; +%End + + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void activated (int); + void activated (const QString&); + +protected: + virtual void updateCurrentItem (int); + virtual void updateComboWidth (int); + virtual void updateItems (int); + virtual void updateClear (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KListAction : KSelectAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString currentText () const; + virtual int currentItem () const; + +public slots: + virtual void setCurrentItem (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KRecentFilesAction : KListAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); + uint maxItems () const; + +public slots: + void setMaxItems (uint); + void loadEntries (KConfig*, QString = QString ::null ); + void saveEntries (KConfig*, QString = QString ::null ); + +public slots: + void addURL (const KURL&); + void removeURL (const KURL&); + void clearURLList (); + +signals: + void urlSelected (const KURL&); + +protected slots: + void itemSelected (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRecentFilesAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KFontAction : KSelectAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (QObject* /TransferThis/ = 0, const char* = 0); + QString font () const; + int plug (QWidget*, int = -1); + +public slots: + void setFont (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KFontSizeAction : KSelectAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int fontSize () const; + +public slots: + virtual void setFontSize (int); + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void fontSizeChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontSizeAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionMenu : KAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); + virtual void insert (KAction*, int = -1); + virtual void remove (KAction*); + KPopupMenu* popupMenu (); + void popup (const QPoint&); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionMenu + +%End + + +%If ( - KDE_3_2_0 ) + +class KToolBarPopupAction : KAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KPopupMenu* popupMenu (); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarPopupAction + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KToggleToolBarAction : KToggleAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); + KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KToolBar* toolBar (); + +public slots: + virtual void setChecked (bool); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KToggleToolBarAction + +%End + + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +class KWidgetAction : KAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + QWidget* widget (); + void setAutoSized (bool); + virtual int plug (QWidget*, int = -1); + virtual void unplug (QWidget*); + +protected slots: + void slotToolbarDestroyed (); + +protected: + virtual void virtual_hook (int, void*); + +}; // class KWidgetAction + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionSeparator : KAction +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionSeparator + +%End + + +%If ( - KDE_3_2_0 ) + +class KActionCollection : QObject +{ +%TypeHeaderCode +#include <kaction.h> +%End + + +public: + KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (const KActionCollection&); + virtual void setWidget (QWidget*); + +%If ( KDE_3_1_0 - ) + void setAutoConnectShortcuts (bool); + bool isAutoConnectShortcuts (); + bool addDocCollection (KActionCollection*); +%End + + virtual KAccel* accel (); + +%If ( KDE_3_1_0 - ) + KAccel* kaccel (); + KAccel* builderKAccel () const; +%End + + virtual uint count () const; + bool isEmpty () const; + virtual KAction* action (int) const; + virtual KAction* action (const char*, const char* = 0) const; + virtual QStringList groups () const; + +%If ( KDE_3_1_5 - ) + virtual QValueList<KAction*> actions (const QString&) const; + virtual QValueList<KAction*> actions () const; +%End + + bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); + bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; + void setInstance (KInstance*); + KInstance* instance () const; + void setXMLFile (const QString&); + const QString& xmlFile () const; + void setHighlightingEnabled (bool); + bool highlightingEnabled () const; + void connectHighlight (QWidget*, KAction*); + void disconnectHighlight (QWidget*, KAction*); + +signals: + void inserted (KAction*); + void removed (KAction*); + void actionHighlighted (KAction*); + void actionHighlighted (KAction*, bool); + void actionStatusText (const QString&); + void clearStatusText (); + +public: + KActionCollection (QObject* /TransferThis/ = 0, const char* = 0, KInstance* = 0); + void insert (KAction*); + void remove (KAction*); + KAction* take (KAction*); + +%If ( KDE_3_1_4 - ) + KActionCollection operator + (const KActionCollection&) const; + KActionCollection& operator += (const KActionCollection&); +%End + + +public slots: + void clear (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionCollection + +%End + + +%If ( - KDE_3_2_0 ) +//ig typedef QValueList<KAction*> KActionPtrList; +%End + + +%MappedType QValueList<KAction*> +//converts a Python list of KAction +{ +%TypeHeaderCode +#include <qvaluelist.h> +#include <kaction.h> +//typedef QValueList<KAction*> KActionPtrList; +#include <sipkdeuiKAction.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New(0); + + // Create the list + PyObject *pylist; + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + QValueList<KAction*> *cpplist = (QValueList<KAction*> *)sipCpp; + PyObject *inst; + + // Get it. + QValueList<KAction*>::Iterator it; + for( it = cpplist->begin(); it != cpplist->end(); ++it ) + { + if (((inst = sipConvertFromInstance (*it, sipClass_KAction, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QValueList<KAction*> *cpplist = new QValueList<KAction*>; + + PyObject *elem; + KAction* cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAction *)sipForceConvertTo_KAction (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kdeui/kactionclasses.sip b/python/pykde/sip/kdeui/kactionclasses.sip new file mode 100644 index 00000000..d89508b5 --- /dev/null +++ b/python/pykde/sip/kdeui/kactionclasses.sip @@ -0,0 +1,529 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KToggleAction : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KToggleAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToggleAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KToggleAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + bool isChecked () const; + QString exclusiveGroup () const; + virtual void setExclusiveGroup (const QString&); + +%If ( KDE_3_3_0 - ) + void setCheckedState (const KGuiItem&); + virtual QString toolTip () const; +%End + + +public slots: + virtual void setChecked (bool); + +protected slots: + virtual void slotActivated (); + +protected: + virtual void updateChecked (int); + +signals: + void toggled (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KRadioAction : KToggleAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KRadioAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KRadioAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KRadioAction (QObject* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRadioAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KSelectAction : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KSelectAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KSelectAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KSelectAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + virtual bool isEditable () const; + virtual QStringList items () const; + virtual void changeItem (int, const QString&); + virtual QString currentText () const; + virtual int currentItem () const; + virtual int comboWidth () const; + +%If ( KDE_3_5_0 - ) + void setMaxComboViewCount (int); +%End + + QPopupMenu* popupMenu () const; + void setRemoveAmpersandsInCombo (bool); + bool removeAmpersandsInCombo () const; + void setMenuAccelsEnabled (bool); + bool menuAccelsEnabled () const; + +%If ( KDE_3_5_0 - ) + virtual bool isShortcutConfigurable () const; +%End + + +public slots: + virtual void setCurrentItem (int); + virtual void setItems (const QStringList&); + virtual void clear (); + virtual void setEditable (bool); + virtual void setComboWidth (int); + +protected: + virtual void changeItem (int, int, const QString&); + QStringList comboItems () const; + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void activated (int); + void activated (const QString&); + +protected: + virtual void updateCurrentItem (int); + virtual void updateComboWidth (int); + virtual void updateItems (int); + virtual void updateClear (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelectAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KListAction : KSelectAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KListAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KListAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KListAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual QString currentText () const; + virtual int currentItem () const; + +public slots: + virtual void setCurrentItem (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KRecentFilesAction : KListAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KRecentFilesAction (const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0, uint = 10); + KRecentFilesAction (QObject* /TransferThis/ = 0, const char* = 0, uint = 10); + virtual int plug (QWidget*, int = -1); + uint maxItems () const; + +%If ( KDE_3_5_0 - ) + virtual QStringList items () const; + QStringList completeItems () const; +%End + + +public slots: + void setMaxItems (uint); + void loadEntries (KConfig*, QString = QString ::null ); + void saveEntries (KConfig*, QString = QString ::null ); + void addURL (const KURL&); + +%If ( KDE_3_5_0 - ) + void addURL (const KURL&, const QString&); +%End + + void removeURL (const KURL&); + void clearURLList (); + +signals: + void urlSelected (const KURL&); + +protected slots: + void itemSelected (const QString&); + void menuAboutToShow (); + void menuItemActivated (int); + void slotClicked (); + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRecentFilesAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KFontAction : KSelectAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KFontAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + +%If ( KDE_3_3_0 - ) + KFontAction (uint, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontAction (uint, const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); +%End + + KFontAction (QObject* /TransferThis/ = 0, const char* = 0); + QString font () const; + int plug (QWidget*, int = -1); + +public slots: + void setFont (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KFontSizeAction : KSelectAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KFontSizeAction (const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KFontSizeAction (const QString&, const QIconSet&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, const char* = 0); + KFontSizeAction (QObject* /TransferThis/ = 0, const char* = 0); + virtual int fontSize () const; + +public slots: + virtual void setFontSize (int); + +protected slots: + virtual void slotActivated (int); + virtual void slotActivated (const QString&); + virtual void slotActivated (); + +signals: + void fontSizeChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontSizeAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KActionMenu : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KActionMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QIconSet&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (const QString&, const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KActionMenu (QObject* /TransferThis/ = 0, const char* = 0); + virtual void insert (KAction*, int = -1); + virtual void remove (KAction*); + KPopupMenu* popupMenu () const; + void popup (const QPoint&); + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionMenu + +%End + + +%If ( KDE_3_2_0 - ) + +class KToolBarPopupAction : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KToolBarPopupAction (const QString&, const QString&, const KShortcut& = KShortcut (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + KToolBarPopupAction (const KGuiItem&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KPopupMenu* popupMenu () const; + bool delayed () const; + void setDelayed (bool); + bool stickyMenu () const; + void setStickyMenu (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarPopupAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KToggleToolBarAction : KToggleAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KToggleToolBarAction (const char*, const QString&, KActionCollection* /TransferThis/, const char*); + KToggleToolBarAction (KToolBar*, const QString&, KActionCollection* /TransferThis/, const char*); + virtual int plug (QWidget*, int = -1); + KToolBar* toolBar (); + +public slots: + virtual void setChecked (bool); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleToolBarAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KToggleFullScreenAction : KToggleAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KToggleFullScreenAction (const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/, QWidget*, const char*); + void setWindow (QWidget*); + +public slots: + virtual void setChecked (bool); + +protected: + virtual bool eventFilter (QObject*, QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToggleFullScreenAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KWidgetAction : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KWidgetAction (QWidget*, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /TransferThis/, const char*); + QWidget* widget (); + void setAutoSized (bool); + virtual int plug (QWidget*, int = -1); + virtual void unplug (QWidget*); + +protected slots: + void slotToolbarDestroyed (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWidgetAction + +%End + + +%If ( KDE_3_2_0 - ) + +class KActionSeparator : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KActionSeparator (QObject* /TransferThis/ = 0, const char* = 0); + virtual int plug (QWidget*, int = -1); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionSeparator + +%End + + +%If ( KDE_3_2_0 - ) + +class KPasteTextAction : KAction +{ +%TypeHeaderCode +#include <kactionclasses.h> +%End + + +public: + KPasteTextAction (const QString&, const QString&, const KShortcut&, SIP_RXOBJ_CON, SIP_SLOT_CON (), QObject* /TransferThis/ = 0, const char* = 0); + void setMixedMode (bool); + virtual int plug (QWidget*, int = -1); + +protected slots: + void menuAboutToShow (); + void menuItemActivated (int); + virtual void slotActivated (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPasteTextAction + +%End + diff --git a/python/pykde/sip/kdeui/kactioncollection.sip b/python/pykde/sip/kdeui/kactioncollection.sip new file mode 100644 index 00000000..2707f511 --- /dev/null +++ b/python/pykde/sip/kdeui/kactioncollection.sip @@ -0,0 +1,125 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KActionCollection : QObject +{ +%TypeHeaderCode +#include <kactioncollection.h> +%End + + +public: + KActionCollection (QWidget* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (QWidget*, QObject* /TransferThis/, const char* = 0, KInstance* = 0); + KActionCollection (const KActionCollection&); + virtual void setWidget (QWidget*); + void setAutoConnectShortcuts (bool); + bool isAutoConnectShortcuts (); + bool addDocCollection (KActionCollection*); + virtual KAccel* accel (); + KAccel* kaccel (); + KAccel* builderKAccel () const; + virtual uint count () const; + bool isEmpty () const; + virtual KAction* action (int) const; + virtual KAction* action (const char*, const char* = 0) const; + virtual QStringList groups () const; + virtual KActionPtrList actions (const QString&) const; + virtual KActionPtrList actions () const; + bool readShortcutSettings (const QString& = QString ::null , KConfigBase* = 0); + bool writeShortcutSettings (const QString& = QString ::null , KConfigBase* = 0) const; + void setInstance (KInstance*); + KInstance* instance () const; + void setXMLFile (const QString&); + const QString& xmlFile () const; + void setHighlightingEnabled (bool); + bool highlightingEnabled () const; + void connectHighlight (QWidget*, KAction*); + void disconnectHighlight (QWidget*, KAction*); + +%If ( KDE_3_3_0 - ) + const KXMLGUIClient* parentGUIClient () const; +%End + + +signals: + void inserted (KAction*); + void removed (KAction*); + void actionHighlighted (KAction*); + void actionHighlighted (KAction*, bool); + void actionStatusText (const QString&); + void clearStatusText (); + +public: + KActionCollection (QObject* /TransferThis/, const char* = 0, KInstance* = 0); + +public: + void insert (KAction*); + void remove (KAction*); + KAction* take (KAction*); + KActionCollection operator + (const KActionCollection&) const; + KActionCollection& operator += (const KActionCollection&); + +public slots: + void clear (); + +protected: +//igx virtual void virtual_hook (int, void*); + +%If ( KDE_3_3_0 - ) + +private: + KActionCollection (const char*, const KXMLGUIClient* /TransferThis/); +%End + + +public: + +%If ( - KDE_3_2_2 ) + +%If ( D_MANDRAKE ) + virtual QValueList<KAction*> actions (const QString&) const; + virtual QValueList<KAction*> actions () const; +%End + +%End + + +}; // class KActionCollection + +%End + + +%If ( KDE_3_2_0 - ) +typedef QValueList<KAction*> KActionPtrList; +%End + + +%If ( - KDE_3_2_2 ) +//ig typedef QValueList<KAction*> KActionPtrList; +%End diff --git a/python/pykde/sip/kdeui/kactionselector.sip b/python/pykde/sip/kdeui/kactionselector.sip new file mode 100644 index 00000000..26a42a12 --- /dev/null +++ b/python/pykde/sip/kdeui/kactionselector.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KActionSelector : QWidget +{ +%TypeHeaderCode +#include <kactionselector.h> +%End + + +public: + KActionSelector (QWidget* /TransferThis/ = 0, const char* = 0); + QListBox* availableListBox () const; + QListBox* selectedListBox () const; + + enum MoveButton + { + ButtonAdd, + ButtonRemove, + ButtonUp, + ButtonDown + }; + + + enum ButtonIconSize + { + SmallIcon, + Small, + Medium, + Large, + XLarge + }; + + + enum InsertionPolicy + { + BelowCurrent, + Sorted, + AtTop, + AtBottom + }; + + bool moveOnDoubleClick () const; + void setMoveOnDoubleClick (bool); + bool keyboardEnabled () const; + void setKeyboardEnabled (bool); + QString availableLabel () const; + void setAvailableLabel (const QString&); + QString selectedLabel () const; + void setSelectedLabel (const QString&); + KActionSelector::ButtonIconSize buttonIconSize () const; + void setButtonIconSize (KActionSelector::ButtonIconSize); + KActionSelector::InsertionPolicy availableInsertionPolicy () const; + void setAvailableInsertionPolicy (KActionSelector::InsertionPolicy); + KActionSelector::InsertionPolicy selectedInsertionPolicy () const; + void setSelectedInsertionPolicy (KActionSelector::InsertionPolicy); + bool showUpDownButtons () const; + void setShowUpDownButtons (bool); + void setButtonIcon (const QString&, KActionSelector::MoveButton); + void setButtonIconSet (const QIconSet&, KActionSelector::MoveButton); + void setButtonTooltip (const QString&, KActionSelector::MoveButton); + void setButtonWhatsThis (const QString&, KActionSelector::MoveButton); + void setButtonsEnabled (); + +signals: + void added (QListBoxItem*); + void removed (QListBoxItem*); + void movedUp (QListBoxItem*); + void movedDown (QListBoxItem*); + +public slots: + void polish (); + +protected: + void keyPressEvent (QKeyEvent*); + bool eventFilter (QObject*, QEvent*); + +}; // class KActionSelector + +%End + diff --git a/python/pykde/sip/kdeui/kactionshortcutlist.sip b/python/pykde/sip/kdeui/kactionshortcutlist.sip new file mode 100644 index 00000000..2e744728 --- /dev/null +++ b/python/pykde/sip/kdeui/kactionshortcutlist.sip @@ -0,0 +1,106 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KActionShortcutList : KShortcutList +{ +%TypeHeaderCode +#include <kconfigbase.h> +#include <kshortcut.h> +#include <kaction.h> +#include <kactionshortcutlist.h> +%End + + +public: + KActionShortcutList (KActionCollection*); + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual const KInstance* instance () const; + virtual QVariant getOther (Other, uint) const; + virtual bool setOther (Other, uint, QVariant); + virtual bool save () const; + +%If ( KDE_3_3_0 - ) + const KAction* action (uint) const; +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KActionShortcutList + + +class KActionPtrShortcutList : KShortcutList +{ +%TypeHeaderCode +#include <kconfigbase.h> +#include <kshortcut.h> +#include <kaction.h> +#include <kactionshortcutlist.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + KActionPtrShortcutList (KActionPtrList&); +%End + + virtual uint count () const; + virtual QString name (uint) const; + virtual QString label (uint) const; + virtual QString whatsThis (uint) const; + virtual const KShortcut& shortcut (uint) const; + virtual const KShortcut& shortcutDefault (uint) const; + virtual bool isConfigurable (uint) const; + virtual bool setShortcut (uint, const KShortcut&); + virtual QVariant getOther (Other, uint) const; + virtual bool setOther (Other, uint, QVariant); + virtual bool save () const; + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + KActionPtrShortcutList (QValueList<KAction*>&); +%End + + +}; // class KActionPtrShortcutList + diff --git a/python/pykde/sip/kdeui/kactivelabel.sip b/python/pykde/sip/kdeui/kactivelabel.sip new file mode 100644 index 00000000..1e0431b4 --- /dev/null +++ b/python/pykde/sip/kdeui/kactivelabel.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KActiveLabel : QTextBrowser +{ +%TypeHeaderCode +#include <kactivelabel.h> +%End + + +public: + KActiveLabel (QWidget* /TransferThis/, const char* = 0); + KActiveLabel (const QString&, QWidget* /TransferThis/, const char* = 0); + +%If ( KDE_3_1_0 - ) + QSize minimumSizeHint () const; + QSize sizeHint () const; +%End + + +public slots: + virtual void openLink (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + +%If ( KDE_3_4_0 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +}; // class KActiveLabel + diff --git a/python/pykde/sip/kdeui/kalphapainter.sip b/python/pykde/sip/kdeui/kalphapainter.sip new file mode 100644 index 00000000..ce34480a --- /dev/null +++ b/python/pykde/sip/kdeui/kalphapainter.sip @@ -0,0 +1,41 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAlphaPainter +{ +%TypeHeaderCode +#include <kalphapainter.h> +%End + + +public: + static bool draw (QPainter*, const QImage&, QImage&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QImage&, const QPixmap&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QPixmap&, QImage&, int, int, bool = 0, int = 0, int = 0); + static bool draw (QPainter*, const QPixmap&, const QPixmap&, int, int, int = 0, int = 0); + +}; // class KAlphaPainter + diff --git a/python/pykde/sip/kdeui/kanimwidget.sip b/python/pykde/sip/kdeui/kanimwidget.sip new file mode 100644 index 00000000..5d9a244f --- /dev/null +++ b/python/pykde/sip/kdeui/kanimwidget.sip @@ -0,0 +1,92 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAnimWidget : QFrame +{ +%TypeHeaderCode +#include <kanimwidget.h> +%End + + +public: + KAnimWidget (const QString&, int = 0, QWidget* /TransferThis/ = 0, const char* = 0); + void setSize (int); + +%If ( KDE_3_4_0 - ) + int size () const; + QString icons () const; +%End + + void setIcons (const QString&); + +public slots: + +%If ( KDE_3_4_0 - ) + void start (); + void stop (); +%End + + +signals: + void clicked (); + +protected: + virtual void drawContents (QPainter*); + virtual void leaveEvent (QEvent*); + virtual void enterEvent (QEvent*); + virtual void hideEvent (QHideEvent*); + virtual void showEvent (QShowEvent*); + virtual void mousePressEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void mouseReleaseEvent (QMouseEvent*); +%End + + +protected slots: + void slotTimerUpdate (); + void updateIcons (); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_4_0 ) + void start (); + void stop (); +%End + + +public: + +%If ( - KDE_3_2_0 ) +//ig KAnimWidget (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KAnimWidget + diff --git a/python/pykde/sip/kdeui/karrowbutton.sip b/python/pykde/sip/kdeui/karrowbutton.sip new file mode 100644 index 00000000..89551923 --- /dev/null +++ b/python/pykde/sip/kdeui/karrowbutton.sip @@ -0,0 +1,55 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KArrowButton : QPushButton +{ +%TypeHeaderCode +#include <karrowbutton.h> +%End + + +public: + KArrowButton (QWidget* /TransferThis/ = 0, Qt::ArrowType = Qt ::UpArrow , const char* = 0); + virtual QSize sizeHint () const; + +%If ( KDE_3_4_0 - ) + Qt::ArrowType arrowType () const; + int arrowTp () const; + void setArrowTp (int); +%End + + +public slots: + void setArrowType (Qt::ArrowType); + +protected: + virtual void drawButton (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KArrowButton + diff --git a/python/pykde/sip/kdeui/kauthicon.sip b/python/pykde/sip/kdeui/kauthicon.sip new file mode 100644 index 00000000..56d3d3a7 --- /dev/null +++ b/python/pykde/sip/kdeui/kauthicon.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KAuthIcon : QWidget +{ +%TypeHeaderCode +#include <kauthicon.h> +%End + + +public: + KAuthIcon (QWidget* /TransferThis/ = 0, const char* = 0); + virtual QSize sizeHint () const; + virtual bool status () const = 0; + +public slots: + virtual void updateStatus () = 0; + +signals: + void authChanged (bool); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KAuthIcon + + +class KRootPermsIcon : KAuthIcon +{ +%TypeHeaderCode +#include <kauthicon.h> +%End + + +public: + KRootPermsIcon (QWidget* /TransferThis/ = 0, const char* = 0); + bool status () const; + +public slots: + void updateStatus (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRootPermsIcon + + +class KWritePermsIcon : KAuthIcon +{ +%TypeHeaderCode +#include <kauthicon.h> +%End + + +public: + KWritePermsIcon (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + bool status () const; + void setFileName (const QString&); + +%If ( KDE_3_4_0 - ) + QString fileName () const; +%End + + +public slots: + void updateStatus (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWritePermsIcon + diff --git a/python/pykde/sip/kdeui/kbugreport.sip b/python/pykde/sip/kdeui/kbugreport.sip new file mode 100644 index 00000000..d8829190 --- /dev/null +++ b/python/pykde/sip/kdeui/kbugreport.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KBugReport : KDialogBase +{ +%TypeHeaderCode +#include <kbugreport.h> +%End + + +public: + KBugReport (QWidget* /TransferThis/ = 0, bool = 1, const KAboutData* = 0); + +protected slots: + virtual void slotConfigureEmail (); + virtual void slotSetFrom (); + virtual void slotUrlClicked (const QString&); + virtual void slotOk (); + virtual void slotCancel (); + void appChanged (int); + void updateURL (); + +protected: + QString text (); + bool sendBugReport (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KBugReport + diff --git a/python/pykde/sip/kdeui/kbuttonbox.sip b/python/pykde/sip/kdeui/kbuttonbox.sip new file mode 100644 index 00000000..87124f76 --- /dev/null +++ b/python/pykde/sip/kdeui/kbuttonbox.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KButtonBox : QWidget +{ +%TypeHeaderCode +#include <kbuttonbox.h> +%End + + +public: + KButtonBox (QWidget* /TransferThis/, Orientation = Horizontal , int = 0, int = 6); + virtual QSize sizeHint () const; + virtual QSizePolicy sizePolicy () const; + virtual void resizeEvent (QResizeEvent*); + QPushButton* addButton (const QString&, bool = 0); + QPushButton* addButton (const QString&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); + +%If ( KDE_3_3_0 - ) + QPushButton* addButton (const KGuiItem&, bool = 0); + QPushButton* addButton (const KGuiItem&, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 0); +%End + + void addStretch (int = 1); + void layout (); + +protected: + QSize bestButtonSize () const; + void placeButtons (); + QSize buttonSizeHint (QPushButton*) const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KButtonBox + diff --git a/python/pykde/sip/kdeui/kcharselect.sip b/python/pykde/sip/kdeui/kcharselect.sip new file mode 100644 index 00000000..22a14437 --- /dev/null +++ b/python/pykde/sip/kdeui/kcharselect.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KCharSelectTable : QGridView +{ +%TypeHeaderCode +#include <kcharselect.h> +%End + + +public: + KCharSelectTable (QWidget* /TransferThis/, const char*, const QString&, const QChar&, int); + virtual QSize sizeHint () const; + virtual void resizeEvent (QResizeEvent*); + virtual void setFont (const QString&); + virtual void setChar (const QChar&); + virtual void setTableNum (int); + virtual QChar chr (); + +protected: + virtual void paintCell (QPainter*, int, int); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void keyPressEvent (QKeyEvent*); + void gotoLeft (); + void gotoRight (); + void gotoUp (); + void gotoDown (); + +signals: + void highlighted (const QChar&); + void highlighted (); + void activated (const QChar&); + void activated (); + void focusItemChanged (); + void focusItemChanged (const QChar&); + void tableUp (); + void tableDown (); + void doubleClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCharSelectTable + + +class KCharSelect : QVBox +{ +%TypeHeaderCode +#include <kcharselect.h> +%End + + +public: + KCharSelect (QWidget* /TransferThis/, const char*, const QString& = QString ::null , const QChar& = ' ', int = 0); + virtual QSize sizeHint () const; + virtual void setFont (const QString&); + virtual void setChar (const QChar&); + virtual void setTableNum (int); + virtual QChar chr () const; + virtual QString font () const; + virtual int tableNum () const; + virtual void enableFontCombo (bool); + virtual void enableTableSpinBox (bool); + virtual bool isFontComboEnabled () const; + virtual bool isTableSpinBoxEnabled () const; + +protected: + virtual void fillFontCombo (); + static void cleanupFontDatabase (); + +protected slots: + void fontSelected (const QString&); + void tableChanged (int); + void charHighlighted (const QChar&); + void charHighlighted (); + void charActivated (const QChar&); + void charActivated (); + void charFocusItemChanged (); + void charFocusItemChanged (const QChar&); + void charTableUp (); + void charTableDown (); + void slotDoubleClicked (); + +%If ( KDE_3_3_0 - ) + void slotUnicodeEntered (); + void slotUpdateUnicode (const QChar&); +%End + + +signals: + void highlighted (const QChar&); + void highlighted (); + void activated (const QChar&); + void activated (); + void fontChanged (const QString&); + void focusItemChanged (); + void focusItemChanged (const QChar&); + void doubleClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCharSelect + diff --git a/python/pykde/sip/kdeui/kcmenumngr.sip b/python/pykde/sip/kdeui/kcmenumngr.sip new file mode 100644 index 00000000..b481fa2b --- /dev/null +++ b/python/pykde/sip/kdeui/kcmenumngr.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KContextMenuManager : QObject +{ +%TypeHeaderCode +#include <kcmenumngr.h> +%End + + +public: + static void insert (QWidget*, QPopupMenu*); + static bool showOnButtonPress (); + +private: + KContextMenuManager (QObject* /TransferThis/ = 0, const char* = 0); + ~KContextMenuManager (); + +}; // class KContextMenuManager + diff --git a/python/pykde/sip/kdeui/kcmodule.sip b/python/pykde/sip/kdeui/kcmodule.sip new file mode 100644 index 00000000..e40776e1 --- /dev/null +++ b/python/pykde/sip/kdeui/kcmodule.sip @@ -0,0 +1,183 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KCModule : QWidget +{ +%TypeHeaderCode +#include <kcmodule.h> +%End + + +public: + + enum Button + { + Help, + Default, + Apply, + Reset, + Cancel, + Ok, + SysDefault + }; + + KCModule (QWidget* /TransferThis/ = 0, const char* = 0, const QStringList& = QStringList ()); + KCModule (KInstance*, QWidget* /TransferThis/ = 0, const QStringList& = QStringList ()); + virtual void load (); + virtual void save (); + virtual void defaults (); + virtual void sysdefaults (); + virtual QString quickHelp () const; + virtual const KAboutData* aboutData () const; + +%If ( KDE_3_3_0 - ) + void setAboutData (KAboutData*); +%End + + int buttons (); + QString rootOnlyMsg () const; + bool useRootOnlyMsg () const; + KInstance* instance () const; + +%If ( KDE_3_4_0 - ) + const QPtrList<KConfigDialogManager>& configs () const; +%End + + +protected: + +%If ( KDE_3_3_0 - ) + KConfigDialogManager* addConfig (KConfigSkeleton*, QWidget*); + void setQuickHelp (const QString&); +%End + + +signals: + void changed (bool); + void quickHelpChanged (); + +protected slots: + +%If ( KDE_3_3_0 - ) + void changed (); + +%If ( KDE_3_4_0 - ) + void widgetChanged (); +%End + +%End + + +protected: + void setButtons (int); + void setRootOnlyMsg (const QString&); + void setUseRootOnlyMsg (bool); + +%If ( KDE_3_5_0 - ) + bool managedWidgetChangeState () const; + void unmanagedWidgetChangeState (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCModule + + + +%If (KDE_3_3_0 - ) +%MappedType QPtrList<KConfigDialogManager> +//converts a Python list of KConfigDialogManager +{ +%TypeHeaderCode +#include <qptrlist.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KConfigDialogManager> *cpplist = (QPtrList<KConfigDialogManager> *)sipCpp; + KConfigDialogManager *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KConfigDialogManager, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KConfigDialogManager> *cpplist = new QPtrList<KConfigDialogManager>; + + PyObject *elem; + KConfigDialogManager *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KConfigDialogManager *)sipForceConvertTo_KConfigDialogManager (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; +%End + + diff --git a/python/pykde/sip/kdeui/kcolorbtn.sip b/python/pykde/sip/kdeui/kcolorbtn.sip new file mode 100644 index 00000000..8cfdc339 --- /dev/null +++ b/python/pykde/sip/kdeui/kcolorbtn.sip @@ -0,0 +1,54 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KColorButton : QPushButton +{ +%TypeHeaderCode +#include <kcolorbtn.h> +%End + + +public: + KColorButton (QWidget*/TransferThis/, const char* = 0); + KColorButton (const QColor&, QWidget*/TransferThis/, const char* = 0); + QColor color () const; + void setColor (const QColor&); + +signals: + void changed (const QColor&); + +protected slots: + void chooseColor (); + +protected: + virtual void drawButtonLabel (QPainter*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +}; // class KColorButton + diff --git a/python/pykde/sip/kdeui/kcolorcombo.sip b/python/pykde/sip/kdeui/kcolorcombo.sip new file mode 100644 index 00000000..e3eb03ad --- /dev/null +++ b/python/pykde/sip/kdeui/kcolorcombo.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KColorCombo : QComboBox +{ +%TypeHeaderCode +#include <kcolorcombo.h> +%End + + +public: + KColorCombo (QWidget* /TransferThis/, const char* = 0); + void setColor (const QColor&); + QColor color (); + void showEmptyList (); + +signals: + void activated (const QColor&); + void highlighted (const QColor&); + +protected: + virtual void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorCombo + diff --git a/python/pykde/sip/kdeui/kcolordialog.sip b/python/pykde/sip/kdeui/kcolordialog.sip new file mode 100644 index 00000000..557bbd56 --- /dev/null +++ b/python/pykde/sip/kdeui/kcolordialog.sip @@ -0,0 +1,237 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KHSSelector : KXYSelector +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KHSSelector (QWidget* /TransferThis/ = 0, const char* = 0); + +protected: + virtual void drawPalette (QPixmap*); + virtual void resizeEvent (QResizeEvent*); + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHSSelector + + +class KValueSelector : KSelector +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KValueSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KValueSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + int hue () const; + void setHue (int); + int saturation () const; + void setSaturation (int); + void updateContents (); + +protected: + virtual void drawPalette (QPixmap*); + virtual void resizeEvent (QResizeEvent*); + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KValueSelector + + +class KColor : QColor +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KColor (); + KColor (const KColor&); + KColor (const QColor&); + +%If ( KDE_3_1_4 - ) + bool operator == (const KColor&) const; +%End + + void setHsv (int, int, int); + void setRgb (int, int, int); + void rgb (int*, int*, int*); + void hsv (int*, int*, int*); + +protected: + +}; // class KColor + + +class KPaletteTable : QWidget +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KPaletteTable (QWidget* /TransferThis/, int = 210, int = 16); + void addToCustomColors (const QColor&); + void addToRecentColors (const QColor&); + QString palette (); + +public slots: + void setPalette (const QString&); + +signals: + void colorSelected (const QColor&, const QString&); + void colorDoubleClicked (const QColor&, const QString&); + +protected slots: + void slotColorCellSelected (int); + void slotColorCellDoubleClicked (int); + void slotColorTextSelected (const QString&); + void slotSetPalette (const QString&); + void slotShowNamedColorReadError (); + +protected: + void readNamedColor (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPaletteTable + + +class KColorCells : QGridView +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KColorCells (QWidget* /TransferThis/, int, int); + void setColor (int, const QColor&); + QColor color (int) const; + int numCells () const; + void setShading (bool); + void setAcceptDrags (bool); + int getSelected () const; + +signals: + void colorSelected (int); + void colorDoubleClicked (int); + +protected: + virtual void paintCell (QPainter*, int, int); + virtual void resizeEvent (QResizeEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + int posToCell (const QPoint&, bool = 0); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorCells + + +class KColorPatch : QFrame +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KColorPatch (QWidget* /TransferThis/); + void setColor (const QColor&); + +signals: + void colorChanged (const QColor&); + +protected: + virtual void drawContents (QPainter*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorPatch + + +class KColorDialog : KDialogBase +{ +%TypeHeaderCode +#include <kcolordialog.h> +%End + + +public: + KColorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + QColor color (); + static int getColor (QColor&, QWidget* /Transfer/ = 0); + static int getColor (QColor&, const QColor&, QWidget* /Transfer/ = 0); + static QColor grabColor (const QPoint&); + void setDefaultColor (const QColor&); + QColor defaultColor () const; + +public slots: + void setColor (const QColor&); + +signals: + void colorSelected (const QColor&); + +protected: + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool eventFilter (QObject*, QEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorDialog + diff --git a/python/pykde/sip/kdeui/kcolordrag.sip b/python/pykde/sip/kdeui/kcolordrag.sip new file mode 100644 index 00000000..e87814da --- /dev/null +++ b/python/pykde/sip/kdeui/kcolordrag.sip @@ -0,0 +1,52 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KColorDrag : QStoredDrag +{ +%TypeHeaderCode +#include <kcolordrag.h> +%End + + +public: + KColorDrag (QWidget* = 0, const char* = 0); + KColorDrag (const QColor&, QWidget* = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + virtual const char* format (int) const; + virtual QByteArray encodedData (const char*) const; +%End + + void setColor (const QColor&); + static bool canDecode (QMimeSource*); + static bool decode (QMimeSource*, QColor&); + static KColorDrag* makeDrag (const QColor&, QWidget*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KColorDrag + diff --git a/python/pykde/sip/kdeui/kcombobox.sip b/python/pykde/sip/kdeui/kcombobox.sip new file mode 100644 index 00000000..cd29f266 --- /dev/null +++ b/python/pykde/sip/kdeui/kcombobox.sip @@ -0,0 +1,130 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KComboBox : QComboBox, KCompletionBase +{ +%TypeHeaderCode +#include <kcombobox.h> +%End + + +public: + KComboBox (QWidget* /TransferThis/ = 0, const char* = 0); + KComboBox (bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setEditURL (const KURL&); + void insertURL (const KURL&, int = -1); + void insertURL (const QPixmap&, const KURL&, int = -1); + void changeURL (const KURL&, int); + void changeURL (const QPixmap&, const KURL&, int); + int cursorPosition () const; + virtual void setAutoCompletion (bool); + bool autoCompletion () const; + virtual void setContextMenuEnabled (bool); + bool isContextMenuEnabled () const; + void setURLDropsEnabled (bool); + bool isURLDropsEnabled () const; + bool contains (const QString&) const; + void setTrapReturnKey (bool); + bool trapReturnKey () const; + virtual bool eventFilter (QObject*, QEvent*); + KCompletionBox* completionBox (bool); + virtual void setLineEdit (QLineEdit*); + +signals: + void returnPressed (); + void returnPressed (const QString&); + void completion (const QString&); + void substringCompletion (const QString&); + void textRotation (KCompletionBase::KeyBindingType); + void completionModeChanged (KGlobalSettings::Completion); + void aboutToShowContextMenu (QPopupMenu*); + +public slots: + void rotateText (KCompletionBase::KeyBindingType); + virtual void setCompletedText (const QString&); + void setCompletedItems (const QStringList&); + void setCurrentItem (const QString&, bool = 0, int = -1); + void setCurrentItem (int); + +protected slots: + virtual void itemSelected (QListBoxItem*); + virtual void makeCompletion (const QString&); + +protected: + virtual void setCompletedText (const QString&, bool); + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KComboBox + + +class KHistoryCombo : KComboBox +{ +%TypeHeaderCode +#include <kcombobox.h> +%End + + +public: + KHistoryCombo (QWidget* /TransferThis/ = 0, const char* = 0); + KHistoryCombo (bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setHistoryItems (QStringList); + void setHistoryItems (QStringList, bool); + QStringList historyItems () const; + bool removeFromHistory (const QString&); + void setPixmapProvider (KPixmapProvider*); + KPixmapProvider* pixmapProvider () const; + void reset (); + +public slots: + void addToHistory (const QString&); + void clearHistory (); + +signals: + void cleared (); + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + void insertItems (const QStringList&); + bool useCompletion (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHistoryCombo + diff --git a/python/pykde/sip/kdeui/kcommand.sip b/python/pykde/sip/kdeui/kcommand.sip new file mode 100644 index 00000000..8b3c24b7 --- /dev/null +++ b/python/pykde/sip/kdeui/kcommand.sip @@ -0,0 +1,131 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KCommand +{ +%TypeHeaderCode +#include <kcommand.h> +%End + + +protected: + KCommand (); + +public: + virtual void execute () = 0; + virtual void unexecute () = 0; + virtual QString name () const = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCommand + + +class KNamedCommand : KCommand +{ +%TypeHeaderCode +#include <kcommand.h> +%End + + +protected: + KNamedCommand (const QString&); + +public: + virtual QString name () const; + void setName (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KNamedCommand + + +class KMacroCommand : KNamedCommand +{ +%TypeHeaderCode +#include <kcommand.h> +%End + + +public: + KMacroCommand (const QString&); + void addCommand (KCommand*); + virtual void execute (); + virtual void unexecute (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMacroCommand + + +class KCommandHistory : QObject +{ +%TypeHeaderCode +#include <kcommand.h> +%End + + +public: + KCommandHistory (); + KCommandHistory (KActionCollection*, bool = 1); + void clear (); + void addCommand (KCommand*, bool = 1); + int undoLimit () const; + void setUndoLimit (int); + int redoLimit () const; + void setRedoLimit (int); + void updateActions (); + +public slots: + virtual void undo (); + virtual void redo (); + virtual void documentSaved (); + +protected slots: + void slotUndoAboutToShow (); + void slotUndoActivated (int); + void slotRedoAboutToShow (); + void slotRedoActivated (int); + +signals: + void commandExecuted (); + +%If ( KDE_3_5_0 - ) + void commandExecuted (KCommand*); +%End + + void documentRestored (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCommandHistory + diff --git a/python/pykde/sip/kdeui/kcompletionbox.sip b/python/pykde/sip/kdeui/kcompletionbox.sip new file mode 100644 index 00000000..e28dda62 --- /dev/null +++ b/python/pykde/sip/kdeui/kcompletionbox.sip @@ -0,0 +1,86 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KCompletionBox : KListBox +{ +%TypeHeaderCode +#include <kcompletionbox.h> +%End + + +public: + KCompletionBox (QWidget* /TransferThis/, const char* = 0); + virtual QSize sizeHint () const; + +%If ( KDE_3_4_3 - ) + bool activateOnSelect () const; +%End + + +public slots: + QStringList items () const; + void insertItems (const QStringList&, int = -1); + void setItems (const QStringList&); + virtual void popup (); + void setTabHandling (bool); + bool isTabHandling () const; + void setCancelledText (const QString&); + QString cancelledText () const; + +%If ( KDE_3_4_3 - ) + void setActivateOnSelect (bool); +%End + + void down (); + void up (); + void pageDown (); + void pageUp (); + void home (); + void end (); + virtual void show (); + virtual void hide (); + +signals: + void activated (const QString&); + void userCancelled (const QString&); + +protected: + +%If ( KDE_3_2_0 - ) + QRect calculateGeometry () const; + void sizeAndPosition (); +%End + + virtual bool eventFilter (QObject*, QEvent*); + +protected slots: + virtual void slotActivated (QListBoxItem*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KCompletionBox + diff --git a/python/pykde/sip/kdeui/kconfigdialog.sip b/python/pykde/sip/kdeui/kconfigdialog.sip new file mode 100644 index 00000000..6744869b --- /dev/null +++ b/python/pykde/sip/kdeui/kconfigdialog.sip @@ -0,0 +1,69 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KConfigDialog : KDialogBase +{ +%TypeHeaderCode +#include <kconfigdialog.h> +%End + + +signals: + void widgetModified (); + void settingsChanged (); + void settingsChanged (const char*); + +public: + KConfigDialog (QWidget* /TransferThis/, const char*, KConfigSkeleton*, KDialogBase::DialogType = KDialogBase ::IconList , int = KDialogBase ::Default |KDialogBase ::Ok |KDialogBase ::Apply |KDialogBase ::Cancel |KDialogBase ::Help , KDialogBase::ButtonCode = Ok , bool = 0); + void addPage (QWidget*, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_3_0 - ) + void addPage (QWidget*, KConfigSkeleton*, const QString&, const QString&, const QString& = QString ::null ); +%End + + static KConfigDialog* exists (const char*); + static bool showDialog (const char*); + virtual void show (); + +protected slots: + virtual void updateSettings (); + virtual void updateWidgets (); + virtual void updateWidgetsDefault (); + +protected: + virtual bool hasChanged (); + virtual bool isDefault (); + +protected slots: + void updateButtons (); + void settingsChangedSlot (); + +}; // class KConfigDialog + +%End + diff --git a/python/pykde/sip/kdeui/kcontainer.sip b/python/pykde/sip/kdeui/kcontainer.sip new file mode 100644 index 00000000..831fad11 --- /dev/null +++ b/python/pykde/sip/kdeui/kcontainer.sip @@ -0,0 +1,75 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KContainerLayout : QFrame +{ +%TypeHeaderCode +#include <kcontainer.h> +%End + + +public: + + enum + { + Horizontal = 0, + Vertical + }; + + KContainerLayout (QWidget*/TransferThis/ = 0, const char* = 0, int = KContainerLayout::Horizontal, bool = 0, int = 5, WFlags = 0, bool = 1); + int getNumberOfWidgets () const; + int packStart (QWidget*, bool = 0, bool = 0, int = 1); + int packEnd (QWidget*, bool = 0, bool = 0, int = 1); + void setOrientation (int); + void setHomogeneos (bool); + void setSpacing (int); + void setStartOffset (int); + void setEndOffset (int); + int orientation () const; + bool homogeneos () const; + int spacing () const; + int startOffset () const; + int endOffset () const; + void sizeToFit (); + +protected: + +//ig class KContainerLayoutItem; + + void recalcLayout (); +//ig QSize widgetSize (KContainerLayout::KContainerLayoutItem*); + void repositionWidgets (); + int numberOfWidgetsWithExpand (); + void calculateSizeHint (); + QSize sizeOfLargerWidget (); +//ig QSize idealSizeOfWidget (KContainerLayout::KContainerLayoutItem*); + bool horizontal () const; + virtual void resizeEvent (QResizeEvent*); + virtual bool eventFilter (QObject*, QEvent*); + virtual QSize sizeHint () const; + +}; // class KContainerLayout + diff --git a/python/pykde/sip/kdeui/kcursor.sip b/python/pykde/sip/kdeui/kcursor.sip new file mode 100644 index 00000000..2a25da45 --- /dev/null +++ b/python/pykde/sip/kdeui/kcursor.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KCursor : Qt +{ +%TypeHeaderCode +#include <kcursor.h> +%End + + +public: + KCursor (); + static QCursor handCursor (); + static QCursor workingCursor (); + static QCursor arrowCursor (); + static QCursor upArrowCursor (); + static QCursor crossCursor (); + static QCursor waitCursor (); + static QCursor ibeamCursor (); + static QCursor sizeVerCursor (); + static QCursor sizeHorCursor (); + static QCursor sizeBDiagCursor (); + static QCursor sizeFDiagCursor (); + static QCursor sizeAllCursor (); + static QCursor blankCursor (); + static QCursor whatsThisCursor (); + static void setAutoHideCursor (QWidget*, bool); + static void setAutoHideCursor (QWidget*, bool, bool); + static void setHideCursorDelay (int); + static int hideCursorDelay (); + static void autoHideEventFilter (QObject*, QEvent*); + +}; // class KCursor + diff --git a/python/pykde/sip/kdeui/kdatepicker.sip b/python/pykde/sip/kdeui/kdatepicker.sip new file mode 100644 index 00000000..b21e699c --- /dev/null +++ b/python/pykde/sip/kdeui/kdatepicker.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDatePicker : QFrame +{ +%TypeHeaderCode +#include <kdatepicker.h> +%End + + +public: + KDatePicker (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0); + +%If ( KDE_3_1_0 - ) + KDatePicker (QWidget* /TransferThis/, QDate, const char*, WFlags); + KDatePicker (QWidget* /TransferThis/, const char*); +%End + + QSize sizeHint () const; + bool setDate (const QDate&); + const QDate& getDate () const; + const QDate& date () const; + void setEnabled (bool); + +%If ( KDE_3_2_0 - ) + KDateTable* dateTable () const; +%End + + void setFontSize (int); + int fontSize () const; + +%If ( KDE_3_1_0 - ) + void setCloseButton (bool); + bool hasCloseButton () const; +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual bool eventFilter (QObject*, QEvent*); + virtual void resizeEvent (QResizeEvent*); +%End + + +protected slots: + void dateChangedSlot (QDate); + void tableClickedSlot (); + void monthForwardClicked (); + void monthBackwardClicked (); + void yearForwardClicked (); + void yearBackwardClicked (); + +%If ( KDE_3_1_0 - ) + void selectWeekClicked (); +%End + + void selectMonthClicked (); + void selectYearClicked (); + void lineEnterPressed (); + +%If ( KDE_3_2_0 - ) + void todayButtonClicked (); + void weekSelected (int); +%End + + +signals: + void dateChanged (QDate); + void dateSelected (QDate); + void dateEntered (QDate); + void tableClicked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KDatePicker + diff --git a/python/pykde/sip/kdeui/kdatepik.sip b/python/pykde/sip/kdeui/kdatepik.sip new file mode 100644 index 00000000..039165e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdatepik.sip @@ -0,0 +1,64 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDatePicker : QFrame +{ +%TypeHeaderCode +#include <kdatepik.h> +%End + + +public: + KDatePicker (QWidget*/TransferThis/ = 0, QDate = QDate::currentDate(), const char* = 0); + QSize sizeHint () const; + bool setDate (const QDate&); + const QDate& getDate (); + void setEnabled (bool); + void setFontSize (int); + int fontSize () const; + +protected: + void resizeEvent (QResizeEvent*); + +protected slots: + void dateChangedSlot (QDate); + void tableClickedSlot (); + void monthForwardClicked (); + void monthBackwardClicked (); + void yearForwardClicked (); + void yearBackwardClicked (); + void selectMonthClicked (); + void selectYearClicked (); + void lineEnterPressed (); + +signals: + void dateChanged (QDate); + void dateSelected (QDate); + void dateEntered (QDate); + void tableClicked (); + +}; // class KDatePicker + diff --git a/python/pykde/sip/kdeui/kdatetbl.sip b/python/pykde/sip/kdeui/kdatetbl.sip new file mode 100644 index 00000000..668fb7ea --- /dev/null +++ b/python/pykde/sip/kdeui/kdatetbl.sip @@ -0,0 +1,303 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KDateInternalWeekSelector : QLineEdit +{ +%TypeHeaderCode +#include <kdatetbl.h> +%End + + +protected: + +public slots: + void weekEnteredSlot (); + +%If ( KDE_3_2_0 - ) + void setMaxWeek (int); +%End + + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalWeekSelector (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + int getWeek (); + void setWeek (int); + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalWeekSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KDateInternalWeekSelector + +%End + + +class KDateInternalMonthPicker : QGridView +{ +%TypeHeaderCode +#include <kdatetbl.h> +%End + + +protected: + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalMonthPicker (const QDate&, QWidget* /TransferThis/, const char* = 0); +%End + + QSize sizeHint () const; + int getResult () const; + +protected: + void setupPainter (QPainter*); + +%If ( KDE_3_0_1 - ) + virtual void viewportResizeEvent (QResizeEvent*); +%End + + virtual void paintCell (QPainter*, int, int); + +%If ( KDE_3_0_1 - ) + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseMoveEvent (QMouseEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); +%End + + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalMonthPicker (int, QWidget* /TransferThis/, const char* = 0); +%End + + +protected: + +%If ( - KDE_3_0_1 ) + void viewportResizeEvent (QResizeEvent*); + void contentsMousePressEvent (QMouseEvent*); + void contentsMouseMoveEvent (QMouseEvent*); + void contentsMouseReleaseEvent (QMouseEvent*); +%End + + +}; // class KDateInternalMonthPicker + + +class KDateInternalYearSelector : QLineEdit +{ +%TypeHeaderCode +#include <kdatetbl.h> +%End + + +protected: + +public slots: + void yearEnteredSlot (); + +signals: + void closeMe (int); + +public: + +%If ( KDE_3_2_0 - ) + KDateInternalYearSelector (QWidget* /TransferThis/ = 0, const char* = 0); +%End + + int getYear (); + void setYear (int); + +public: + +%If ( - KDE_3_2_0 ) + KDateInternalYearSelector (int, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KDateInternalYearSelector + + +class KPopupFrame : QFrame +{ +%TypeHeaderCode +#include <kdatetbl.h> +%End + + +protected: + +%If ( KDE_3_0_1 - ) + virtual void keyPressEvent (QKeyEvent*); +%End + + +public slots: + void close (int); + +%If ( KDE_3_5_0 - ) + void hide (); +%End + + +public: + KPopupFrame (QWidget* /TransferThis/ = 0, const char* = 0); + void setMainWidget (QWidget*); + +%If ( KDE_3_0_1 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + void popup (const QPoint&); + int exec (QPoint) /PyName=exec_/; + int exec (int, int) /PyName=exec_/; + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_0_1 ) + void keyPressEvent (QKeyEvent*); +%End + + +public: + +%If ( - KDE_3_0_1 ) + void resizeEvent (QResizeEvent*); +%End + + +}; // class KPopupFrame + + +class KDateValidator : QValidator +{ +%TypeHeaderCode +#include <kdatetbl.h> +%End + + +public: + KDateValidator (QWidget* /TransferThis/ = 0, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + State date (const QString&, QDate&) const; + +}; // class KDateValidator + + +class KDateTable : QGridView +{ +%TypeHeaderCode +#include <kdatetbl.h> +%End + + +public: + KDateTable (QWidget* /TransferThis/ = 0, QDate = QDate ::currentDate (), const char* = 0, WFlags = 0); + +%If ( KDE_3_4_0 - ) + KDateTable (QWidget* /TransferThis/, const char*, WFlags = 0); +%End + + virtual QSize sizeHint () const; + void setFontSize (int); + bool setDate (const QDate&); + const QDate& getDate () const; + +%If ( KDE_3_2_0 - ) + void setPopupMenuEnabled (bool); + bool popupMenuEnabled () const; + + enum BackgroundMode + { + NoBgMode, + RectangleMode, + CircleMode + }; + + void setCustomDatePainting (const QDate&, const QColor&, BackgroundMode = NoBgMode , const QColor& = QColor ()); + void unsetCustomDatePainting (const QDate&); +%End + + +protected: + +%If ( KDE_3_2_0 - ) + int posFromDate (const QDate&); + QDate dateFromPos (int); +%End + + virtual void paintCell (QPainter*, int, int); + virtual void viewportResizeEvent (QResizeEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + +%If ( KDE_3_1_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + virtual void keyPressEvent (QKeyEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + +signals: + void dateChanged (QDate); + +%If ( KDE_3_2_0 - ) + void dateChanged (const QDate&, const QDate&); +%End + + void tableClicked (); + +%If ( KDE_3_2_0 - ) + void aboutToShowContextMenu (KPopupMenu*, const QDate&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDateTable + diff --git a/python/pykde/sip/kdeui/kdatetimewidget.sip b/python/pykde/sip/kdeui/kdatetimewidget.sip new file mode 100644 index 00000000..844824be --- /dev/null +++ b/python/pykde/sip/kdeui/kdatetimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KDateTimeWidget : QWidget +{ +%TypeHeaderCode +#include <kdatetimewidget.h> +%End + + +public: + KDateTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); + KDateTimeWidget (const QDateTime&, QWidget* /TransferThis/ = 0, const char* = 0); + QDateTime dateTime () const; + +public slots: + void setDateTime (const QDateTime&); + +signals: + void valueChanged (const QDateTime&); + +}; // class KDateTimeWidget + +%End + diff --git a/python/pykde/sip/kdeui/kdatewidget.sip b/python/pykde/sip/kdeui/kdatewidget.sip new file mode 100644 index 00000000..d653ae79 --- /dev/null +++ b/python/pykde/sip/kdeui/kdatewidget.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDateWidget : QWidget +{ +%TypeHeaderCode +#include <kdatewidget.h> +%End + + +public: + KDateWidget (QWidget* /TransferThis/, const char* = 0); + KDateWidget (QDate, QWidget* /TransferThis/, const char* = 0); + QDate date () const; + void setDate (QDate); + +signals: + void changed (QDate); + +protected: + void init (); + +%If ( KDE_3_2_0 - ) + void init (const QDate&); +%End + + +protected slots: + void slotDateChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDateWidget + diff --git a/python/pykde/sip/kdeui/kdbtn.sip b/python/pykde/sip/kdeui/kdbtn.sip new file mode 100644 index 00000000..951fc549 --- /dev/null +++ b/python/pykde/sip/kdeui/kdbtn.sip @@ -0,0 +1,61 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDirectionButton : QButton +{ +%TypeHeaderCode +#include <kdbtn.h> +%End + + +public: + KDirectionButton (QWidget*/TransferThis/ = 0, const char* = 0); + KDirectionButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); + void setDirection (ArrowType); + ArrowType direction (); + +protected: + virtual void drawButton (QPainter*); + +}; // class KDirectionButton + + +class KTabButton : KDirectionButton +{ +%TypeHeaderCode +#include <kdbtn.h> +%End + + +public: + KTabButton (QWidget*/TransferThis/ = 0, const char* = 0); + KTabButton (ArrowType, QWidget*/TransferThis/ = 0, const char* = 0); + +protected: + virtual void drawButton (QPainter*); + +}; // class KTabButton + diff --git a/python/pykde/sip/kdeui/kdcopactionproxy.sip b/python/pykde/sip/kdeui/kdcopactionproxy.sip new file mode 100644 index 00000000..6938d498 --- /dev/null +++ b/python/pykde/sip/kdeui/kdcopactionproxy.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDCOPActionProxy : DCOPObjectProxy +{ +%TypeHeaderCode +#include <kdcopactionproxy.h> +%End + + +public: + KDCOPActionProxy (KActionCollection*, DCOPObject* /TransferThis/); + KDCOPActionProxy (DCOPObject* /TransferThis/); + virtual QValueList<KAction*> actions () const; + virtual KAction* action (const char*) const; + virtual QCString actionObjectId (const QCString&) const; + virtual QMap<QCString,DCOPRef> actionMap (const QCString& = QCString ()) const; + virtual bool process (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&); + virtual bool processAction (const QCString&, const QCString&, const QByteArray&, QCString&, QByteArray&, KAction*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDCOPActionProxy + diff --git a/python/pykde/sip/kdeui/kdeui-kde310.diff b/python/pykde/sip/kdeui/kdeui-kde310.diff new file mode 100644 index 00000000..bde4a8e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde310.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde311.diff b/python/pykde/sip/kdeui/kdeui-kde311.diff new file mode 100644 index 00000000..bde4a8e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde311.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde312.diff b/python/pykde/sip/kdeui/kdeui-kde312.diff new file mode 100644 index 00000000..bde4a8e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde312.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde313.diff b/python/pykde/sip/kdeui/kdeui-kde313.diff new file mode 100644 index 00000000..bde4a8e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde313.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde314.diff b/python/pykde/sip/kdeui/kdeui-kde314.diff new file mode 100644 index 00000000..bde4a8e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde314.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde315.diff b/python/pykde/sip/kdeui/kdeui-kde315.diff new file mode 100644 index 00000000..bde4a8e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde315.diff @@ -0,0 +1,4 @@ ++ %Include kaccelmanager.sip ++ %Include kpassivepopup.sip ++ %Include ktextedit.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde320.diff b/python/pykde/sip/kdeui/kdeui-kde320.diff new file mode 100644 index 00000000..00669748 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde320.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde321.diff b/python/pykde/sip/kdeui/kdeui-kde321.diff new file mode 100644 index 00000000..00669748 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde321.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde322.diff b/python/pykde/sip/kdeui/kdeui-kde322.diff new file mode 100644 index 00000000..00669748 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde322.diff @@ -0,0 +1,13 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde323.diff b/python/pykde/sip/kdeui/kdeui-kde323.diff new file mode 100644 index 00000000..2aab9482 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde323.diff @@ -0,0 +1,14 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include kpassivepopup.sip +//+ %Include ksharedpixmap.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde330.diff b/python/pykde/sip/kdeui/kdeui-kde330.diff new file mode 100644 index 00000000..6be7d896 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde330.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde331.diff b/python/pykde/sip/kdeui/kdeui-kde331.diff new file mode 100644 index 00000000..6be7d896 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde331.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde332.diff b/python/pykde/sip/kdeui/kdeui-kde332.diff new file mode 100644 index 00000000..6be7d896 --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde332.diff @@ -0,0 +1,16 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde340.diff b/python/pykde/sip/kdeui/kdeui-kde340.diff new file mode 100644 index 00000000..cdefe26b --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde340.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde341.diff b/python/pykde/sip/kdeui/kdeui-kde341.diff new file mode 100644 index 00000000..cdefe26b --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde341.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde342.diff b/python/pykde/sip/kdeui/kdeui-kde342.diff new file mode 100644 index 00000000..cdefe26b --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde342.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde343.diff b/python/pykde/sip/kdeui/kdeui-kde343.diff new file mode 100644 index 00000000..cdefe26b --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde343.diff @@ -0,0 +1,21 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde350.diff b/python/pykde/sip/kdeui/kdeui-kde350.diff new file mode 100644 index 00000000..965e2c3c --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde350.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde351.diff b/python/pykde/sip/kdeui/kdeui-kde351.diff new file mode 100644 index 00000000..965e2c3c --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde351.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde352.diff b/python/pykde/sip/kdeui/kdeui-kde352.diff new file mode 100644 index 00000000..965e2c3c --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde352.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeui-kde353.diff b/python/pykde/sip/kdeui/kdeui-kde353.diff new file mode 100644 index 00000000..965e2c3c --- /dev/null +++ b/python/pykde/sip/kdeui/kdeui-kde353.diff @@ -0,0 +1,23 @@ ++ %Include kactionclasses.sip ++ %Include kactioncollection.sip ++ %Include kactionselector.sip ++ %Include kconfigdialog.sip ++ %Include kdatetimewidget.sip ++ %Include kfontrequester.sip ++ %Include kiconviewsearchline.sip ++ %Include kinputdialog.sip ++ %Include klanguagebutton.sip ++ %Include klistviewsearchline.sip ++ %Include kpassivepopup.sip ++ %Include kpixmapregionselectordialog.sip ++ %Include kpixmapregionselectorwidget.sip ++ %Include kscrollview.sip ++ %Include kshortcutdialog.sip ++ %Include ksplashscreen.sip ++ %Include ktabbar.sip ++ %Include ktabwidget.sip ++ %Include ktextedit.sip ++ %Include ktimewidget.sip ++ %Include ktimezonewidget.sip ++ %Include ktoolbarlabelaction.sip ++ %Include kwindowinfo.sip diff --git a/python/pykde/sip/kdeui/kdeuimod.sip.in b/python/pykde/sip/kdeui/kdeuimod.sip.in new file mode 100644 index 00000000..9129643f --- /dev/null +++ b/python/pykde/sip/kdeui/kdeuimod.sip.in @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_5_2 + +%Copying + + This software is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2 of + the License, or (at your option) any later version. + + This software is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this library; see the file COPYING. + If not, write to the Free Software Foundation, Inc., + 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%End + +%Module kdeui + +%Import qt/qtmod.sip +%Import qtxml/qtxmlmod.sip +%Import dcopmod.sip +%Import kdecoremod.sip +%Import kdefxmod.sip + +%Include kaboutapplication.sip +%Include kaboutdialog.sip +%Include kaboutkde.sip +%Include kaction.sip +%Include kactionshortcutlist.sip +%Include kactivelabel.sip +%Include kanimwidget.sip +%Include karrowbutton.sip +%Include kauthicon.sip +%Include kbugreport.sip +%Include kbuttonbox.sip +%Include kcharselect.sip +%Include kcmenumngr.sip +%Include kcmodule.sip +%Include kcolorbtn.sip +%Include kcolorcombo.sip +%Include kcolordialog.sip +%Include kcolordrag.sip +%Include kcombobox.sip +%Include kcommand.sip +%Include kcompletionbox.sip +%Include kcursor.sip +%Include kdatepicker.sip +%Include kdatetbl.sip +%Include kdatewidget.sip +%Include kdcopactionproxy.sip +%Include kdialog.sip +%Include kdialogbase.sip +%Include kdockwidget.sip +%Include kdualcolorbutton.sip +%Include keditcl.sip +%Include keditlistbox.sip +%Include kedittoolbar.sip +%Include kfontcombo.sip +%Include kfontdialog.sip +%Include kguiitem.sip +%Include khelpmenu.sip +%Include kiconview.sip +%Include kjanuswidget.sip +%Include kkeybutton.sip +%Include kkeydialog.sip +%Include kled.sip +%Include klineedit.sip +%Include klineeditdlg.sip +%Include klistbox.sip +%Include klistview.sip +%Include kmainwindow.sip +%Include kmainwindowiface.sip +%Include kmenubar.sip +%Include kmessagebox.sip +%Include knuminput.sip +%Include knumvalidator.sip +%Include kpanelapplet.sip +%Include kpanelappmenu.sip +%Include kpanelextension.sip +%Include kpanelmenu.sip +%Include kpassdlg.sip +%Include kpixmapio.sip +%Include kpopupmenu.sip +%Include kprogress.sip +%Include kpushbutton.sip +%Include krestrictedline.sip +%Include krootpixmap.sip +%Include kruler.sip +%Include kselect.sip +%Include kseparator.sip +%Include ksqueezedtextlabel.sip +%Include kstatusbar.sip +%Include kstdaction.sip +%Include kstdguiitem.sip +%Include kstringvalidator.sip +%Include ksystemtray.sip +%Include ktabctl.sip +%Include ktextbrowser.sip +%Include ktip.sip +%Include ktoolbar.sip +%Include ktoolbarbutton.sip +%Include ktoolbarradiogroup.sip +%Include kurllabel.sip +%Include kwindowlistmenu.sip +%Include kwizard.sip +%Include kwordwrap.sip +%Include kxmlguibuilder.sip +%Include kxmlguiclient.sip +%Include kxmlguifactory.sip +%Include qxembed.sip +@mark@ diff --git a/python/pykde/sip/kdeui/kdialog.sip b/python/pykde/sip/kdeui/kdialog.sip new file mode 100644 index 00000000..267a396f --- /dev/null +++ b/python/pykde/sip/kdeui/kdialog.sip @@ -0,0 +1,90 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDialog : QDialog +{ +%TypeHeaderCode +#include <kdialog.h> +%End + + +public: + KDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); + static int marginHint (); + static int spacingHint (); + static void resizeLayout (QWidget*, int, int); + static void resizeLayout (QLayoutItem*, int, int); + +%If ( KDE_3_1_0 - ) + static void centerOnScreen (QWidget*, int = -1); + +%If ( KDE_3_2_0 - ) + static bool avoidArea (QWidget*, const QRect&, int = -1); +%End + +%End + + +public slots: + virtual void polish (); + virtual void setCaption (const QString&); + virtual void setPlainCaption (const QString&); + +protected: + virtual void keyPressEvent (QKeyEvent*); + +signals: + void layoutHintChanged (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + KDialog (const KDialog&); +//end + +}; // class KDialog + + +class KDialogQueue : QObject +{ +%TypeHeaderCode +#include <kdialog.h> +%End + + +public: + static void queueDialog (QDialog*); + +protected: + KDialogQueue (); + static KDialogQueue* self (); + +protected: + +}; // class KDialogQueue + diff --git a/python/pykde/sip/kdeui/kdialogbase.sip b/python/pykde/sip/kdeui/kdialogbase.sip new file mode 100644 index 00000000..618401c7 --- /dev/null +++ b/python/pykde/sip/kdeui/kdialogbase.sip @@ -0,0 +1,283 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDialogBase : KDialog +{ +%TypeHeaderCode +#include <kdialogbase.h> +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum ButtonCode + { + Help, + Default, + Ok, + Apply, + Try, + Cancel, + Close, + User1, + User2, + User3, + No, + Yes, + Details, + Filler, + Stretch, + NoDefault + }; + +%End + + + enum ActionButtonStyle + { + ActionStyle0, + ActionStyle1, + ActionStyle2, + ActionStyle3, + ActionStyle4, + ActionStyleMAX + }; + + + enum DialogType + { + TreeList, + Tabbed, + Plain, + Swallow, + IconList + }; + + +public: + KDialogBase (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); + KDialogBase (int, const QString&, int, KDialogBase::ButtonCode, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); + +%If ( KDE_3_2_0 - ) + KDialogBase (KDialogBase::DialogType, WFlags, QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, const QString& = QString ::null , int = Ok |Apply |Cancel , KDialogBase::ButtonCode = Ok , bool = 0, const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem (), const KGuiItem& = KGuiItem ()); +%End + + KDialogBase (const QString&, int = Yes |No |Cancel , KDialogBase::ButtonCode = Yes , KDialogBase::ButtonCode = Cancel , QWidget* /TransferThis/ = 0, const char* = 0, bool = 1, bool = 0, const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const KGuiItem& = KStdGuiItem ::cancel ()); + void setButtonBoxOrientation (int); + void setEscapeButton (KDialogBase::ButtonCode); + virtual void adjustSize (); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + QFrame* plainPage (); + QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + void setFolderIcon (const QStringList&, const QPixmap&); + QFrame* makeMainWidget (); + QVBox* makeVBoxMainWidget (); + QHBox* makeHBoxMainWidget (); + QGrid* makeGridMainWidget (int, Qt::Orientation); + void enableButtonSeparator (bool); + void showButton (KDialogBase::ButtonCode, bool); + void showButtonOK (bool); + void showButtonApply (bool); + void showButtonCancel (bool); + bool showPage (int); + int activePageIndex () const; + int pageIndex (QWidget*) const; + void setMainWidget (QWidget*); + QWidget* mainWidget (); + void disableResize (); + void setInitialSize (const QSize&, bool = 0); + void incInitialSize (const QSize&, bool = 0); + QSize configDialogSize (const QString&) const; + +%If ( KDE_3_2_0 - ) + QSize configDialogSize (KConfig&, const QString&) const; +%End + + void saveDialogSize (const QString&, bool = 0); + +%If ( KDE_3_2_0 - ) + void saveDialogSize (KConfig&, const QString&, bool = 0) const; + void setButtonOK (const KGuiItem& = KStdGuiItem ::ok ()); +%End + + void setButtonOKText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + void setButtonApply (const KGuiItem& = KStdGuiItem ::apply ()); +%End + + void setButtonApplyText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + void setButtonCancel (const KGuiItem& = KStdGuiItem ::cancel ()); +%End + + void setButtonCancelText (const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + void setButtonText (KDialogBase::ButtonCode, const QString&); + void setButtonTip (KDialogBase::ButtonCode, const QString&); + void setButtonWhatsThis (KDialogBase::ButtonCode, const QString&); + +%If ( KDE_3_3_0 - ) + void setButtonGuiItem (KDialogBase::ButtonCode, const KGuiItem&); +%End + + void setTreeListAutoResize (bool); + void setShowIconsInTreeList (bool); + void setRootIsDecorated (bool); + +%If ( KDE_3_2_0 - ) + void unfoldTreeList (bool = 0); + void addWidgetBelowList (QWidget*); + void addButtonBelowList (const QString&, QObject*, const char*); + void addButtonBelowList (const KGuiItem&, QObject*, const char*); +%End + + void setIconListAllVisible (bool); + static bool haveBackgroundTile (); + static const QPixmap* backgroundTile (); + static const QPixmap* getBackgroundTile (); + static void setBackgroundTile (const QPixmap*); + void showTile (bool); + void getBorderWidths (int&, int&, int&, int&) const; + QRect getContentsRect (); + QSize calculateSize (int, int); + QString helpLinkText (); + QPushButton* actionButton (KDialogBase::ButtonCode); + +public slots: + void enableButton (KDialogBase::ButtonCode, bool); + void enableButtonOK (bool); + void enableButtonApply (bool); + void enableButtonCancel (bool); + void enableLinkedHelp (bool); + +%If ( KDE_3_1_0 - ) + void delayedDestruct (); +%End + + void setHelpLinkText (const QString&); + void setHelp (const QString&, const QString& = QString ::null ); + void helpClickedSlot (const QString&); + void setDetails (bool); + void setDetailsWidget (QWidget*); + void updateBackground (); + +%If ( KDE_3_1_0 - ) + void cancel (); +%End + + +signals: + void helpClicked (); + void defaultClicked (); + void user3Clicked (); + void user2Clicked (); + void user1Clicked (); + void applyClicked (); + void tryClicked (); + void okClicked (); + void yesClicked (); + void noClicked (); + void cancelClicked (); + void closeClicked (); + void apply (); + void backgroundChanged (); + void hidden (); + void finished (); + void aboutToShowDetails (); + void aboutToShowPage (QWidget*); + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void hideEvent (QHideEvent*); + virtual void closeEvent (QCloseEvent*); + +protected slots: + virtual void slotHelp (); + virtual void slotDefault (); + virtual void slotDetails (); + virtual void slotUser3 (); + virtual void slotUser2 (); + virtual void slotUser1 (); + virtual void slotOk (); + virtual void slotApply (); + virtual void slotTry (); + virtual void slotYes (); + virtual void slotNo (); + virtual void slotCancel (); + virtual void slotClose (); + virtual void applyPressed (); + void updateGeometry (); + void slotDelayedDestruct (); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_3_0 ) + + enum ButtonCode + { + Help, + Default, + Ok, + Apply, + Try, + Cancel, + Close, + User1, + User2, + User3, + No, + Yes, + Details, + Filler, + Stretch + }; + +%End + + +public: + +%If ( - KDE_3_1_0 ) + void delayedDestruct (); +%End + + +}; // class KDialogBase + diff --git a/python/pykde/sip/kdeui/kdocktabctl.sip b/python/pykde/sip/kdeui/kdocktabctl.sip new file mode 100644 index 00000000..0dcd96c0 --- /dev/null +++ b/python/pykde/sip/kdeui/kdocktabctl.sip @@ -0,0 +1,186 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDockTabCtl_PrivateStruct +{ +%TypeHeaderCode +#include <kdocktabctl.h> +%End + + +public: + KDockTabCtl_PrivateStruct (QWidget*, int); + QWidget* widget; + int id; + bool enabled; + +}; // class KDockTabCtl_PrivateStruct + + +class KDockTabBar : QWidget +{ +%TypeHeaderCode +#include <kdocktabctl.h> +%End + + +public: + KDockTabBar (QWidget*/TransferThis/ = 0, const char* = 0); + + enum TabPos + { + TAB_TOP, + TAB_RIGHT + }; + + void setTabPos (KDockTabBar::TabPos); + int insertTab (const QString&, int = -1, int = -1); + void setPixmap (int, const QPixmap&); + void setToolTip (int, const QString&); + void setTextColor (int, const QColor&); + const QColor& textColor (int); + void removeTab (int); + int currentTab (); + void setCurrentTab (int, bool = 0); + void setTabEnabled (int, bool); + bool isTabEnabled (int); + void setTabCaption (int, const QString&); + QString tabCaption (int); + virtual void show (); + virtual void setFont (const QFont&); + void showTabIcon (bool); + bool isShowTabIcon (); + +signals: + void tabSelected (int); + void rightButtonPress (int, QPoint); + +protected slots: + void leftClicked (); + void rightClicked (); + +protected: + virtual void paintEvent (QPaintEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual void keyPressEvent (QKeyEvent*); + +}; // class KDockTabBar + + +class KDockTabBarPainter : QWidget +{ +%TypeHeaderCode +#include <kdocktabctl.h> +%End + + +public: + QString tip (const QPoint&); + QRect findBarRectByPos (int, int); + +private: + KDockTabBarPainter (KDockTabBar*/TransferThis/); + +protected: + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual void paintEvent (QPaintEvent*); + +}; // class KDockTabBarPainter + + +class KDockTabCtl : QWidget +{ +%TypeHeaderCode +#include <kdocktabctl.h> +%End + + +public: + KDockTabCtl (QWidget*/TransferThis/ = 0, const char* = 0); + virtual void setTabPos (KDockTabBar::TabPos); + KDockTabBar::TabPos getTabPos (); + int insertPage (QWidget*, const QString&, int = -1, int = -1); + void setPageCaption (QWidget*, const QString&); + void setPageCaption (int, const QString&); + QString pageCaption (QWidget*); + QString pageCaption (int); + void captionAutoSet (bool); + bool isCaptionAutoSet (); + void setPixmap (QWidget*, const QPixmap&); + void setPixmap (int, const QPixmap&); + void setToolTip (QWidget*, const QString&); + void setTabTextColor (QWidget*, const QColor&); + void setTabTextColor (int, const QColor&); + const QColor& tabTextColor (QWidget*); + const QColor& tabTextColor (int); + bool isPageEnabled (QWidget*); + bool isPageEnabled (int); + void setPageEnabled (QWidget*, bool); + void setPageEnabled (int, bool); + QWidget* page (int); + int id (QWidget*); + int index (QWidget*); + void removePage (QWidget*); + void removePage (int); + QWidget* visiblePage (); + int visiblePageId (); + void setVisiblePage (QWidget*, bool = 0); + void setTabFont (const QFont&); + QFont tabFont (); + void showTabIcon (bool); + bool isShowTabIcon (); + int pageCount (); + QWidget* getFirstPage (); + QWidget* getLastPage (); + QWidget* getNextPage (QWidget*); + QWidget* getPrevPage (QWidget*); + virtual void show (); + virtual bool eventFilter (QObject*, QEvent*); + +public slots: + virtual void setEnabled (bool); + void setVisiblePage (int); + +protected: + void paintEvent (QPaintEvent*); + +signals: + void aboutToShow (QWidget*); + void pageSelected (QWidget*); + void tabShowPopup (int, QPoint); + +protected slots: + void rightButtonPress (int, QPoint); + +protected: + KDockTabCtl_PrivateStruct* findData (QWidget*); + KDockTabCtl_PrivateStruct* findData (int); + void showPage (QWidget*, bool = 0); + +}; // class KDockTabCtl + diff --git a/python/pykde/sip/kdeui/kdockwidget.sip b/python/pykde/sip/kdeui/kdockwidget.sip new file mode 100644 index 00000000..351bb4a6 --- /dev/null +++ b/python/pykde/sip/kdeui/kdockwidget.sip @@ -0,0 +1,469 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDockWidgetAbstractHeader : QFrame +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockWidgetAbstractHeader (KDockWidget* /TransferThis/, const char* = 0); + virtual void setTopLevel (bool); + virtual void saveConfig (KConfig*); + virtual void loadConfig (KConfig*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetAbstractHeader + + +class KDockWidgetAbstractHeaderDrag : QFrame +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockWidgetAbstractHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); + KDockWidget* dockWidget (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetAbstractHeaderDrag + + +class KDockWidgetHeaderDrag : KDockWidgetAbstractHeaderDrag +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockWidgetHeaderDrag (KDockWidgetAbstractHeader* /TransferThis/, KDockWidget*, const char* = 0); + +protected: + virtual void paintEvent (QPaintEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetHeaderDrag + + +class KDockWidgetHeader : KDockWidgetAbstractHeader +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockWidgetHeader (KDockWidget* /TransferThis/, const char* = 0); + virtual void setTopLevel (bool); + void setDragPanel (KDockWidgetHeaderDrag*); + +%If ( KDE_3_4_0 - ) + KDockWidgetHeaderDrag* dragPanel (); +%End + + bool dragEnabled (); + void setDragEnabled (bool); + +%If ( KDE_3_1_0 - ) + void showUndockButton (bool); + +%If ( KDE_3_2_0 - ) + void forceCloseButtonHidden (bool = 1); +%End + +%End + + virtual void saveConfig (KConfig*); + virtual void loadConfig (KConfig*); + +%If ( KDE_3_2_0 - ) +//ig void addButton (KDockButton_Private*); +//ig void removeButton (KDockButton_Private*); +%End + + +protected slots: + void slotStayClicked (); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockWidgetHeader + + +class KDockTabGroup : QTabWidget +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockTabGroup (QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + QWidget* transientTo (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockTabGroup + + +class KDockWidget : QWidget +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockWidget (KDockManager*, const char*, const QPixmap&, QWidget* /TransferThis/ = 0, const QString& = 0, const QString& = " ", WFlags = 0); + +%If ( KDE_3_1_0 - ) + + enum DockPosition + { + DockNone, + DockTop, + DockLeft, + DockRight, + DockBottom, + DockCenter, + DockDesktop, + DockToSpecialSites, + DockCorner, + DockFullSite, + DockFullDocking + }; + +%End + + KDockWidget* manualDock (KDockWidget*, KDockWidget::DockPosition, int = 50, QPoint = QPoint (0 ,0 ), bool = 0, int = -1); + void setEnableDocking (int); + int enableDocking (); + void setDockSite (int); + int dockSite (); + void setWidget (QWidget*); + QWidget* getWidget (); + void setHeader (KDockWidgetAbstractHeader*); + +%If ( KDE_3_2_0 - ) + KDockWidgetAbstractHeader* getHeader (); +%End + + void makeDockVisible (); + bool mayBeHide (); + bool mayBeShow (); + KDockManager* dockManager (); + void setToolTipString (const QString&); + const QString& toolTipString (); + bool isDockBackPossible (); + void setTabPageLabel (const QString&); + const QString& tabPageLabel (); + virtual bool event (QEvent*); + virtual void show (); + KDockTabGroup* parentDockTabGroup (); + +%If ( KDE_3_1_0 - ) + QWidget* parentDockContainer () const; +%End + + void setDockWindowType (NET::WindowType); + void setDockWindowTransient (QWidget* /Transfer/, bool); + +%If ( KDE_3_2_0 - ) + QWidget* transientTo (); +%End + + +%If ( KDE_3_1_0 - ) + KDockWidget* findNearestDockWidget (KDockWidget::DockPosition); + +%If ( KDE_3_2_0 - ) + void setPixmap (const QPixmap& = QPixmap ()); + const QPixmap& pixmap () const; + +%If ( KDE_3_3_0 - ) + KDockWidget::DockPosition currentDockPosition () const; +%End + +%End + +%End + + +public slots: + +%If ( KDE_3_1_0 - ) + void setForcedFixedWidth (int); + void setForcedFixedHeight (int); + void restoreFromForcedFixedSize (); + int forcedFixedWidth (); + int forcedFixedHeight (); +%End + + void dockBack (); + void changeHideShowState (); + void undock (); + +%If ( KDE_3_1_0 - ) + void toDesktop (); +%End + + +protected: + void updateHeader (); + +%If ( KDE_3_1_0 - ) + void setLatestKDockContainer (QWidget*); + QWidget* latestKDockContainer (); + +%If ( KDE_3_2_1 - ) + void setFormerBrotherDockWidget (KDockWidget*); +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void widgetSet (QWidget*); +%End + + void docking (KDockWidget*, KDockWidget::DockPosition); + void setDockDefaultPos (); + void headerCloseButtonClicked (); + void headerDockbackButtonClicked (); + void iMBeingClosed (); + void hasUndocked (); + +protected slots: + void loseFormerBrotherDockWidget (); + +%If ( KDE_3_1_0 - ) + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void leaveEvent (QEvent*); +%End + + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_0 ) + + enum DockPosition + { + DockNone, + DockTop, + DockLeft, + DockRight, + DockBottom, + DockCenter, + DockDesktop, + DockCorner, + DockFullSite, + DockFullDocking + }; + +%End + + +}; // class KDockWidget + + +class KDockManager : QObject +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + +%If ( KDE_3_2_0 - ) + + enum EnReadDockConfigMode + { + Unknown, + WrapExistingWidgetsOnly, + RestoreAllDockwidgets + }; + +%End + + +public: + KDockManager (QWidget*, const char* = 0); + +%If ( KDE_3_2_0 - ) + void dumpDockWidgets (); +%End + + void writeConfig (KConfig* = 0, QString = QString ::null ); + void readConfig (KConfig* = 0, QString = QString ::null ); + +%If ( KDE_3_1_0 - ) + void setMainDockWidget2 (KDockWidget*); +%End + + void writeConfig (QDomElement&); + void readConfig (QDomElement&); + void activate (); + virtual bool eventFilter (QObject*, QEvent*); + KDockWidget* findWidgetParentDock (QWidget*); + void makeWidgetDockVisible (QWidget*); + QPopupMenu* dockHideShowMenu (); + KDockWidget* getDockWidgetFromName (const QString&); + void setSplitterOpaqueResize (bool = 1); + bool splitterOpaqueResize () const; + void setSplitterKeepSize (bool = 1); + bool splitterKeepSize () const; + void setSplitterHighResolution (bool = 1); + bool splitterHighResolution () const; + +%If ( KDE_3_2_0 - ) + void setSpecialLeftDockContainer (KDockWidget*); + void setSpecialTopDockContainer (KDockWidget*); + void setSpecialRightDockContainer (KDockWidget*); + void setSpecialBottomDockContainer (KDockWidget*); + void removeFromAutoCreateList (KDockWidget*); + void finishReadDockConfig (); + void setReadDockConfigMode (int); +%End + + +signals: + void change (); + void replaceDock (KDockWidget*, KDockWidget*); + void setDockDefaultPos (KDockWidget*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockManager + + +class KDockMainWindow : KMainWindow +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + KDockManager* manager (); + void setMainDockWidget (KDockWidget*); + KDockWidget* getMainDockWidget (); + KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); + void writeDockConfig (QDomElement&); + void readDockConfig (QDomElement&); + void writeDockConfig (KConfig* = 0, QString = QString ::null ); + void readDockConfig (KConfig* = 0, QString = QString ::null ); + void activateDock (); + QPopupMenu* dockHideShowMenu (); + void makeDockVisible (KDockWidget*); + void makeDockInvisible (KDockWidget*); + void makeWidgetDockVisible (QWidget*); + void setView (QWidget*); + +signals: + void dockWidgetHasUndocked (KDockWidget*); + +protected: + +protected slots: + void slotDockWidgetUndocked (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockMainWindow + + +class KDockArea : QWidget +{ +%TypeHeaderCode +#include <kdockwidget.h> +%End + + +public: + KDockArea (QWidget* /TransferThis/ = 0, const char* = 0); + KDockManager* manager (); + void setMainDockWidget (KDockWidget*); + KDockWidget* getMainDockWidget (); + KDockWidget* createDockWidget (const QString&, const QPixmap&, QWidget* /Transfer/ = 0, const QString& = 0, const QString& = " "); + void writeDockConfig (QDomElement&); + void readDockConfig (QDomElement&); + void writeDockConfig (KConfig* = 0, QString = QString ::null ); + void readDockConfig (KConfig* = 0, QString = QString ::null ); + void activateDock (); + QPopupMenu* dockHideShowMenu (); + void makeDockVisible (KDockWidget*); + void makeDockInvisible (KDockWidget*); + void makeWidgetDockVisible (QWidget*); + +signals: + void dockWidgetHasUndocked (KDockWidget*); + +protected: + +protected slots: + void slotDockWidgetUndocked (); + +public: + virtual void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDockArea + diff --git a/python/pykde/sip/kdeui/kdockwindow.sip b/python/pykde/sip/kdeui/kdockwindow.sip new file mode 100644 index 00000000..4923bf40 --- /dev/null +++ b/python/pykde/sip/kdeui/kdockwindow.sip @@ -0,0 +1,38 @@ +// +// Copyright 2005 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2004 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_4_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDockWindow : KSystemTray +{ +%TypeHeaderCode +#include <kdockwindow.h> +%End + + +public: + KDockWindow (QWidget* /TransferThis/ = 0, const char* = 0); + +}; // class KDockWindow + diff --git a/python/pykde/sip/kdeui/kdualcolorbtn.sip b/python/pykde/sip/kdeui/kdualcolorbtn.sip new file mode 100644 index 00000000..bf85d4c2 --- /dev/null +++ b/python/pykde/sip/kdeui/kdualcolorbtn.sip @@ -0,0 +1,73 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDualColorButton : QWidget +{ +%TypeHeaderCode +#include <kdualcolorbtn.h> +%End + + +public: + + enum DualColor + { + Foreground, + Background + }; + + KDualColorButton (QWidget*/TransferThis/ = 0, const char* = 0); + KDualColorButton (QWidget*/TransferThis/, const char*, QWidget*); + KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/ = 0, const char* = 0); + KDualColorButton (const QColor&, const QColor&, QWidget*/TransferThis/, const char*, QWidget*); + QColor foreground () const; + QColor background () const; + DualColor current () const; + QColor currentColor () const; + virtual QSize sizeHint () const; + +public slots: + void setForeground (const QColor&); + void setBackground (const QColor&); + void setCurrent (KDualColorButton::DualColor); + void setCurrentColor (const QColor&); + +signals: + void fgChanged (const QColor&); + void bgChanged (const QColor&); + void currentChanged (KDualColorButton::DualColor); + +protected: + virtual void metrics (QRect&, QRect&); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +}; // class KDualColorButton + diff --git a/python/pykde/sip/kdeui/kdualcolorbutton.sip b/python/pykde/sip/kdeui/kdualcolorbutton.sip new file mode 100644 index 00000000..671145e0 --- /dev/null +++ b/python/pykde/sip/kdeui/kdualcolorbutton.sip @@ -0,0 +1,74 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KDualColorButton : QWidget +{ +%TypeHeaderCode +#include <kdualcolorbutton.h> +%End + + +public: + + enum DualColor + { + Foreground, + Background + }; + + KDualColorButton (QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); + KDualColorButton (const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0, QWidget* = 0); + QColor foreground () const; + QColor background () const; + KDualColorButton::DualColor current () const; + QColor currentColor () const; + virtual QSize sizeHint () const; + +public slots: + void setForeground (const QColor&); + void setBackground (const QColor&); + void setCurrent (KDualColorButton::DualColor); + void setCurrentColor (const QColor&); + +signals: + void fgChanged (const QColor&); + void bgChanged (const QColor&); + void currentChanged (KDualColorButton::DualColor); + +protected: + virtual void metrics (QRect&, QRect&); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void dragEnterEvent (QDragEnterEvent*); + virtual void dropEvent (QDropEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDualColorButton + diff --git a/python/pykde/sip/kdeui/keditcl.sip b/python/pykde/sip/kdeui/keditcl.sip new file mode 100644 index 00000000..cb7bf29c --- /dev/null +++ b/python/pykde/sip/kdeui/keditcl.sip @@ -0,0 +1,224 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KEdGotoLine : KDialogBase +{ +%TypeHeaderCode +#include <keditcl.h> +%End + + +public: + KEdGotoLine (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + int getLineNumber (); + +public slots: + void selected (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEdGotoLine + + +class KEdFind : KDialogBase +{ +%TypeHeaderCode +#include <keditcl.h> +%End + + +public: + KEdFind (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + QString getText () const; + void setText (QString); + void setCaseSensitive (bool); + bool case_sensitive () const; + void setDirection (bool); + bool get_direction () const; + KHistoryCombo* searchCombo () const; + +protected slots: + void slotCancel (); + void slotUser1 (); + void textSearchChanged (const QString&); + +protected: + +signals: + void search (); + void done (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + virtual void done (int); +//end + +}; // class KEdFind + + +class KEdReplace : KDialogBase +{ +%TypeHeaderCode +#include <keditcl.h> +%End + + +public: + KEdReplace (QWidget* /TransferThis/ = 0, const char* = 0, bool = 1); + QString getText (); + QString getReplaceText (); + void setText (QString); + KHistoryCombo* searchCombo () const; + KHistoryCombo* replaceCombo () const; + bool case_sensitive (); + bool get_direction (); + +protected slots: + void slotCancel (); + void slotClose (); + void slotUser1 (); + void slotUser2 (); + void slotUser3 (); + void textSearchChanged (const QString&); + +signals: + void replace (); + void find (); + void replaceAll (); + void done (); + +protected: +//igx virtual void virtual_hook (int, void*); +//force + +private: + virtual void done (int); +//end + +}; // class KEdReplace + + +class KEdit : QMultiLineEdit +{ +%TypeHeaderCode +#include <keditcl.h> +%End + + +public: + KEdit (QWidget* /TransferThis/ = 0, const char* = 0); + + enum + { + NONE, + FORWARD, + BACKWARD + }; + + void insertText (QTextStream*); + +%If ( KDE_3_1_0 - ) + void saveText (QTextStream*, bool); +%End + + void saveText (QTextStream*); + void selectFont (); + void search (); + bool repeatSearch (); + void replace (); + void doGotoLine (); + void cleanWhiteSpace (); + void installRBPopup (QPopupMenu*); + int currentLine (); + int currentColumn (); + void spellcheck_start (); + void spellcheck_stop (); + void setOverwriteEnabled (bool); + +%If ( KDE_3_2_0 - ) + QString selectWordUnderCursor (); + +%If ( KDE_3_2_3 - ) + QPopupMenu* createPopupMenu (const QPoint&); + +%If ( KDE_3_3_0 - ) + void setAutoUpdate (bool); +%End + +%End + +%End + + +signals: + void gotUrlDrop (QDropEvent*); + void CursorPositionChanged (); + void toggle_overwrite_signal (); + +public slots: + +%If ( KDE_3_2_0 - ) + void corrected (const QString&, const QString&, uint); + void misspelling (const QString&, const QStringList&, uint); +%End + + +protected: + void computePosition (); + int doSearch (QString, bool, bool, bool, int, int); + int doReplace (QString, bool, bool, bool, int, int, bool); + void posToRowCol (uint, uint&, uint&); + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_3_0 - ) + virtual void ensureCursorVisible (); + virtual void setCursor (const QCursor&); + virtual void viewportPaintEvent (QPaintEvent*); +%End + + +protected: + void keyPressEvent (QKeyEvent*); + void dragMoveEvent (QDragMoveEvent*); + void dragEnterEvent (QDragEnterEvent*); + void dropEvent (QDropEvent*); + +%If ( KDE_3_1_3 - ) + void contentsDragMoveEvent (QDragMoveEvent*); + void contentsDragEnterEvent (QDragEnterEvent*); + void contentsDropEvent (QDropEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEdit + diff --git a/python/pykde/sip/kdeui/keditlistbox.sip b/python/pykde/sip/kdeui/keditlistbox.sip new file mode 100644 index 00000000..61d04723 --- /dev/null +++ b/python/pykde/sip/kdeui/keditlistbox.sip @@ -0,0 +1,206 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +%ModuleHeaderCode +const char **PyQtListToArray(PyObject *); +%End + + +class KEditListBox : QGroupBox +{ +%TypeHeaderCode +#include <keditlistbox.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + + class CustomEditor + { + + public: + CustomEditor (); + CustomEditor (QWidget*, KLineEdit*); + CustomEditor (KComboBox*); + void setRepresentationWidget (QWidget*); + void setLineEdit (KLineEdit*); + virtual QWidget* representationWidget () const; + virtual KLineEdit* lineEdit () const; + + protected: + + }; // class CustomEditor + + +public: +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum Button + { + Add, + Remove, + UpDown + }; + + + enum + { + All + }; + +%End + + KEditListBox (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); + KEditListBox (const QString&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); + +%If ( KDE_3_1_0 - ) + KEditListBox (const QString&, const KEditListBox::CustomEditor&, QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, int = All ); +%End + + QListBox* listBox () const; + KLineEdit* lineEdit () const; + QPushButton* addButton () const; + QPushButton* removeButton () const; + QPushButton* upButton () const; + QPushButton* downButton () const; + int count () const; + void insertStringList (const QStringList&, int = -1); + void insertStrList (const QStrList*, int = -1); + void insertStrList (const QStrList&, int = -1); + void insertStrList (SIP_PYLIST, int = -1) [void (const char**, int = -1, int = -1)]; +%MethodCode +//takes list | (a Python list of strings) | index | (int) + + int n; + + if ((n = PyList_Size (a0)) == 0) + return NULL; + + const char **strings; + + if ((strings = PyQtListToArray(a0)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipCpp->insertStrList (strings, n, a1); + Py_END_ALLOW_THREADS + + sipFree((ANY *)strings); +%End + + void insertItem (const QString&, int = -1); + void clear (); + QString text (int) const; + int currentItem () const; + QString currentText () const; + QStringList items () const; + +%If ( KDE_3_4_0 - ) + void setItems (const QStringList&); + int buttons () const; + void setButtons (uint); +%End + + +signals: + void changed (); + +%If ( KDE_3_2_0 - ) + void added (const QString&); + void removed (const QString&); +%End + + +protected slots: + void moveItemUp (); + void moveItemDown (); + void addItem (); + void removeItem (); + void enableMoveButtons (int); + void typedSomething (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_5_0 ) + + enum Button + { + Add, + Remove, + UpDown, + All + }; + +%End + + +}; // class KEditListBox + + + +%ModuleCode +// Convert a list of strings to an array of strings on the heap. Also used by +// QPixmap. + +const char **PyQtListToArray(PyObject *lst) +{ + int nstr; + const char **str, **sp; + + nstr = PyList_Size(lst); + + if ((str = (const char **)sipMalloc(nstr * sizeof (char *))) == NULL) + return NULL; + + // Convert the list. + + sp = str; + + for (int i = 0; i < nstr; ++i) + { + char *s; + + if ((s = PyString_AsString(PyList_GetItem(lst,i))) == NULL) + { + sipFree((ANY *)str); + return NULL; + } + + *sp++ = s; + } + + return str; +} +%End diff --git a/python/pykde/sip/kdeui/kedittoolbar.sip b/python/pykde/sip/kdeui/kedittoolbar.sip new file mode 100644 index 00000000..2226a651 --- /dev/null +++ b/python/pykde/sip/kdeui/kedittoolbar.sip @@ -0,0 +1,156 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KEditToolbar : KDialogBase +{ +%TypeHeaderCode +#include <kedittoolbar.h> +%End + + +public: + KEditToolbar (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbar (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + KEditToolbar (KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbar (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_3_0 - ) + static void setDefaultToolbar (const char*); +%End + +%End + + +protected slots: + virtual void slotOk (); + virtual void slotApply (); + void acceptOK (bool); + +%If ( KDE_3_5_0 - ) + void slotDefault (); +%End + + +signals: + void newToolbarConfig (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KEditToolbar + + +class KEditToolbarWidget : QWidget, KXMLGUIClient +{ +%TypeHeaderCode +#include <kedittoolbar.h> +%End + + +public: + KEditToolbarWidget (KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbarWidget (const QString&, KActionCollection*, const QString& = QString ::null , bool = 1, QWidget* /TransferThis/ = 0); +%End + + KEditToolbarWidget (KXMLGUIFactory*, QWidget* /TransferThis/ = 0); + +%If ( KDE_3_2_0 - ) + KEditToolbarWidget (const QString&, KXMLGUIFactory*, QWidget* /TransferThis/ = 0); +%End + + +%If ( KDE_3_1_0 - ) + virtual KActionCollection* actionCollection () const; +%End + + bool save (); + +%If ( KDE_3_5_0 - ) + void rebuildKXMLGUIClients (); +%End + + +signals: + void enableOk (bool); + +protected slots: + void slotToolbarSelected (const QString&); + void slotInactiveSelected (QListViewItem*); + void slotActiveSelected (QListViewItem*); + +%If ( KDE_3_3_0 - ) + void slotDropped (KListView*, QDropEvent*, QListViewItem*); +%End + + void slotInsertButton (); + void slotRemoveButton (); + void slotUpButton (); + void slotDownButton (); + +%If ( KDE_3_3_0 - ) + void slotChangeIcon (); +%End + + +protected: + void setupLayout (); + +%If ( KDE_3_3_0 - ) +//ig void insertActive (ToolbarItem*, QListViewItem*, bool = 0); +//ig void removeActive (ToolbarItem*); +//ig void moveActive (ToolbarItem*, QListViewItem*); +%End + + +%If ( KDE_3_2_0 - ) + void initNonKPart (KActionCollection*, const QString&, bool); + void initKPart (KXMLGUIFactory*); + void loadToolbarCombo (const QString& = QString ::null ); +%End + + void loadActionList (QDomElement&); + void updateLocal (QDomElement&); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void loadToolbarCombo (); +%End + + +}; // class KEditToolbarWidget + diff --git a/python/pykde/sip/kdeui/kfontcombo.sip b/python/pykde/sip/kdeui/kfontcombo.sip new file mode 100644 index 00000000..f116c176 --- /dev/null +++ b/python/pykde/sip/kdeui/kfontcombo.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFontCombo : KComboBox +{ +%TypeHeaderCode +#include <kfontcombo.h> +%End + + +public: + KFontCombo (QWidget* /TransferThis/, const char* = 0); + KFontCombo (const QStringList&, QWidget* /TransferThis/, const char* = 0); + void setFonts (const QStringList&); + void setCurrentFont (const QString&); + QString currentFont () const; + void setBold (bool); + bool bold () const; + void setItalic (bool); + bool italic () const; + void setUnderline (bool); + bool underline () const; + void setStrikeOut (bool); + bool strikeOut () const; + void setSize (int); + int size () const; + static bool displayFonts (); + virtual void setCurrentItem (int); + +protected slots: + +%If ( KDE_3_3_0 - ) + void slotModified (int); +%End + + +protected: + void updateFonts (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontCombo + diff --git a/python/pykde/sip/kdeui/kfontdialog.sip b/python/pykde/sip/kdeui/kfontdialog.sip new file mode 100644 index 00000000..bee4f118 --- /dev/null +++ b/python/pykde/sip/kdeui/kfontdialog.sip @@ -0,0 +1,184 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KFontChooser : QWidget +{ +%TypeHeaderCode +#include <qbutton.h> +#include <kfontdialog.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum FontColumn + { + FamilyList, + StyleList, + SizeList + }; + +%End + + + enum FontDiff + { + FontDiffFamily, + FontDiffStyle, + FontDiffSize + }; + + KFontChooser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, const QStringList& = QStringList (), bool = 1, int = 8, bool = 0, QButton::ToggleState* = 0)]; +%MethodCode +//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | fontList | (QStringList = QStringList()) | makeFrame | (bool = 1) | visibleListSize | (int = 8) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) +//returns + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKFontChooser *) new KFontChooser (a0, a1, a2, *a3, a4, a5, a6, &a7); + Py_END_ALLOW_THREADS +%End + + void enableColumn (int, bool); + void setFont (const QFont&, bool = 0); + int fontDiffFlags (); + QFont font () const; + void setColor (const QColor&); + QColor color () const; + void setBackgroundColor (const QColor&); + QColor backgroundColor () const; + void setSizeIsRelative (QButton::ToggleState); + QButton::ToggleState sizeIsRelative () const; + QString sampleText () const; + void setSampleText (const QString&); + +%If ( KDE_3_5_0 - ) + void setSampleBoxVisible (bool); +%End + + static QString getXLFD (const QFont&); + + enum FontListCriteria + { + FixedWidthFonts, + ScalableFonts, + SmoothScalableFonts + }; + + static void getFontList (QStringList&, bool); + virtual QSize sizeHint () const; + +signals: + void fontSelected (const QFont&); + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_1_0 ) + + enum FontColumn + { + FamilyList, + StyleList, + SizeList, + CharsetList + }; + +%End + + +}; // class KFontChooser + + +class KFontDialog : KDialogBase +{ +%TypeHeaderCode +#include <kfontdialog.h> +%End + + +public: + KFontDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState = QButton ::Off ) [(QWidget* = 0, const char* = 0, bool = 0, bool = 0, const QStringList& = QStringList (), bool = 1, bool = 0, QButton::ToggleState* = 0)]; +%MethodCode +//takes parent | (QWidget = 0) | name | (string = "") | onlyFixed | (bool = 0) | modal | (bool = 0) | fontlist | (QStringList = QStringList()) | makeFrame | (bool = 1) | diff | (bool = 0) | sizeIsRelativeState | (QButton::ToggleState = 0) + Py_BEGIN_ALLOW_THREADS + sipCpp = (sipKFontDialog *)new KFontDialog (a0, a1, a2, a3, *a4, a5, a6, &a7); + Py_END_ALLOW_THREADS +%End + + void setFont (const QFont&, bool = 0); + QFont font () const; + void setSizeIsRelative (QButton::ToggleState); + QButton::ToggleState sizeIsRelative () const; + static SIP_PYTUPLE getFont (QFont&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = True) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFont (*a0, a1, a2, a3, &a4); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a4); +%End + + static SIP_PYTUPLE getFontDiff (QFont&, int&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, int&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | diffFlags | (int) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFontDiff (*a0, a1, a2, a3, a4, &a5); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a5); +%End + + static SIP_PYTUPLE getFontAndText (QFont&, QString&, bool = 0, QWidget* /Transfer/ = 0, bool = 1, QButton::ToggleState /In/ = QButton ::Off ) [int (QFont&, QString&, bool = 0, QWidget* = 0, bool = 1, QButton::ToggleState* = 0)]; +%MethodCode +//returns (int) sizeIsRelative (QButton::ToggleState) +//takes theFont | (QFont) | theString | (QString) | onlyFixed | (bool = False) | parent | (QWidget = 0) | makeFrame | (bool = true) | sizeIsRelative | (QButton::ToggleState = QButton.Off) + int res; + Py_BEGIN_ALLOW_THREADS + res = KFontDialog::getFontAndText (*a0, *a1, a2, a3, a4, &a5); + Py_END_ALLOW_THREADS + + sipRes = Py_BuildValue ("ii", res, (int)a5); +%End + + +signals: + void fontSelected (const QFont&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KFontDialog + diff --git a/python/pykde/sip/kdeui/kfontrequester.sip b/python/pykde/sip/kdeui/kfontrequester.sip new file mode 100644 index 00000000..5f70bea7 --- /dev/null +++ b/python/pykde/sip/kdeui/kfontrequester.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KFontRequester : QWidget +{ +%TypeHeaderCode +#include <kfontrequester.h> +%End + + +public: + KFontRequester (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + QFont font () const; + bool isFixedOnly () const; + QString sampleText () const; + QString title () const; + QLabel* label () const; + QPushButton* button () const; + virtual void setFont (const QFont&, bool = 0); + virtual void setSampleText (const QString&); + virtual void setTitle (const QString&); + +signals: + void fontSelected (const QFont&); + +protected: + void displaySampleText (); + void setToolTip (); + +protected slots: + virtual void buttonClicked (); + +protected: + +}; // class KFontRequester + +%End + diff --git a/python/pykde/sip/kdeui/kguiitem.sip b/python/pykde/sip/kdeui/kguiitem.sip new file mode 100644 index 00000000..48675d0b --- /dev/null +++ b/python/pykde/sip/kdeui/kguiitem.sip @@ -0,0 +1,57 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KGuiItem +{ +%TypeHeaderCode +#include <kguiitem.h> +%End + + +public: + KGuiItem (); + KGuiItem (const QString&, const QString& = QString ::null , const QString& = QString ::null , const QString& = QString ::null ); + KGuiItem (const QString&, const QIconSet&, const QString& = QString ::null , const QString& = QString ::null ); + KGuiItem (const KGuiItem&); + QString text () const; + QString plainText () const; + QIconSet iconSet (KIcon::Group, int = 0, KInstance* = KGlobal ::instance ()) const; + QIconSet iconSet () const; + QString iconName () const; + QString toolTip () const; + QString whatsThis () const; + bool isEnabled () const; + bool hasIcon () const; + bool hasIconSet () const; + void setText (const QString&); + void setIconSet (const QIconSet&); + void setIconName (const QString&); + void setToolTip (const QString&); + void setWhatsThis (const QString&); + void setEnabled (bool); + +}; // class KGuiItem + diff --git a/python/pykde/sip/kdeui/khelpmenu.sip b/python/pykde/sip/kdeui/khelpmenu.sip new file mode 100644 index 00000000..0ec9cbfc --- /dev/null +++ b/python/pykde/sip/kdeui/khelpmenu.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KHelpMenu : QObject +{ +%TypeHeaderCode +#include <khelpmenu.h> +%End + + +public: + + enum MenuId + { + menuHelpContents, + menuWhatsThis, + menuAboutApp, + menuAboutKDE, + menuReportBug + }; + + KHelpMenu (QWidget* /TransferThis/ = 0, const QString& = QString ::null , bool = 1); + KHelpMenu (QWidget* /TransferThis/, const KAboutData*, bool = 1, KActionCollection* = 0); + KPopupMenu* menu (); + +public slots: + void appHelpActivated (); + void contextHelpActivated (); + void aboutApplication (); + void aboutKDE (); + void reportBug (); + +signals: + void showAboutApplication (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KHelpMenu + diff --git a/python/pykde/sip/kdeui/kiconview.sip b/python/pykde/sip/kdeui/kiconview.sip new file mode 100644 index 00000000..8ce76143 --- /dev/null +++ b/python/pykde/sip/kdeui/kiconview.sip @@ -0,0 +1,147 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KIconView : QIconView +{ +%TypeHeaderCode +#include <kiconview.h> +%End + + +public: + KIconView (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + + enum Mode + { + Execute, + Select + }; + + void setMode (KIconView::Mode); + Mode mode () const; + virtual void setFont (const QFont&); + +%If ( KDE_3_3_0 - ) + void setIconTextHeight (int); + int iconTextHeight () const; + +%If ( KDE_3_4_0 - ) + virtual void takeItem (QIconViewItem*); +%End + +%End + + +signals: + void executed (QIconViewItem*); + void executed (QIconViewItem*, const QPoint&); + +%If ( KDE_3_3_0 - ) + void held (QIconViewItem*); +%End + + void doubleClicked (QIconViewItem*, const QPoint&); + +protected slots: + void slotOnItem (QIconViewItem*); + void slotOnViewport (); + void slotSettingsChanged (int); + void slotAutoSelect (); + +protected: + void emitExecute (QIconViewItem*, const QPoint&); + +%If ( KDE_3_5_0 - ) + void updateDragHoldItem (QDropEvent*); +%End + + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void contentsDragEnterEvent (QDragEnterEvent*); + +%If ( KDE_3_5_0 - ) + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); +%End + + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual void wheelEvent (QWheelEvent*); + +%If ( KDE_3_4_0 - ) + void cancelPendingHeldSignal (); +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIconView + + +class KIconViewItem : QIconViewItem +{ +%TypeHeaderCode +#include <kiconview.h> +%End + + +public: + KIconViewItem (QIconView* /TransferThis/); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*); + KIconViewItem (QIconView* /TransferThis/, const QString&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&); + KIconViewItem (QIconView* /TransferThis/, const QString&, const QPixmap&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPixmap&); + KIconViewItem (QIconView* /TransferThis/, const QString&, const QPicture&); + KIconViewItem (QIconView* /TransferThis/, QIconViewItem*, const QString&, const QPicture&); + +%If ( KDE_3_3_0 - ) + void setPixmapSize (const QSize&); + QSize pixmapSize () const; +%End + + +protected: + void init (); + virtual void calcRect (const QString& = QString ::null ); + virtual void paintItem (QPainter*, const QColorGroup&); + +%If ( KDE_3_2_0 - ) + KWordWrap* wordWrap (); + void paintPixmap (QPainter*, const QColorGroup&); + void paintText (QPainter*, const QColorGroup&); +%End + + +}; // class KIconViewItem + diff --git a/python/pykde/sip/kdeui/kiconviewsearchline.sip b/python/pykde/sip/kdeui/kiconviewsearchline.sip new file mode 100644 index 00000000..3864bc22 --- /dev/null +++ b/python/pykde/sip/kdeui/kiconviewsearchline.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_4_0 - ) + +class KIconViewSearchLine : KLineEdit +{ +%TypeHeaderCode +#include <kiconviewsearchline.h> +%End + + +public: + KIconViewSearchLine (QWidget* /TransferThis/ = 0, QIconView* = 0, const char* = 0); + KIconViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QIconView* iconView () const; + +public slots: + virtual void updateSearch (const QString& = QString ::null ); + void setCaseSensitive (bool); + void setIconView (QIconView*); + void clear (); + +protected: + virtual bool itemMatches (const QIconViewItem*, const QString&) const; + void init (QIconView* = 0); + void hideItem (QIconViewItem*); + void showItem (QIconViewItem*); + +protected slots: + void queueSearch (const QString&); + void activateSearch (); + +}; // class KIconViewSearchLine + +%End + diff --git a/python/pykde/sip/kdeui/kinputdialog.sip b/python/pykde/sip/kdeui/kinputdialog.sip new file mode 100644 index 00000000..88839a18 --- /dev/null +++ b/python/pykde/sip/kdeui/kinputdialog.sip @@ -0,0 +1,66 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KInputDialog : KDialogBase +{ +%TypeHeaderCode +#include <kinputdialog.h> +%End + + +private: + KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*, QValidator*, const QString&); + +%If ( KDE_3_3_0 - ) + KInputDialog (const QString&, const QString&, const QString&, QWidget* /TransferThis/, const char*); +%End + + KInputDialog (const QString&, const QString&, int, int, int, int, int, QWidget* /TransferThis/, const char*); + KInputDialog (const QString&, const QString&, const QStringList&, int, bool, QWidget* /TransferThis/, const char*); + KInputDialog (const QString&, const QString&, const QStringList&, const QStringList&, bool, QWidget* /TransferThis/, const char*); + ~KInputDialog (); + +public: + static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null ); + +%If ( KDE_3_3_0 - ) + static QString text (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0, QValidator* = 0, const QString& = QString ::null , const QString& = QString ::null ); + static QString getMultiLineText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +%End + + static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, int = 10, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +//ig static int getInteger (const QString&, const QString&, int = 0, int = -2147483647, int = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, double = 0.1, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); +//ig static double getDouble (const QString&, const QString&, double = 0, double = -2147483647, double = 2147483647, int = 1, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static QString getItem (const QString&, const QString&, const QStringList&, int = 0, bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + static QStringList getItemList (const QString&, const QString&, const QStringList& = QStringList (), const QStringList& = QStringList (), bool = 0, bool* = 0, QWidget* /Transfer/ = 0, const char* = 0); + +}; // class KInputDialog + +%End + diff --git a/python/pykde/sip/kdeui/kjanuswidget.sip b/python/pykde/sip/kdeui/kjanuswidget.sip new file mode 100644 index 00000000..e888c666 --- /dev/null +++ b/python/pykde/sip/kdeui/kjanuswidget.sip @@ -0,0 +1,110 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KJanusWidget : QWidget +{ +%TypeHeaderCode +#include <kjanuswidget.h> +%End + + +public: + + enum Face + { + TreeList, + Tabbed, + Plain, + Swallow, + IconList + }; + + +public: + KJanusWidget (QWidget* /TransferThis/ = 0, const char* = 0, int = Plain ); + virtual bool showPage (int); + virtual int activePageIndex () const; + virtual bool isValid () const; + virtual int face () const; + virtual QSize minimumSizeHint () const; + virtual QSize sizeHint () const; + virtual QFrame* plainPage (); + virtual QFrame* addPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QFrame* addPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QVBox* addVBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QVBox* addVBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QHBox* addHBoxPage (const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QHBox* addHBoxPage (const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QGrid* addGridPage (int, Qt::Orientation, const QString&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + virtual QGrid* addGridPage (int, Qt::Orientation, const QStringList&, const QString& = QString ::null , const QPixmap& = QPixmap ()); + +%If ( KDE_3_1_0 - ) + void removePage (QWidget*); +%End + + virtual int pageIndex (QWidget*) const; + virtual bool setSwallowedWidget (QWidget*); + virtual void setTreeListAutoResize (bool); + virtual void setShowIconsInTreeList (bool); + virtual void setRootIsDecorated (bool); + +%If ( KDE_3_2_0 - ) + void unfoldTreeList (bool = 0); + void addWidgetBelowList (QWidget*); + void addButtonBelowList (const QString&, QObject*, const char*); + void addButtonBelowList (const KGuiItem&, QObject*, const char*); +%End + + virtual void setIconListAllVisible (bool); + virtual void setFolderIcon (const QStringList&, const QPixmap&); + +%If ( KDE_3_2_0 - ) + QString pageTitle (int) const; + QWidget* pageWidget (int) const; +%End + + +signals: + void aboutToShowPage (QWidget*); + +public slots: + virtual void setFocus (); + +protected: + virtual void showEvent (QShowEvent*); + virtual bool eventFilter (QObject*, QEvent*); + +protected: + bool showPage (QWidget*); + void addPageWidget (QFrame*, const QStringList&, const QString&, const QPixmap&); + void InsertTreeListItem (const QStringList&, const QPixmap&, QFrame*); + QWidget* FindParent (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KJanusWidget + diff --git a/python/pykde/sip/kdeui/kkeybutton.sip b/python/pykde/sip/kdeui/kkeybutton.sip new file mode 100644 index 00000000..7bcb0825 --- /dev/null +++ b/python/pykde/sip/kdeui/kkeybutton.sip @@ -0,0 +1,59 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KKeyButton : QPushButton +{ +%TypeHeaderCode +#include <qpushbutton.h> +#include <kkeybutton.h> +%End + + +public: + KKeyButton (QWidget* /TransferThis/ = 0, const char* = 0); + void setShortcut (const KShortcut&); + +%If ( KDE_3_1_0 - ) + void setShortcut (const KShortcut&, bool); +%End + + const KShortcut& shortcut () const; + void setText (const QString&); + +signals: + void capturedShortcut (const KShortcut&); + +public slots: + void captureShortcut (); + +protected: + void drawButton (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KKeyButton + diff --git a/python/pykde/sip/kdeui/kkeydialog.sip b/python/pykde/sip/kdeui/kkeydialog.sip new file mode 100644 index 00000000..baca19f7 --- /dev/null +++ b/python/pykde/sip/kdeui/kkeydialog.sip @@ -0,0 +1,262 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KKeyChooser : QWidget +{ +%TypeHeaderCode +#include <kkeydialog.h> +%End + + +public: + + enum ActionType + { + Application, + ApplicationGlobal, + Standard, + Global + }; + + KKeyChooser (QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + KKeyChooser (KActionCollection*, QWidget* /TransferThis/, bool = 1); + KKeyChooser (KAccel*, QWidget* /TransferThis/, bool = 1); + KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/); + KKeyChooser (KShortcutList*, QWidget* /TransferThis/, KKeyChooser::ActionType = Application , bool = 1); + bool insert (KActionCollection*); + +%If ( KDE_3_1_0 - ) + bool insert (KActionCollection*, const QString&); +%End + + void syncToConfig (const QString&, KConfigBase*, bool); + void commitChanges (); + void save (); + +%If ( KDE_3_2_0 - ) + static bool checkGlobalShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); + static bool checkStandardShortcutsConflict (const KShortcut&, bool, QWidget* /Transfer/); +%End + + +signals: + void keyChange (); + +public slots: + void allDefault (); + void setPreferFourModifierKeys (bool); + +protected: + void initGUI (KKeyChooser::ActionType, bool); + bool insert (KAccel*); + bool insert (KGlobalAccel*); + bool insert (KShortcutList*); + +%If ( KDE_3_1_0 - ) + void buildListView (uint, const QString& = QString ::null ); +%End + + void readGlobalKeys (); + void updateButtons (); + void fontChange (const QFont&); + void setShortcut (const KShortcut&); + bool isKeyPresent (const KShortcut&, bool = 1); + +%If ( KDE_3_1_0 - ) +//ig bool isKeyPresentLocally (const KShortcut&, KKeyChooserItem*, const QString&); +%End + + void _warning (const KKeySequence&, QString, QString); + +protected slots: + void slotNoKey (); + void slotDefaultKey (); + void slotCustomKey (); + void slotListItemSelected (QListViewItem*); + void capturedShortcut (const KShortcut&); + +%If ( KDE_3_1_0 - ) + void slotSettingsChanged (int); + +%If ( KDE_3_1_2 - ) + void slotListItemDoubleClicked (QListViewItem*, const QPoint&, int); +%End + +%End + + +protected: + +public: + KKeyChooser (KAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + KKeyChooser (KGlobalAccel*, QWidget* /TransferThis/, bool, bool, bool = 0); + +public slots: + void listSync (); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + void buildListView (uint); +%End + + +}; // class KKeyChooser + + +class KKeyDialog : KDialogBase +{ +%TypeHeaderCode +#include <kkeydialog.h> +%End + + +public: + KKeyDialog (bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); + bool insert (KActionCollection*); + +%If ( KDE_3_1_0 - ) + bool insert (KActionCollection*, const QString&); +%End + + bool configure (bool = 1); + void commitChanges (); + static int configure (KActionCollection*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, QWidget* /Transfer/ = 0, bool = 1); + +%If ( KDE_3_1_0 - ) + static int configure (KActionCollection*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); + static int configure (KGlobalAccel*, bool, QWidget* /Transfer/ = 0, bool = 1); +%End + + static int configureKeys (KAccel*, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KGlobalAccel*, bool = 1, QWidget* /Transfer/ = 0); + static int configureKeys (KActionCollection*, const QString&, bool = 1, QWidget* /Transfer/ = 0); + +%If ( KDE_3_1_0 - ) + +private: + KKeyDialog (KKeyChooser::ActionType, bool = 1, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KKeyDialog + +typedef KKeyChooser KKeyChooser; + + +%MappedType IntDict +//converts a Python dict of QString:int +{ +%TypeHeaderCode +#include <qdict.h> +#include <sipqtQString.h> +#include <sipqtQCString.h> +typedef QDict<int> IntDict; +%End + +%ConvertFromTypeCode +// Convert to a Python dictionary + + if (!sipCpp) + return PyDict_New(); + + PyObject *dict; + + // Create the dictionary. + + if ((dict = PyDict_New()) == NULL) + return NULL; + + // Get it. + + QDict<int> qdict = *sipCpp; + QDictIterator<int> it (qdict); + + while (it.current ()) + { + PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QCString, sipTransferObj); + PyObject *a1 = PyInt_FromLong ((long) it.current ()); + + if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0)) + { + Py_XDECREF (a0); + Py_XDECREF (a1); + Py_DECREF (dict); + return NULL; + } + } + + return dict; +%End + + +%ConvertToTypeCode + // Convert a Python dictionary to a QDict<int> on the heap. + + if (sipIsErr == NULL) + return PyDict_Check(sipPy); + + QDict<int>* qdict = new QDict<int>; + + PyObject *key, *value; + int pos = 0; + QString *a0; + int a1; + + while (PyDict_Next(sipPy, &pos, &key, &value)) + { + int iserr = 0; + + a0 = (QString *) sipForceConvertTo_QString (key, &iserr); + + if ((iserr) || (!PyInt_Check (value))) + { + *sipIsErr = 1; + delete qdict; + return 0; + } + + a1 = (int) PyInt_AS_LONG (value); + + qdict->insert (*a0, &a1); + } + + *sipCppPtr = qdict; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kdeui/klanguagebutton.sip b/python/pykde/sip/kdeui/klanguagebutton.sip new file mode 100644 index 00000000..8141fdbe --- /dev/null +++ b/python/pykde/sip/kdeui/klanguagebutton.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KLanguageButton : QWidget +{ +%TypeHeaderCode +#include <klanguagebutton.h> +%End + + +public: + KLanguageButton (QWidget* /TransferThis/ = 0, const char* = 0); + KLanguageButton (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + void insertItem (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertItem (const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertSeparator (const QString& = QString ::null , int = -1); + void insertSubmenu (const QIconSet&, const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertSubmenu (const QString&, const QString&, const QString& = QString ::null , int = -1); + void insertLanguage (const QString&, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = -1); + int count () const; + void clear (); + void setText (const QString&); + QString current () const; + bool contains (const QString&) const; + void setCurrentItem (const QString&); + QString id (int) const; + +signals: + void activated (const QString&); + void highlighted (const QString&); + +}; // class KLanguageButton + +%End + diff --git a/python/pykde/sip/kdeui/kled.sip b/python/pykde/sip/kdeui/kled.sip new file mode 100644 index 00000000..2dcb6f54 --- /dev/null +++ b/python/pykde/sip/kdeui/kled.sip @@ -0,0 +1,97 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KLed : QWidget +{ +%TypeHeaderCode +#include <kled.h> +%End + + +public: + + enum State + { + Off, + On + }; + + + enum Shape + { + Rectangular, + Circular + }; + + + enum Look + { + Flat, + Raised, + Sunken + }; + + KLed (QWidget* /TransferThis/ = 0, const char* = 0); +//ig KLed (const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + KLed (const QColor&, KLed::State, KLed::Look, KLed::Shape, QWidget* /TransferThis/ = 0, const char* = 0); + State state () const; + Shape shape () const; + const QColor color () const; + Look look () const; + int darkFactor () const; + void setState (KLed::State); + void setShape (KLed::Shape); + void toggleState (); + void setColor (const QColor&); + void setDarkFactor (int); + void setLook (KLed::Look); + virtual QSize sizeHint () const; + virtual QSize minimumSizeHint () const; + +public slots: + void toggle (); + void on (); + void off (); + +protected: + virtual void paintFlat (); + virtual void paintRound (); + virtual void paintSunken (); + virtual void paintRect (); + virtual void paintRectFrame (bool); + void paintEvent (QPaintEvent*); + +%If ( KDE_3_3_0 - ) + int ensureRoundLed (); + bool paintCachedPixmap (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLed + diff --git a/python/pykde/sip/kdeui/klineedit.sip b/python/pykde/sip/kdeui/klineedit.sip new file mode 100644 index 00000000..d5525613 --- /dev/null +++ b/python/pykde/sip/kdeui/klineedit.sip @@ -0,0 +1,146 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KLineEdit : QLineEdit, KCompletionBase +{ +%TypeHeaderCode +#include <klineedit.h> +%End + + +public: + KLineEdit (const QString&, QWidget* /TransferThis/, const char* = 0); + KLineEdit (QWidget* /TransferThis/ = 0, const char* = 0); + void setURL (const KURL&); + void cursorAtEnd (); + virtual void setCompletionMode (KGlobalSettings::Completion); + virtual void setContextMenuEnabled (bool); + bool isContextMenuEnabled () const; + void setURLDropsEnabled (bool); + bool isURLDropsEnabled () const; + void setTrapReturnKey (bool); + bool trapReturnKey () const; + virtual bool eventFilter (QObject*, QEvent*); + KCompletionBox* completionBox (bool); + virtual void setCompletionObject (KCompletion*, bool = 1); + +%If ( KDE_3_1_0 - ) + virtual void copy () const; + +%If ( KDE_3_2_0 - ) + void setEnableSqueezedText (bool); + bool isSqueezedTextEnabled () const; + QString originalText () const; + +%If ( KDE_3_4_0 - ) + void setCompletionBox (KCompletionBox*); +%End + +%End + +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void completionBoxActivated (const QString&); +%End + + void returnPressed (const QString&); + void completion (const QString&); + void substringCompletion (const QString&); + void textRotation (KCompletionBase::KeyBindingType); + void completionModeChanged (KGlobalSettings::Completion); + void aboutToShowContextMenu (QPopupMenu*); + +public slots: + virtual void setReadOnly (bool); + void rotateText (KCompletionBase::KeyBindingType); + virtual void setCompletedText (const QString&); + void setCompletedItems (const QStringList&); + +%If ( KDE_3_3_0 - ) + void setCompletedItems (const QStringList&, bool); +%End + + virtual void clear (); + +%If ( KDE_3_1_0 - ) + void setSqueezedText (const QString&); + +%If ( KDE_3_2_0 - ) + virtual void setText (const QString&); +%End + +%End + + +protected slots: + virtual void makeCompletion (const QString&); + void slotAboutToShow (); + void slotCancelled (); + +%If ( KDE_3_2_0 - ) + void userCancelled (const QString&); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + + virtual void keyPressEvent (QKeyEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseDoubleClickEvent (QMouseEvent*); + +%If ( KDE_3_3_1 - ) + virtual void contextMenuEvent (QContextMenuEvent*); +%End + + virtual QPopupMenu* createPopupMenu (); + virtual void dropEvent (QDropEvent*); + virtual void setCompletedText (const QString&, bool); + +%If ( KDE_3_2_0 - ) + void setUserSelection (bool); +%End + + virtual void create (WId = 0, bool = 1, bool = 1); + +%If ( KDE_3_4_0 - ) + virtual void focusInEvent (QFocusEvent*); + bool autoSuggest () const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLineEdit + diff --git a/python/pykde/sip/kdeui/klineeditdlg.sip b/python/pykde/sip/kdeui/klineeditdlg.sip new file mode 100644 index 00000000..ad97ff98 --- /dev/null +++ b/python/pykde/sip/kdeui/klineeditdlg.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KLineEditDlg : KDialogBase +{ +%TypeHeaderCode +#include <klineeditdlg.h> +%End + + +public: + KLineEditDlg (const QString&, const QString&, QWidget* /TransferThis/); + QString text (); + KLineEdit* lineEdit () const; + static QString getText (const QString&, const QString&, bool*, QWidget* /Transfer/, QValidator* = 0); + static QString getText (const QString&, const QString&, const QString& = QString ::null , bool* = 0, QWidget* /Transfer/ = 0, QValidator* = 0); + +public slots: + void slotClear (); + +protected slots: + void slotTextChanged (const QString&); + +protected: + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KLineEditDlg + diff --git a/python/pykde/sip/kdeui/klistbox.sip b/python/pykde/sip/kdeui/klistbox.sip new file mode 100644 index 00000000..24d33507 --- /dev/null +++ b/python/pykde/sip/kdeui/klistbox.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KListBox : QListBox +{ +%TypeHeaderCode +#include <klistbox.h> +%End + + +public: + KListBox (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + +signals: + void executed (QListBoxItem*); + void executed (QListBoxItem*, const QPoint&); + void doubleClicked (QListBoxItem*, const QPoint&); + +protected slots: + void slotOnItem (QListBoxItem*); + void slotOnViewport (); + void slotSettingsChanged (int); + void slotAutoSelect (); + +protected: + void emitExecute (QListBoxItem*, const QPoint&); + virtual void keyPressEvent (QKeyEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KListBox + diff --git a/python/pykde/sip/kdeui/klistview.sip b/python/pykde/sip/kdeui/klistview.sip new file mode 100644 index 00000000..db1b33b7 --- /dev/null +++ b/python/pykde/sip/kdeui/klistview.sip @@ -0,0 +1,337 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KListView : QListView +{ +%TypeHeaderCode +#include <klistview.h> +%End + + +public: + + enum SelectionModeExt + { + Single, + Multi, + Extended, + NoSelection, + FileManager + }; + + KListView (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setAcceptDrops (bool); + virtual bool isExecuteArea (const QPoint&); + bool isExecuteArea (int); + QPtrList<QListViewItem> selectedItems () const; + +%If ( KDE_3_4_0 - ) + QPtrList<QListViewItem> selectedItems (bool) const; +%End + + void moveItem (QListViewItem*, QListViewItem* /Transfer/, QListViewItem*); + QListViewItem* lastItem () const; + QListViewItem* lastChild () const; + +%If ( KDE_3_1_0 - ) + KLineEdit* renameLineEdit () const; +%End + + bool itemsMovable () const; + bool itemsRenameable () const; + bool dragEnabled () const; + bool autoOpen () const; + bool isRenameable (int) const; + bool dropVisualizer () const; + int tooltipColumn () const; + bool createChildren () const; + bool dropHighlighter () const; + int dropVisualizerWidth () const; + SelectionModeExt selectionModeExt () const; + int itemIndex (const QListViewItem*) const; + QListViewItem* itemAtIndex (int); + void setFullWidth (); + void setFullWidth (bool); + bool fullWidth () const; + +%If ( KDE_3_0_1 - ) + virtual int addColumn (const QString&, int = -1); + virtual int addColumn (const QIconSet&, const QString&, int = -1); + virtual void removeColumn (int); +%End + + void setAlternateBackground (const QColor&); + const QColor& alternateBackground () const; + void saveLayout (KConfig*, const QString&) const; + void restoreLayout (KConfig*, const QString&); + virtual void setSorting (int, bool = 1); + int columnSorted () const; + bool ascendingSort () const; + +%If ( KDE_3_2_0 - ) + virtual void takeItem (QListViewItem*); + +%If ( KDE_3_4_0 - ) + void setShadeSortColumn (bool); + bool shadeSortColumn () const; +%End + +%End + + +signals: + void executed (QListViewItem*); + void executed (QListViewItem*, const QPoint&, int); + void dropped (QDropEvent*, QListViewItem*); + void dropped (KListView*, QDropEvent*, QListViewItem*); + void dropped (KListView*, QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); + void dropped (QDropEvent*, QListViewItem* /Transfer/, QListViewItem*); + void moved (); + void aboutToMove (); + void moved (QListViewItem*, QListViewItem*, QListViewItem*); + void moved (QPtrList<QListViewItem>&, QPtrList<QListViewItem>&, QPtrList<QListViewItem>&); + void itemRenamed (QListViewItem*, const QString&, int); + void itemRenamed (QListViewItem*); + void menuShortCutPressed (KListView*, QListViewItem*); + void contextMenu (KListView*, QListViewItem*, const QPoint&); + +%If ( KDE_3_3_0 - ) + void itemAdded (QListViewItem*); + void itemRemoved (QListViewItem*); +%End + + +public slots: + virtual void rename (QListViewItem*, int); + void setRenameable (int, bool = 1); + virtual void setItemsMovable (bool); + virtual void setItemsRenameable (bool); + virtual void setDragEnabled (bool); + virtual void setAutoOpen (bool); + virtual void setDropVisualizer (bool); + void setDropVisualizerWidth (int); + virtual void setTooltipColumn (int); + virtual void setDropHighlighter (bool); + virtual void setCreateChildren (bool); + void setSelectionModeExt (KListView::SelectionModeExt); + +%If ( KDE_3_1_0 - ) + void setTabOrderedRenaming (bool); + bool tabOrderedRenaming () const; +%End + + +protected: + bool below (const QRect&, const QPoint&); + bool below (QListViewItem*, const QPoint&); + virtual bool event (QEvent*); + void emitExecute (QListViewItem*, const QPoint&, int); + virtual void focusInEvent (QFocusEvent*); + virtual void focusOutEvent (QFocusEvent*); + virtual void leaveEvent (QEvent*); + virtual QString tooltip (QListViewItem*, int) const; + virtual bool showTooltip (QListViewItem*, const QPoint&, int) const; + virtual void contentsDragMoveEvent (QDragMoveEvent*); + virtual void contentsMousePressEvent (QMouseEvent*); + virtual void contentsMouseMoveEvent (QMouseEvent*); + virtual void contentsMouseDoubleClickEvent (QMouseEvent*); + virtual void contentsDragLeaveEvent (QDragLeaveEvent*); + virtual void contentsMouseReleaseEvent (QMouseEvent*); + virtual void contentsDropEvent (QDropEvent*); + virtual void contentsDragEnterEvent (QDragEnterEvent*); +//ig virtual QDragObject* dragObject () const; + virtual bool acceptDrag (QDropEvent*) const; + virtual QRect drawDropVisualizer (QPainter*, QListViewItem* /Transfer/, QListViewItem*); + virtual QRect drawItemHighlighter (QPainter*, QListViewItem*); + virtual void startDrag (); + virtual void keyPressEvent (QKeyEvent*); + virtual void viewportPaintEvent (QPaintEvent*); + void activateAutomaticSelection (); + void deactivateAutomaticSelection (); + bool automaticSelection () const; + virtual void viewportResizeEvent (QResizeEvent*); + +%If ( KDE_3_2_0 - ) + void disableAutoSelection (); + void resetAutoSelection (); + +%If ( KDE_3_3_0 - ) + void doubleClicked (QListViewItem*, const QPoint&, int); +%End + +%End + + +protected slots: + void slotSettingsChanged (int); + void slotMouseButtonClicked (int, QListViewItem*, const QPoint&, int); + void doneEditing (QListViewItem*, int); + void cleanDropVisualizer (); + void cleanItemHighlighter (); + void emitContextMenu (QListViewItem*, const QPoint&, int); + void emitContextMenu (KListView*, QListViewItem*); + void slotOnItem (QListViewItem*); + void slotOnViewport (); + void slotAutoSelect (); + +%If ( KDE_3_2_0 - ) + void slotDragExpand (); +%End + + void slotHeaderChanged (); + +protected: + virtual void movableDropEvent (QListViewItem*, QListViewItem*); + virtual void findDrop (const QPoint&, QListViewItem*&, QListViewItem*&); + void fileManagerKeyPressEvent (QKeyEvent*); + int depthToPixels (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +signals: + +%If ( - KDE_3_3_0 ) + void doubleClicked (QListViewItem*, const QPoint&, int); +%End + + +protected: +//force + virtual QDragObject* dragObject (); +//end + +}; // class KListView + + +class KListViewItem : QListViewItem +{ +%TypeHeaderCode +#include <klistview.h> +%End + + +public: + KListViewItem (QListView* /TransferThis/); + KListViewItem (QListViewItem* /TransferThis/); + KListViewItem (QListView* /TransferThis/, QListViewItem*); + KListViewItem (QListViewItem* /TransferThis/, QListViewItem*); + KListViewItem (QListView* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListViewItem* /TransferThis/, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListView* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + KListViewItem (QListViewItem* /TransferThis/, QListViewItem*, QString, QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null , QString = QString ::null ); + +%If ( KDE_3_3_0 - ) + virtual void insertItem (QListViewItem*); + virtual void takeItem (QListViewItem*); +%End + + bool isAlternate (); + const QColor& backgroundColor (); + +%If ( KDE_3_4_0 - ) + QColor backgroundColor (int); +%End + + virtual void paintCell (QPainter*, const QColorGroup&, int, int, int); + +}; // class KListViewItem + + + +%MappedType QPtrList<QListViewItem> +//converts a Python list of QListViewItem +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <qlistview.h> +#include <sipqtQListViewItem.h> +typedef QPtrList<QListViewItem> ListViewItems; +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<QListViewItem> *cpplist = (QPtrList<QListViewItem> *)sipCpp; + QListViewItem *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the template makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QListViewItem, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<QListViewItem> *cpplist = new QPtrList<QListViewItem>; + + PyObject *elem; + QListViewItem *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QListViewItem *)sipForceConvertTo_QListViewItem (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kdeui/klistviewlineedit.sip b/python/pykde/sip/kdeui/klistviewlineedit.sip new file mode 100644 index 00000000..e72d9965 --- /dev/null +++ b/python/pykde/sip/kdeui/klistviewlineedit.sip @@ -0,0 +1,51 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KListViewLineEdit : KLineEdit +{ +%TypeHeaderCode +#include <klistviewlineedit.h> +%End + + +public: + KListViewLineEdit (KListView*/TransferThis/); + +signals: + void done (QListViewItem*, int); + +public slots: + void terminate (); + void load (QListViewItem*, int); + +protected: + virtual void focusOutEvent (QFocusEvent*); + virtual void keyPressEvent (QKeyEvent*); + virtual void paintEvent (QPaintEvent*); + void terminate (bool); + +}; // class KListViewLineEdit + diff --git a/python/pykde/sip/kdeui/klistviewsearchline.sip b/python/pykde/sip/kdeui/klistviewsearchline.sip new file mode 100644 index 00000000..673da0f5 --- /dev/null +++ b/python/pykde/sip/kdeui/klistviewsearchline.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_3_0 - ) + +class KListViewSearchLine : KLineEdit +{ +%TypeHeaderCode +#include <klistviewsearchline.h> +%End + + +public: + KListViewSearchLine (QWidget* /TransferThis/ = 0, KListView* = 0, const char* = 0); + KListViewSearchLine (QWidget* /TransferThis/, const char*); + bool caseSensitive () const; + QValueList<int> searchColumns () const; + bool keepParentsVisible () const; + KListView* listView () const; + +public slots: + virtual void updateSearch (const QString& = QString ::null ); + void setCaseSensitive (bool); + void setKeepParentsVisible (bool); + void setSearchColumns (const QValueList<int>&); + void setListView (KListView*); + +protected: + virtual bool itemMatches (const QListViewItem*, const QString&) const; + virtual QPopupMenu* createPopupMenu (); + +protected slots: + void queueSearch (const QString&); + void activateSearch (); + +}; // class KListViewSearchLine + +%End + + +%If ( KDE_3_4_0 - ) + +class KListViewSearchLineWidget : QHBox +{ +%TypeHeaderCode +#include <klistviewsearchline.h> +%End + + +public: + KListViewSearchLineWidget (KListView* = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual KListViewSearchLine* createSearchLine (KListView*); + KListViewSearchLine* searchLine () const; + +protected slots: + virtual void createWidgets (); + +}; // class KListViewSearchLineWidget + +%End + diff --git a/python/pykde/sip/kdeui/kmainwindow.sip b/python/pykde/sip/kdeui/kmainwindow.sip new file mode 100644 index 00000000..67dd193f --- /dev/null +++ b/python/pykde/sip/kdeui/kmainwindow.sip @@ -0,0 +1,274 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KMainWindow : QMainWindow, KXMLGUIBuilder, KXMLGUIClient +{ +%TypeHeaderCode +#include <kmainwindow.h> +%End + + +public: + KMainWindow (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); + +%If ( KDE_3_2_0 - ) + + enum CreationFlags + { + NoDCOPObject + }; + + KMainWindow (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = WType_TopLevel |WDestructiveClose ); +%End + + KPopupMenu* helpMenu (const QString& = QString ::null , bool = 1); + KPopupMenu* customHelpMenu (bool = 1); + static bool canBeRestored (int); + static const QString classNameOfToplevel (int); + +%If ( KDE_3_2_0 - ) + virtual void show (); + virtual void hide (); +%End + + bool restore (int, bool = 1); + virtual KXMLGUIFactory* guiFactory (); + void createGUI (const QString& = QString ::null , bool = 1); + void setHelpMenuEnabled (bool = 1); + bool isHelpMenuEnabled (); + +%If ( KDE_3_1_0 - ) + bool hasMenuBar (); +%End + + KMenuBar* menuBar (); + KStatusBar* statusBar (); + QPtrList<KMainWindow>* memberList; + +%If ( KDE_3_4_0 - ) + static QPtrList<KMainWindow>* getMemberList (); +%End + + KToolBar* toolBar (const char* = 0); +//ig QPtrListIterator<KToolBar> toolBarIterator (); + KAccel* accel (); + void setFrameBorderWidth (int); + void setAutoSaveSettings (const QString& = QString ::fromLatin1 ("MainWindow" ), bool = 1); + void resetAutoSaveSettings (); + +%If ( KDE_3_1_0 - ) + bool autoSaveSettings () const; + QString autoSaveGroup () const; + +%If ( KDE_3_3_0 - ) + void applyMainWindowSettings (KConfig*, const QString&, bool); +%End + +%End + + void applyMainWindowSettings (KConfig*, const QString& = QString ::null ); + void saveMainWindowSettings (KConfig*, const QString& = QString ::null ); + +%If ( KDE_3_1_0 - ) + void setStandardToolBarMenuEnabled (bool); + bool isStandardToolBarMenuEnabled () const; + +%If ( KDE_3_2_0 - ) + void createStandardStatusBarAction (); + +%If ( KDE_3_3_0 - ) + + enum StandardWindowOptions + { + ToolBar, + Keys, + StatusBar, + Save, + Create + }; + + void setupGUI (int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); + +%If ( KDE_3_5_0 - ) + void setupGUI (QSize, int = ToolBar |Keys |StatusBar |Save |Create , const QString& = QString ::null ); +%End + +%End + +%End + + KAction* toolBarMenuAction (); + +%If ( KDE_3_3_1 - ) + void setupToolbarMenuActions (); +%End + + virtual void finalizeGUI (KXMLGUIClient*); +%End + + void finalizeGUI (bool); + bool initialGeometrySet () const; + +%If ( KDE_3_2_0 - ) + void ignoreInitialGeometry (); +%End + + QSize sizeForCentralWidgetSize (QSize); + +%If ( KDE_3_3_2 - ) + virtual void setIcon (const QPixmap&); +%End + + +public slots: + +%If ( KDE_3_3_0 - ) + int configureToolbars (); +%End + + virtual void setCaption (const QString&); + virtual void setCaption (const QString&, bool); + virtual void setPlainCaption (const QString&); + void appHelpActivated (); + virtual void slotStateChanged (const QString&); + +%If ( KDE_3_1_0 - ) + void slotStateChanged (const QString&, KXMLGUIClient::ReverseStateChange); +%End + + void setSettingsDirty (); + +protected: + void paintEvent (QPaintEvent*); + void childEvent (QChildEvent*); + void resizeEvent (QResizeEvent*); + virtual void closeEvent (QCloseEvent*); + virtual bool queryExit (); + virtual bool queryClose (); + virtual void saveProperties (KConfig*); + virtual void readProperties (KConfig*); + virtual void saveGlobalProperties (KConfig*); + virtual void readGlobalProperties (KConfig*); + void savePropertiesInternal (KConfig*, int); + bool readPropertiesInternal (KConfig*, int); + bool settingsDirty () const; + QString settingsGroup () const; + void saveWindowSize (KConfig*) const; + void restoreWindowSize (KConfig*); + void parseGeometry (bool); + +protected slots: + +%If ( KDE_3_3_0 - ) + void saveNewToolbarConfig (); +%End + + virtual void showAboutApplication (); + +%If ( KDE_3_2_0 - ) + void saveAutoSaveSettings (); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMainWindow + + + +%MappedType QPtrList<KMainWindow> +//converts a Python list of KMainWindow +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kmainwindow.h> +#include <sipkdeuiKMainWindow.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KMainWindow> *cpplist = (QPtrList<KMainWindow> *)sipCpp; + KMainWindow *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KMainWindow, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KMainWindow> *cpplist = new QPtrList<KMainWindow>; + + PyObject *elem; + KMainWindow *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KMainWindow *)sipForceConvertTo_KMainWindow (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kdeui/kmainwindowiface.sip b/python/pykde/sip/kdeui/kmainwindowiface.sip new file mode 100644 index 00000000..c8be93e1 --- /dev/null +++ b/python/pykde/sip/kdeui/kmainwindowiface.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KMainWindowInterface : DCOPObject +{ +%TypeHeaderCode +#include <kmainwindowiface.h> +%End + + +public: + +%If ( KDE_3_1_4 - ) + virtual bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + QCStringList functions (); + QCStringList interfaces (); +%End + + +public: + KMainWindowInterface (KMainWindow*); + QCStringList functionsDynamic (); + bool processDynamic (const QCString&, const QByteArray&, QCString&, QByteArray&); + +public: + QCStringList actions (); + bool activateAction (QCString); + bool disableAction (QCString); + bool enableAction (QCString); + bool actionIsEnabled (QCString); + QCString actionToolTip (QCString); + DCOPRef action (const QCString&); + QMap<QCString,DCOPRef> actionMap (); + int getWinID (); + void grabWindowToClipBoard (); + void hide (); + void maximize (); + void minimize (); + void resize (int, int); + void move (int, int); + void setGeometry (int, int, int, int); + void raise () /PyName=raise_/; + void lower (); + void restore (); + void show (); + +}; // class KMainWindowInterface + diff --git a/python/pykde/sip/kdeui/kmenubar.sip b/python/pykde/sip/kdeui/kmenubar.sip new file mode 100644 index 00000000..e2654075 --- /dev/null +++ b/python/pykde/sip/kdeui/kmenubar.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KMenuBar : QMenuBar +{ +%TypeHeaderCode +#include <kmenubar.h> +%End + + +public: + KMenuBar (QWidget* /TransferThis/ = 0, const char* = 0); + void setTopLevelMenu (bool = 1); + bool isTopLevelMenu () const; + +%If ( KDE_3_1_0 - ) + virtual void setGeometry (const QRect&); +%End + + virtual void setGeometry (int, int, int, int); + +%If ( KDE_3_2_0 - ) + virtual void resize (int, int); + void resize (const QSize&); +%End + + virtual void show (); + +%If ( KDE_3_2_0 - ) + virtual void setFrameStyle (int); + virtual void setLineWidth (int); + virtual void setMargin (int); + +%If ( KDE_3_4_0 - ) + virtual QSize sizeHint () const; +%End + +%End + + +protected slots: + void slotReadConfig (); + +protected: + +%If ( KDE_3_1_0 - ) + virtual void showEvent (QShowEvent*); + virtual void resizeEvent (QResizeEvent*); + virtual bool eventFilter (QObject*, QEvent*); +//ig virtual bool x11Event (XEvent*); + +%If ( KDE_3_2_3 - ) + virtual void closeEvent (QCloseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void drawContents (QPainter*); +%End + +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMenuBar + diff --git a/python/pykde/sip/kdeui/kmessagebox.sip b/python/pykde/sip/kdeui/kmessagebox.sip new file mode 100644 index 00000000..cefaf6e9 --- /dev/null +++ b/python/pykde/sip/kdeui/kmessagebox.sip @@ -0,0 +1,260 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KMessageBox +{ +%TypeHeaderCode +#include <kmessagebox.h> +%End + + +public: + + enum ButtonCode + { + Ok, + Cancel, + Yes, + No, + Continue + }; + + + enum DialogType + { + QuestionYesNo, + WarningYesNo, + WarningContinueCancel, + WarningYesNoCancel, + Information, + Sorry, + Error, + QuestionYesNoCancel + }; + + +%If ( KDE_3_4_0 - ) + + enum OptionsType + { + Notify, + AllowLink, + Dangerous, + PlainCaption, + NoExec + }; + +%End + + static int questionYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int questionYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int questionYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static int warningYesNo (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); + static int warningYesNoList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); + static int warningYesNoListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify |Dangerous ); +%End + + static int warningContinueCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::cont (), const QString& = QString ::null , int = Notify ); +%End + +%End + + static int warningYesNoCancel (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoCancelWId (WId, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + static int warningYesNoCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); + static int warningYesNoCancelListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + static void error (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void errorWId (WId, const QString&, const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_4_0 - ) + static void errorList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); + static void errorListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , int = Notify ); +%End + +%End + + static void detailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void queuedDetailedError (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedDetailedErrorWId (WId, const QString&, const QString&, const QString& = QString ::null ); +%End + + static void sorry (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void sorryWId (WId, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void detailedSorry (QWidget* /Transfer/, const QString&, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedSorryWId (WId, const QString&, const QString&, const QString& = QString ::null , int = Notify ); +%End + + static void information (QWidget* /Transfer/, const QString&, const QString& = QString ::null , const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void informationWId (WId, const QString&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void informationList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static void informationListWId (WId, const QString&, const QStringList&, const QString& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + +%End + + static void enableAllMessages (); + +%If ( KDE_3_2_0 - ) + static void enableMessage (const QString&); +%End + + static void about (QWidget* /Transfer/, const QString&, const QString& = QString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, const KGuiItem&, const KGuiItem&, const QString&, int = Notify ); +%End + + static int messageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), int = Notify ); + +%If ( KDE_3_2_0 - ) + static int messageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString&, int); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString&, int); +%End + +%End + + static void queuedMessageBox (QWidget* /Transfer/, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const QString&, const QString& = QString ::null ); + static bool shouldBeShownYesNo (const QString&, KMessageBox::ButtonCode&); + static bool shouldBeShownContinue (const QString&); + static void saveDontShowAgainYesNo (const QString&, KMessageBox::ButtonCode); + static void saveDontShowAgainContinue (const QString&); + static void setDontShowAskAgainConfig (KConfig*); + +%If ( KDE_3_3_0 - ) + static int createKMessageBox (KDialogBase*, QMessageBox::Icon, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null ); + static int createKMessageBox (KDialogBase*, QPixmap, const QString&, const QStringList&, const QString&, bool*, int, const QString& = QString ::null , QMessageBox::Icon = QMessageBox ::Information ); +%End + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_4_0 ) + + enum OptionsType + { + Notify, + AllowLink, + Dangerous + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum OptionsType + { + Notify, + AllowLink + }; + +%End + + +public: + +%If ( - KDE_3_0_3 ) +//ig static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = QString ::null , const QString& = QString ::null , int = Notify ); +%End + + +%If ( KDE_3_0_3 - KDE_3_1_0 ) + static int warningContinueCancelList (QWidget* /Transfer/, const QString&, const QStringList&, const QString& = QString ::null , const KGuiItem& = KGuiItem (), const QString& = QString ::null , int = Notify ); +%End + + +}; // class KMessageBox + diff --git a/python/pykde/sip/kdeui/knuminput.sip b/python/pykde/sip/kdeui/knuminput.sip new file mode 100644 index 00000000..56ef992b --- /dev/null +++ b/python/pykde/sip/kdeui/knuminput.sip @@ -0,0 +1,261 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KNumInput : QWidget +{ +%TypeHeaderCode +#include <knuminput.h> +%End + + +public: + KNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KNumInput (KNumInput*, QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + QString label () const; + +%If ( KDE_3_1_0 - ) + bool showSlider () const; +%End + + void setSteps (int, int); + QSizePolicy sizePolicy () const; + virtual QSize sizeHint () const; + +protected: + void layout (bool); + virtual void doLayout () = 0; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KNumInput + + +class KIntNumInput : KNumInput +{ +%TypeHeaderCode +#include <knuminput.h> +%End + + +public: + KIntNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KIntNumInput (int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); + KIntNumInput (KNumInput*, int, QWidget* /TransferThis/ = 0, int = 10, const char* = 0); + int value () const; + +%If ( KDE_3_1_0 - ) + double relativeValue () const; + int referencePoint () const; +%End + + QString suffix () const; + QString prefix () const; + QString specialValueText () const; + void setRange (int, int, int = 1, bool = 1); + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + void setSpecialValueText (const QString&); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + virtual QSize minimumSizeHint () const; + +public slots: + void setValue (int); + +%If ( KDE_3_1_0 - ) + void setRelativeValue (double); + void setReferencePoint (int); +%End + + void setSuffix (const QString&); + void setPrefix (const QString&); + void setEditFocus (bool = 1); + +signals: + void valueChanged (int); + +%If ( KDE_3_1_0 - ) + void relativeValueChanged (double); +%End + + +protected: + virtual void doLayout (); + void resizeEvent (QResizeEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIntNumInput + + +class KDoubleNumInput : KNumInput +{ +%TypeHeaderCode +#include <knuminput.h> +%End + + +public: + KDoubleNumInput (QWidget* /TransferThis/ = 0, const char* = 0); + KDoubleNumInput (double, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_1_0 - ) + KDoubleNumInput (double, double, double, double = 0.01, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + KDoubleNumInput (KNumInput*, double, QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_1_0 - ) + KDoubleNumInput (KNumInput*, double, double, double, double = 0.02, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + double value () const; + QString suffix () const; + QString prefix () const; + int precision () const; + QString specialValueText () const; + void setRange (double, double, double = 1, bool = 1); + void setMinValue (double); + double minValue () const; + void setMaxValue (double); + double maxValue () const; + void setPrecision (int); + +%If ( KDE_3_1_0 - ) + double referencePoint () const; + double relativeValue () const; +%End + + void setSpecialValueText (const QString&); + virtual void setLabel (const QString&, int = AlignLeft |AlignTop ); + virtual QSize minimumSizeHint () const; + virtual bool eventFilter (QObject*, QEvent*); + +public slots: + void setValue (double); + +%If ( KDE_3_1_0 - ) + void setRelativeValue (double); + void setReferencePoint (double); +%End + + void setSuffix (const QString&); + void setPrefix (const QString&); + +signals: + void valueChanged (double); + +%If ( KDE_3_1_0 - ) + void relativeValueChanged (double); +%End + + +protected: + virtual void doLayout (); + void resizeEvent (QResizeEvent*); + virtual void resetEditBox (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDoubleNumInput + + +class KIntSpinBox : QSpinBox +{ +%TypeHeaderCode +#include <knuminput.h> +%End + + +public: + KIntSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); + KIntSpinBox (int, int, int, int, int = 10, QWidget* /TransferThis/ = 0, const char* = 0); + void setBase (int); + int base () const; + void setEditFocus (bool); + +protected: + virtual QString mapValueToText (int); +//ig virtual int mapTextToValue (bool*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KIntSpinBox + + +%If ( KDE_3_1_0 - ) + +class KDoubleSpinBox : QSpinBox +{ +%TypeHeaderCode +#include <knuminput.h> +%End + + +public: + KDoubleSpinBox (QWidget* /TransferThis/ = 0, const char* = 0); + KDoubleSpinBox (double, double, double, double, int = 2, QWidget* /TransferThis/ = 0, const char* = 0); + bool acceptLocalizedNumbers () const; + virtual void setAcceptLocalizedNumbers (bool); + void setRange (double, double, double = 0.01, int = 2); + int precision () const; + void setPrecision (int); + virtual void setPrecision (int, bool); + double value () const; + double minValue () const; + void setMinValue (double); + double maxValue () const; + void setMaxValue (double); + double lineStep () const; + void setLineStep (double); + void setValidator (const QValidator*); + +signals: + void valueChanged (double); + +public slots: + virtual void setValue (double); + +protected: + virtual QString mapValueToText (int); +//ig virtual int mapTextToValue (bool*); + +protected slots: + void slotValueChanged (int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KDoubleSpinBox + +%End + diff --git a/python/pykde/sip/kdeui/knumvalidator.sip b/python/pykde/sip/kdeui/knumvalidator.sip new file mode 100644 index 00000000..86ac7fdd --- /dev/null +++ b/python/pykde/sip/kdeui/knumvalidator.sip @@ -0,0 +1,89 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KIntValidator : QValidator +{ +%TypeHeaderCode +#include <knumvalidator.h> +%End + + +public: + KIntValidator (QWidget* /TransferThis/, int = 10, const char* = 0); + KIntValidator (int, int, QWidget* /TransferThis/, int = 10, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + virtual void setRange (int, int); + virtual void setBase (int); + virtual int bottom () const; + virtual int top () const; + virtual int base () const; + +}; // class KIntValidator + + +class KFloatValidator : QValidator +{ +%TypeHeaderCode +#include <knumvalidator.h> +%End + + +public: + KFloatValidator (QWidget* /TransferThis/, const char* = 0); + KFloatValidator (double, double, QWidget* /TransferThis/, const char* = 0); + KFloatValidator (double, double, bool, QWidget* /TransferThis/, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + virtual void setRange (double, double); + virtual double bottom () const; + virtual double top () const; + void setAcceptLocalizedNumbers (bool); + bool acceptLocalizedNumbers () const; + +}; // class KFloatValidator + + +%If ( KDE_3_1_0 - ) + +class KDoubleValidator : QDoubleValidator +{ +%TypeHeaderCode +#include <knumvalidator.h> +%End + + +public: + KDoubleValidator (QObject* /TransferThis/, const char* = 0); + KDoubleValidator (double, double, int, QObject* /TransferThis/, const char* = 0); + virtual QValidator::State validate (QString&, int&) const; + bool acceptLocalizedNumbers () const; + void setAcceptLocalizedNumbers (bool); + +}; // class KDoubleValidator + +%End + diff --git a/python/pykde/sip/kdeui/kpanelapplet.sip b/python/pykde/sip/kdeui/kpanelapplet.sip new file mode 100644 index 00000000..a7dff473 --- /dev/null +++ b/python/pykde/sip/kdeui/kpanelapplet.sip @@ -0,0 +1,140 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPanelApplet : QFrame +{ +%TypeHeaderCode +#include <kpanelapplet.h> +%End + + +public: + + enum Type + { + Normal, + Stretch + }; + + + enum Action + { + About, + Help, + Preferences, + ReportBug + }; + + + enum Position + { + pLeft, + pRight, + pTop, + pBottom + }; + + + enum Alignment + { + LeftTop, + Center, + RightBottom + }; + + + enum Direction + { + Up, + Down, + Left, + Right + }; + + KPanelApplet (const QString&, KPanelApplet::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + virtual int widthForHeight (int) const; + virtual int heightForWidth (int) const; + KConfig* config () const; + +%If ( KDE_3_2_0 - ) + KSharedConfig::Ptr sharedConfig () const; +%End + + Type type () const; + int actions () const; + virtual void action (KPanelApplet::Action); + +%If ( KDE_3_2_0 - ) + const QPopupMenu* customMenu () const; +%End + + void setPosition (KPanelApplet::Position); + void setAlignment (KPanelApplet::Alignment); + +signals: + void updateLayout (); + void requestFocus (); + +%If ( KDE_3_4_0 - ) + void requestFocus (bool); +%End + + +protected: + virtual void about (); + virtual void help (); + virtual void preferences (); + virtual void reportBug (); + Orientation orientation () const; + KPanelApplet::Position position () const; + KPanelApplet::Alignment alignment () const; + virtual void positionChange (KPanelApplet::Position); + virtual void alignmentChange (KPanelApplet::Alignment); + +%If ( KDE_3_2_0 - ) + void setCustomMenu (const QPopupMenu*); + +%If ( KDE_3_4_0 - ) + void watchForFocus (QWidget*, bool = 1); + void needsFocus (bool); +%End + +%End + + virtual void orientationChange (Orientation); + Direction popupDirection (); + virtual void popupDirectionChange (KPanelApplet::Direction); + +%If ( KDE_3_4_0 - ) + bool eventFilter (QObject*, QEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPanelApplet + diff --git a/python/pykde/sip/kdeui/kpanelappmenu.sip b/python/pykde/sip/kdeui/kpanelappmenu.sip new file mode 100644 index 00000000..fedda655 --- /dev/null +++ b/python/pykde/sip/kdeui/kpanelappmenu.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPanelAppMenu : QObject, DCOPObject +{ +%TypeHeaderCode +#include <kpanelappmenu.h> +%End + + +public: + KPanelAppMenu (const QString&, QObject* /TransferThis/ = 0, const char* = 0); + KPanelAppMenu (const QPixmap&, const QString&, QObject* /TransferThis/, const char*); + KPanelAppMenu (QObject* /TransferThis/, const char*); + int insertItem (const QString&, int = -1); + int insertItem (const QPixmap&, const QString&, int = -1); + KPanelAppMenu* insertMenu (const QPixmap&, const QString&, int = -1); + void clear (); + bool process (const QCString&, const QByteArray&, QCString&, QByteArray&); + +signals: + void activated (int); + +protected: + void init (const QPixmap&, const QString&); + +}; // class KPanelAppMenu + diff --git a/python/pykde/sip/kdeui/kpanelextension.sip b/python/pykde/sip/kdeui/kpanelextension.sip new file mode 100644 index 00000000..553b8148 --- /dev/null +++ b/python/pykde/sip/kdeui/kpanelextension.sip @@ -0,0 +1,159 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPanelExtension : QFrame +{ +%TypeHeaderCode +#include <kpanelextension.h> +%End + + +public: + + enum Type + { + Normal, + Stretch + }; + + + enum Action + { + About, + Help, + Preferences, + ReportBug + }; + + +%If ( KDE_3_4_0 - ) + + enum Position + { + Left, + Right, + Top, + Bottom, + Floating + }; + +%End + + + enum Alignment + { + LeftTop, + Center, + RightBottom + }; + + +%If ( KDE_3_1_0 - ) + + enum Size + { + SizeTiny, + SizeSmall, + SizeNormal, + SizeLarge, + SizeCustom + }; + +%End + + KPanelExtension (const QString&, KPanelExtension::Type = Normal , int = 0, QWidget* /TransferThis/ = 0, const char* = 0); + virtual QSize sizeHint (KPanelExtension::Position, QSize) const; + KConfig* config () const; + Type type () const; + int actions () const; + virtual void action (KPanelExtension::Action); + virtual Position preferedPosition () const; + void setPosition (KPanelExtension::Position); + void setAlignment (KPanelExtension::Alignment); + +%If ( KDE_3_1_0 - ) + void setSize (KPanelExtension::Size, int); + KPanelExtension::Size sizeSetting () const; + int customSize () const; + +%If ( KDE_3_4_0 - ) + QPopupMenu* customMenu () const; + bool reserveStrut () const; +%End + +%End + + +signals: + void updateLayout (); + +%If ( KDE_3_4_0 - ) + void maintainFocus (bool); +%End + + +protected: + virtual void about (); + virtual void help (); + virtual void preferences (); + virtual void reportBug (); + Position position () const; + KPanelExtension::Alignment alignment () const; + Orientation orientation (); + +%If ( KDE_3_1_0 - ) + int sizeInPixels () const; +%End + + virtual void positionChange (KPanelExtension::Position); + virtual void alignmentChange (KPanelExtension::Alignment); + +%If ( KDE_3_4_0 - ) + void setCustomMenu (QPopupMenu*); + void setReserveStrut (bool); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_4_0 ) + + enum Position + { + Left, + Right, + Top, + Bottom + }; + +%End + + +}; // class KPanelExtension + diff --git a/python/pykde/sip/kdeui/kpanelmenu.sip b/python/pykde/sip/kdeui/kpanelmenu.sip new file mode 100644 index 00000000..6315bbe0 --- /dev/null +++ b/python/pykde/sip/kdeui/kpanelmenu.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPanelMenu : KPopupMenu +{ +%TypeHeaderCode +#include <kpanelmenu.h> +%End + + +public: + KPanelMenu (QWidget* /TransferThis/ = 0, const char* = 0); + KPanelMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + const QString& path () const; + void setPath (const QString&); + bool initialized () const; + void setInitialized (bool); + void disableAutoClear (); + +public slots: + void reinitialize (); + +%If ( KDE_3_1_0 - ) + void deinitialize (); +%End + + +protected slots: + virtual void slotAboutToShow (); + virtual void slotExec (int) = 0; + virtual void initialize () = 0; + void slotClear (); + +protected: + virtual void hideEvent (QHideEvent*); + void init (const QString& = QString ::null ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPanelMenu + diff --git a/python/pykde/sip/kdeui/kpassdlg.sip b/python/pykde/sip/kdeui/kpassdlg.sip new file mode 100644 index 00000000..f52e1c1e --- /dev/null +++ b/python/pykde/sip/kdeui/kpassdlg.sip @@ -0,0 +1,138 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPasswordEdit : QLineEdit +{ +%TypeHeaderCode +#include <kpassdlg.h> +%End + + +public: + + enum EchoModes + { + OneStar, + ThreeStars, + NoEcho + }; + + KPasswordEdit (QWidget* /TransferThis/ = 0, const char* = 0); + KPasswordEdit (EchoMode, QWidget* /TransferThis/, const char*); + +%If ( KDE_3_2_0 - ) + KPasswordEdit (KPasswordEdit::EchoModes, QWidget* /TransferThis/, const char*); +%End + + KPasswordEdit (QWidget* /TransferThis/, const char*, int); + const char* password (); + void erase (); +//ig const int PassLen; + +%If ( KDE_3_4_0 - ) + void setMaxPasswordLength (int); + int maxPasswordLength () const; +%End + + +public slots: + +%If ( KDE_3_1_2 - ) + virtual void insert (const QString&); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + virtual void focusInEvent (QFocusEvent*); + virtual bool event (QEvent*); + +}; // class KPasswordEdit + + +class KPasswordDialog : KDialogBase +{ +%TypeHeaderCode +#include <kpassdlg.h> +%End + + +public: + + enum Types + { + Password, + NewPassword + }; + + KPasswordDialog (KPasswordDialog::Types, bool, int, QWidget* /TransferThis/ = 0, const char* = 0); + KPasswordDialog (int, QString, bool = 0, int = 0); + +%If ( KDE_3_3_0 - ) + KPasswordDialog (KPasswordDialog::Types, bool, int, const QString&, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + void setPrompt (QString); + QString prompt () const; + void addLine (QString, QString); + +%If ( KDE_3_4_0 - ) + void setAllowEmptyPasswords (bool); + bool allowEmptyPasswords () const; + void setMinimumPasswordLength (int); + int minimumPasswordLength () const; + void setMaximumPasswordLength (int); + int maximumPasswordLength () const; + void setReasonablePasswordLength (int); + int reasonablePasswordLength () const; + void setPasswordStrengthWarningLevel (int); + int passwordStrengthWarningLevel () const; +%End + + const char* password () const; + +%If ( KDE_3_3_0 - ) + void clearPassword (); +%End + + bool keep () const; + static int getPassword (QCString&, QString, int* = 0); + static int getNewPassword (QCString&, QString); + static void disableCoreDumps (); + +protected slots: + void slotOk (); + void slotCancel (); + void slotKeep (bool); + +protected: + virtual bool checkPassword (const char*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPasswordDialog + diff --git a/python/pykde/sip/kdeui/kpassivepopup.sip b/python/pykde/sip/kdeui/kpassivepopup.sip new file mode 100644 index 00000000..0d2918f3 --- /dev/null +++ b/python/pykde/sip/kdeui/kpassivepopup.sip @@ -0,0 +1,112 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KPassivePopup : QFrame +{ +%TypeHeaderCode +#include <kpassivepopup.h> +%End + + +public: + +%If ( KDE_3_5_0 - ) + + enum PopupStyle + { + Boxed, + Balloon, + CustomStyle + }; + +%End + + KPassivePopup (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KPassivePopup (WId, const char* = 0, WFlags = 0); + +%If ( KDE_3_5_0 - ) + KPassivePopup (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KPassivePopup (int, WId /TransferThis/, const char* = 0, WFlags = 0); +%End + + void setView (QWidget*); + void setView (const QString&, const QString& = QString ::null ); + virtual void setView (const QString&, const QString&, const QPixmap&); + QVBox* standardView (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/ = 0); + QWidget* view () const; + int timeout () const; + virtual void setAutoDelete (bool); + bool autoDelete () const; + +%If ( KDE_3_5_0 - ) + void setAnchor (const QPoint&); +%End + + static KPassivePopup* message (const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (const QString&, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); + static KPassivePopup* message (const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); + +%If ( KDE_3_5_0 - ) + static KPassivePopup* message (int, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (int, const QString&, const QString&, QWidget* /Transfer/, const char* = 0); + static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, QWidget* /Transfer/, const char* = 0, int = -1); + static KPassivePopup* message (int, const QString&, const QString&, const QPixmap&, WId, const char* = 0, int = -1); +%End + + +public slots: + void setTimeout (int); + virtual void show (); + +%If ( KDE_3_5_0 - ) + void show (const QPoint&); +%End + + +signals: + void clicked (); + void clicked (QPoint); + +protected: + virtual void positionSelf (); + virtual void hideEvent (QHideEvent*); + void moveNear (QRect); + virtual void mouseReleaseEvent (QMouseEvent*); + QRect defaultArea () const; + +%If ( KDE_3_5_0 - ) + void updateMask (); + virtual void paintEvent (QPaintEvent*); +%End + + +}; // class KPassivePopup + +%End + diff --git a/python/pykde/sip/kdeui/kpixmapio.sip b/python/pykde/sip/kdeui/kpixmapio.sip new file mode 100644 index 00000000..874fc4fa --- /dev/null +++ b/python/pykde/sip/kdeui/kpixmapio.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPixmapIO +{ +%TypeHeaderCode +#include <kpixmapio.h> +%End + + +public: + KPixmapIO (); + QPixmap convertToPixmap (const QImage&); + QImage convertToImage (const QPixmap&); + void putImage (QPixmap*, int, int, const QImage*); + void putImage (QPixmap*, const QPoint&, const QImage*); + QImage getImage (const QPixmap*, int, int, int, int); + QImage getImage (const QPixmap*, const QRect&); + + enum ShmPolicies + { + ShmDontKeep, + ShmKeepAndGrow + }; + + void setShmPolicy (int); + void preAllocShm (int); + +}; // class KPixmapIO + diff --git a/python/pykde/sip/kdeui/kpixmapregionselectordialog.sip b/python/pykde/sip/kdeui/kpixmapregionselectordialog.sip new file mode 100644 index 00000000..b21875b1 --- /dev/null +++ b/python/pykde/sip/kdeui/kpixmapregionselectordialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_4_0 - ) + +class KPixmapRegionSelectorDialog : KDialogBase +{ +%TypeHeaderCode +#include <kpixmapregionselectordialog.h> +%End + + +public: + KPixmapRegionSelectorDialog (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + KPixmapRegionSelectorWidget* pixmapRegionSelectorWidget () const; + static QRect getSelectedRegion (const QPixmap&, QWidget* /Transfer/ = 0); + static QRect getSelectedRegion (const QPixmap&, int, int, QWidget* /Transfer/ = 0); + static QImage getSelectedImage (const QPixmap&, QWidget* /Transfer/ = 0); + static QImage getSelectedImage (const QPixmap&, int, int, QWidget* /Transfer/ = 0); + +protected: + +}; // class KPixmapRegionSelectorDialog + +%End + diff --git a/python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip b/python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip new file mode 100644 index 00000000..07559a80 --- /dev/null +++ b/python/pykde/sip/kdeui/kpixmapregionselectorwidget.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_4_0 - ) + +class KPixmapRegionSelectorWidget : QWidget +{ +%TypeHeaderCode +#include <kpixmapregionselectorwidget.h> +%End + + +public: + KPixmapRegionSelectorWidget (QWidget* /TransferThis/ = 0, const char* = 0); + void setPixmap (const QPixmap&); + QPixmap pixmap () const; + void setSelectedRegion (const QRect&); + QRect selectedRegion () const; + QRect unzoomedSelectedRegion () const; + void resetSelection (); + QImage selectedImage () const; + void setSelectionAspectRatio (int, int); + void setFreeSelectionAspectRatio (); + void setMaximumWidgetSize (int, int); + void rotate (KImageEffect::RotateDirection); + +public slots: + void rotateClockwise (); + void rotateCounterclockwise (); + +protected: + virtual KPopupMenu* createPopupMenu (); + +}; // class KPixmapRegionSelectorWidget + +%End + diff --git a/python/pykde/sip/kdeui/kpopupmenu.sip b/python/pykde/sip/kdeui/kpopupmenu.sip new file mode 100644 index 00000000..139b6915 --- /dev/null +++ b/python/pykde/sip/kdeui/kpopupmenu.sip @@ -0,0 +1,149 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPopupTitle : QWidget +{ +%TypeHeaderCode +#include <kpopupmenu.h> +%End + + +public: + KPopupTitle (QWidget* /TransferThis/ = 0, const char* = 0); + KPopupTitle (KPixmapEffect::GradientType, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + KPopupTitle (const KPixmap&, const QColor&, const QColor&, QWidget* /TransferThis/ = 0, const char* = 0); + void setTitle (const QString&, const QPixmap* = 0); + QString title (); + QPixmap icon (); + QSize sizeHint () const; + +public slots: + +%If ( KDE_3_1_0 - ) + void setText (const QString&); + void setIcon (const QPixmap&); +%End + + +protected: + +%If ( KDE_3_2_0 - ) + void calcSize (); +%End + + void paintEvent (QPaintEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPopupTitle + + +class KPopupMenu : QPopupMenu +{ +%TypeHeaderCode +#include <kpopupmenu.h> +%End + + +public: + KPopupMenu (QWidget* /TransferThis/ = 0, const char* = 0); + int insertTitle (const QString&, int = -1, int = -1); + int insertTitle (const QPixmap&, const QString&, int = -1, int = -1); + void changeTitle (int, const QString&); + void changeTitle (int, const QPixmap&, const QString&); + QString title (int = -1); + QPixmap titlePixmap (int); + +%If ( KDE_3_1_0 - ) + void setKeyboardShortcutsEnabled (bool); + void setKeyboardShortcutsExecute (bool); +%End + + KPopupMenu (const QString&, QWidget* /TransferThis/ = 0, const char* = 0); + void setTitle (const QString&); + +%If ( KDE_3_2_0 - ) + QPopupMenu* contextMenu (); + void hideContextMenu (); + static KPopupMenu* contextMenuFocus (); + static int contextMenuFocusItem (); + +%If ( KDE_3_4_0 - ) + virtual void activateItemAt (int); + Qt::ButtonState state () const; +%End + +%End + + +signals: + +%If ( KDE_3_2_0 - ) + void aboutToShowContextMenu (KPopupMenu*, int, QPopupMenu*); +%End + + +protected: + +%If ( KDE_3_1_0 - ) + virtual void closeEvent (QCloseEvent*); + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_4_0 - ) + virtual void mouseReleaseEvent (QMouseEvent*); +%End + + +%If ( KDE_3_2_0 - ) + virtual void mousePressEvent (QMouseEvent*); + virtual bool focusNextPrevChild (bool); + virtual void contextMenuEvent (QContextMenuEvent*); + virtual void hideEvent (QHideEvent*); +%End + +%End + +//igx virtual void virtual_hook (int, void*); + +protected slots: + +%If ( KDE_3_1_0 - ) + QString underlineText (const QString&, uint); + void resetKeyboardVars (bool = 0); + +%If ( KDE_3_2_0 - ) + void itemHighlighted (int); + void showCtxMenu (QPoint); + void ctxMenuHiding (); + void ctxMenuHideShowingMenu (); +%End + +%End + + +}; // class KPopupMenu + diff --git a/python/pykde/sip/kdeui/kprogress.sip b/python/pykde/sip/kdeui/kprogress.sip new file mode 100644 index 00000000..4336a3ea --- /dev/null +++ b/python/pykde/sip/kdeui/kprogress.sip @@ -0,0 +1,102 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KProgress : QProgressBar +{ +%TypeHeaderCode +#include <kprogress.h> +%End + + +public: + KProgress (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KProgress (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setTextEnabled (bool); + int value () const; + bool textEnabled () const; + QString format () const; + void setRange (int, int); + int maxValue (); + +public slots: + void setFormat (const QString&); + void setTotalSteps (int); + virtual void setProgress (int); + void setValue (int); + virtual void advance (int); + +signals: + void percentageChanged (int); + +protected: + virtual bool setIndicator (QString&, int, int); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProgress + + +class KProgressDialog : KDialogBase +{ +%TypeHeaderCode +#include <kprogress.h> +%End + + +public: + KProgressDialog (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null , const QString& = QString ::null , bool = 0); + KProgress* progressBar (); + void setLabel (const QString&); + QString labelText (); + void setAllowCancel (bool); + bool allowCancel (); + void showCancelButton (bool); + void setAutoClose (bool); + bool autoClose (); + void setAutoReset (bool); + bool autoReset (); + bool wasCancelled (); + void setButtonText (const QString&); + QString buttonText (); + void setMinimumDuration (int); + int minimumDuration (); + +%If ( KDE_3_5_3 - ) + virtual void show (); +%End + + +protected slots: + void slotAutoShow (); + void slotAutoActions (int); + void slotCancel (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KProgressDialog + diff --git a/python/pykde/sip/kdeui/kpushbutton.sip b/python/pykde/sip/kdeui/kpushbutton.sip new file mode 100644 index 00000000..0080bbb2 --- /dev/null +++ b/python/pykde/sip/kdeui/kpushbutton.sip @@ -0,0 +1,67 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KPushButton : QPushButton +{ +%TypeHeaderCode +#include <kpushbutton.h> +%End + + +public: + KPushButton (QWidget* /TransferThis/, const char* = 0); + KPushButton (const QString&, QWidget* /TransferThis/, const char* = 0); + KPushButton (const QIconSet&, const QString&, QWidget* /TransferThis/, const char* = 0); + KPushButton (const KGuiItem&, QWidget* /TransferThis/, const char* = 0); + void setDragEnabled (bool); + bool isDragEnabled () const; + void setGuiItem (const KGuiItem&); + +%If ( KDE_3_4_0 - ) + void setGuiItem (KStdGuiItem::StdItem); + KStdGuiItem::StdItem guiItem () const; + void setGuiItm (int); + int guiItm () const; +%End + + +%If ( KDE_3_2_0 - ) + void setIconSet (const QIconSet&); + void setText (const QString&); +%End + + +protected: + virtual QDragObject* dragObject (); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void startDrag (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KPushButton + diff --git a/python/pykde/sip/kdeui/krestrictedline.sip b/python/pykde/sip/kdeui/krestrictedline.sip new file mode 100644 index 00000000..4158745f --- /dev/null +++ b/python/pykde/sip/kdeui/krestrictedline.sip @@ -0,0 +1,49 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KRestrictedLine : KLineEdit +{ +%TypeHeaderCode +#include <krestrictedline.h> +%End + + +public: + KRestrictedLine (QWidget* /TransferThis/ = 0, const char* = 0, const QString& = QString ::null ); + void setValidChars (const QString&); + QString validChars () const; + +signals: + void invalidChar (int); + +protected: + void keyPressEvent (QKeyEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRestrictedLine + diff --git a/python/pykde/sip/kdeui/krootpixmap.sip b/python/pykde/sip/kdeui/krootpixmap.sip new file mode 100644 index 00000000..a69c3f8b --- /dev/null +++ b/python/pykde/sip/kdeui/krootpixmap.sip @@ -0,0 +1,71 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KRootPixmap : QObject +{ +%TypeHeaderCode +#include <krootpixmap.h> +%End + + +public: + KRootPixmap (QWidget*, const char* = 0); + KRootPixmap (QWidget*, QObject* /TransferThis/, const char* = 0); + bool isAvailable () const; + bool isActive () const; + int currentDesktop () const; + bool customPainting () const; + bool checkAvailable (bool); + +%If ( KDE_3_2_0 - ) + const QColor& color () const; + double opacity () const; +%End + + +public slots: + virtual void start (); + virtual void stop (); + void setFadeEffect (double, const QColor&); + void repaint (bool); + void repaint (); + void setCustomPainting (bool); + void enableExports (); + +%If ( KDE_3_2_0 - ) +//ig static QString pixmapName (int); +%End + + +signals: + void backgroundUpdated (const QPixmap&); + +protected: + virtual bool eventFilter (QObject*, QEvent*); +//ig virtual void updateBackground (KSharedPixmap*); + +}; // class KRootPixmap + diff --git a/python/pykde/sip/kdeui/kruler.sip b/python/pykde/sip/kdeui/kruler.sip new file mode 100644 index 00000000..a7ea547f --- /dev/null +++ b/python/pykde/sip/kdeui/kruler.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KRuler : QFrame +{ +%TypeHeaderCode +#include <kruler.h> +%End + + +public: + + enum MetricStyle + { + Custom, + Pixel, + Inch, + Millimetres, + Centimetres, + Metres + }; + + KRuler (QWidget* /TransferThis/ = 0, const char* = 0); + KRuler (Orientation, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KRuler (Orientation, int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + void setRange (int, int); + void setValue (int); + int value () const; + void setTinyMarkDistance (int); + int tinyMarkDistance () const; + void setLittleMarkDistance (int); + int littleMarkDistance () const; + void setMediumMarkDistance (int); + int mediumMarkDistance () const; + void setBigMarkDistance (int); + int bigMarkDistance () const; + void setShowTinyMarks (bool); + bool showTinyMarks () const; + void setShowLittleMarks (bool); + bool showLittleMarks () const; + void setShowMediumMarks (bool); + bool showMediumMarks () const; + void setShowBigMarks (bool); + bool showBigMarks () const; + void setShowEndMarks (bool); + bool showEndMarks () const; + void setShowPointer (bool); + bool showPointer () const; + void setValuePerLittleMark (int); + void setValuePerMediumMark (int); + void setValuePerBigMark (int); + void setShowEndLabel (bool); + bool showEndLabel () const; + void setEndLabel (const QString&); + QString endLabel () const; + void setRulerMetricStyle (KRuler::MetricStyle); + void setPixelPerMark (double); + double pixelPerMark () const; + void setLength (int); + int length () const; + void setLengthFixed (bool); + bool lengthFixed () const; + void slideUp (int = 1); + void slideDown (int = 1); + void setOffset (int); + int offset () const; + int endOffset () const; + +public slots: + void slotNewValue (int); + void slotNewOffset (int); + void slotEndOffset (int); + +protected: + virtual void drawContents (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KRuler + diff --git a/python/pykde/sip/kdeui/kscrollview.sip b/python/pykde/sip/kdeui/kscrollview.sip new file mode 100644 index 00000000..853e8cbf --- /dev/null +++ b/python/pykde/sip/kdeui/kscrollview.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_5_0 - ) + +class KScrollView : QScrollView +{ +%TypeHeaderCode +#include <kscrollview.h> +%End + + +public: + KScrollView (QWidget* /TransferThis/ = 0, const char* = 0, Qt::WFlags = 0); + +public slots: + void scrollBy (int, int); + +protected: + virtual void wheelEvent (QWheelEvent*); + void startScrolling (); + void stopScrolling (); + +protected slots: + void scrollTick (); + +}; // class KScrollView + +%End + diff --git a/python/pykde/sip/kdeui/kselect.sip b/python/pykde/sip/kdeui/kselect.sip new file mode 100644 index 00000000..0177514d --- /dev/null +++ b/python/pykde/sip/kdeui/kselect.sip @@ -0,0 +1,142 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KXYSelector : QWidget +{ +%TypeHeaderCode +#include <kselect.h> +%End + + +public: + KXYSelector (QWidget* /TransferThis/ = 0, const char* = 0); + void setValues (int, int); + +%If ( KDE_3_3_0 - ) + void setXValue (int); + void setYValue (int); +%End + + void setRange (int, int, int, int); + int xValue (); + int yValue (); + QRect contentsRect () const; + +signals: + void valueChanged (int, int); + +protected: + virtual void drawContents (QPainter*); + virtual void drawCursor (QPainter*, int, int); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void wheelEvent (QWheelEvent*); + void valuesFromPosition (int, int, int&, int&) const; +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXYSelector + + +class KSelector : QWidget, QRangeControl +{ +%TypeHeaderCode +#include <kselect.h> +%End + + +public: + KSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + Orientation orientation () const; + QRect contentsRect () const; + void setIndent (bool); + bool indent () const; + void setValue (int); + int value () const; + void setMinValue (int); + int minValue () const; + void setMaxValue (int); + int maxValue () const; + +signals: + void valueChanged (int); + +protected: + virtual void drawContents (QPainter*); + virtual void drawArrow (QPainter*, bool, const QPoint&); + virtual void valueChange (); + virtual void paintEvent (QPaintEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + +%If ( KDE_3_2_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSelector + + +class KGradientSelector : KSelector +{ +%TypeHeaderCode +#include <kselect.h> +%End + + +public: + KGradientSelector (QWidget* /TransferThis/ = 0, const char* = 0); + KGradientSelector (Orientation, QWidget* /TransferThis/ = 0, const char* = 0); + void setColors (const QColor&, const QColor&); + void setText (const QString&, const QString&); + void setFirstColor (const QColor&); + void setSecondColor (const QColor&); + void setFirstText (const QString&); + void setSecondText (const QString&); + const QColor firstColor () const; + const QColor secondColor () const; + const QString firstText () const; + const QString secondText () const; + +protected: + virtual void drawContents (QPainter*); + virtual QSize minimumSize () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KGradientSelector + diff --git a/python/pykde/sip/kdeui/kseparator.sip b/python/pykde/sip/kdeui/kseparator.sip new file mode 100644 index 00000000..c54f7c8c --- /dev/null +++ b/python/pykde/sip/kdeui/kseparator.sip @@ -0,0 +1,48 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KSeparator : QFrame +{ +%TypeHeaderCode +#include <kseparator.h> +%End + + +public: + KSeparator (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + KSeparator (int, QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + int orientation () const; + void setOrientation (int); + virtual QSize sizeHint () const; + +protected: + virtual void drawFrame (QPainter*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSeparator + diff --git a/python/pykde/sip/kdeui/ksharedpixmap.sip b/python/pykde/sip/kdeui/ksharedpixmap.sip new file mode 100644 index 00000000..85254ea7 --- /dev/null +++ b/python/pykde/sip/kdeui/ksharedpixmap.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_3_0 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KSharedPixmap : QWidget, KPixmap +{ +%TypeHeaderCode +#include <qwidget.h> +#include <qpaintdevice.h> +#include <qpixmap.h> +#include <kpixmap.h> +#include <ksharedpixmap.h> +%End + + +public: + KSharedPixmap (); + +%If ( KDE_3_1_2 - ) + bool loadFromShared (const QString&, const QRect& = QRect ()); + bool isAvailable (const QString&) const; +%End + + +signals: + void done (bool); + +protected: +//ig bool x11Event (XEvent*); + +public: + +%If ( - KDE_3_1_2 ) + bool loadFromShared (QString, QRect = QRect ()); + bool isAvailable (QString); +%End + + +}; // class KSharedPixmap + diff --git a/python/pykde/sip/kdeui/kshortcutdialog.sip b/python/pykde/sip/kdeui/kshortcutdialog.sip new file mode 100644 index 00000000..1713cab9 --- /dev/null +++ b/python/pykde/sip/kdeui/kshortcutdialog.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_4_0 - ) + +class KShortcutDialog : KDialogBase +{ +%TypeHeaderCode +#include <kshortcutdialog.h> +%End + + +public: + KShortcutDialog (const KShortcut&, bool, QWidget* /TransferThis/ = 0, const char* = 0); + void setShortcut (const KShortcut&); + const KShortcut& shortcut () const; + +protected slots: + void slotDetails (); + void slotSelectPrimary (); + void slotSelectAlternate (); + void slotClearShortcut (); + void slotClearPrimary (); + void slotClearAlternate (); + void slotMultiKeyMode (bool); + +}; // class KShortcutDialog + +%End + diff --git a/python/pykde/sip/kdeui/ksplashscreen.sip b/python/pykde/sip/kdeui/ksplashscreen.sip new file mode 100644 index 00000000..9e98b02e --- /dev/null +++ b/python/pykde/sip/kdeui/ksplashscreen.sip @@ -0,0 +1,42 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KSplashScreen : QSplashScreen +{ +%TypeHeaderCode +#include <ksplashscreen.h> +%End + + +public: + KSplashScreen (const QPixmap&, WFlags = 0); + +}; // class KSplashScreen + +%End + diff --git a/python/pykde/sip/kdeui/ksqueezedtextlabel.sip b/python/pykde/sip/kdeui/ksqueezedtextlabel.sip new file mode 100644 index 00000000..1c5d8a1b --- /dev/null +++ b/python/pykde/sip/kdeui/ksqueezedtextlabel.sip @@ -0,0 +1,60 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KSqueezedTextLabel : QLabel +{ +%TypeHeaderCode +#include <ksqueezedtextlabel.h> +%End + + +public: + KSqueezedTextLabel (QWidget* /TransferThis/, const char* = 0); + KSqueezedTextLabel (const QString&, QWidget* /TransferThis/, const char* = 0); + virtual QSize minimumSizeHint () const; + +%If ( KDE_3_3_0 - ) + virtual QSize sizeHint () const; + +%If ( KDE_3_4_0 - ) + virtual void setAlignment (int); +%End + +%End + + +public slots: + void setText (const QString&); + +protected: + void resizeEvent (QResizeEvent*); + void squeezeTextToLabel (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KSqueezedTextLabel + diff --git a/python/pykde/sip/kdeui/kstatusbar.sip b/python/pykde/sip/kdeui/kstatusbar.sip new file mode 100644 index 00000000..ca00f8bf --- /dev/null +++ b/python/pykde/sip/kdeui/kstatusbar.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KStatusBarLabel : QLabel +{ +%TypeHeaderCode +#include <kstatusbar.h> +%End + + +public: + KStatusBarLabel (const QString&, int, KStatusBar* /TransferThis/ = 0, const char* = 0); + +protected: + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); + +signals: + void itemPressed (int); + void itemReleased (int); + +}; // class KStatusBarLabel + + +class KStatusBar : QStatusBar +{ +%TypeHeaderCode +#include <kstatusbar.h> +%End + + +public: + + enum BarStatus + { + Toggle, + Show, + Hide + }; + + KStatusBar (QWidget* /TransferThis/ = 0, const char* = 0); + void insertItem (const QString&, int, int = 0, bool = 0); + void insertFixedItem (const QString&, int, bool = 0); + void removeItem (int); + +%If ( KDE_3_2_0 - ) + bool hasItem (int) const; +%End + + void changeItem (const QString&, int); + void setItemAlignment (int, int); + void setItemFixed (int, int = -1); + +signals: + void pressed (int); + void released (int); + +}; // class KStatusBar + diff --git a/python/pykde/sip/kdeui/kstdaction.sip b/python/pykde/sip/kdeui/kstdaction.sip new file mode 100644 index 00000000..6b63b446 --- /dev/null +++ b/python/pykde/sip/kdeui/kstdaction.sip @@ -0,0 +1,327 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +namespace KStdAction +{ + +%If ( KDE_3_2_0 - ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE, + TipofDay, + ConfigureNotifications, + FullScreen, + Clear, + PasteText +}; + +%End + +KAction* create (KStdAction::StdAction, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/); +const char* name (KStdAction::StdAction); + +%If ( KDE_3_1_0 - ) +QStringList stdNames (); +%End + +KAction* openNew (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* open (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KRecentFilesAction* openRecent (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* save (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* saveAs (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* revert (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* close (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* print (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0) /PyName=print_/; +KAction* printPreview (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* mail (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* quit (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* undo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* redo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* cut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* copy (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* paste (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_2_0 - ) +KAction* pasteText (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); +KAction* clear (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, const char* = 0); +%End + +KAction* selectAll (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* deselect (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* find (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* findNext (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* findPrev (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* replace (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* actualSize (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToWidth (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* fitToHeight (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoomIn (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoomOut (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* zoom (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* redisplay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* up (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* back (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* forward (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* home (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* prior (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* next (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* goTo (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* gotoPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* gotoLine (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* firstPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* lastPage (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* addBookmark (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* editBookmarks (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* spelling (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KToggleAction* showMenubar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KToggleAction* showToolbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KToggleToolBarAction* showToolbar (const char*, KActionCollection* /Transfer/, const char* = 0); +%End + +KToggleAction* showStatusbar (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_2_0 - ) +KToggleFullScreenAction* fullScreen (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection*, QWidget*, const char* = 0); +%End + +KAction* saveOptions (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* keyBindings (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* preferences (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* configureToolbars (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KAction* configureNotifications (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +%End + +KAction* help (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* helpContents (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* whatsThis (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - ) +KAction* tipOfDay (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +%End + +KAction* reportBug (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* aboutApp (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); +KAction* aboutKDE (SIP_RXOBJ_CON, SIP_SLOT_CON (), KActionCollection* /Transfer/, const char* = 0); + +%If ( KDE_3_1_0 - KDE_3_2_0 ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE, + TipofDay, + ConfigureNotifications +}; + +%End + + +%If ( - KDE_3_1_0 ) + +enum StdAction +{ + ActionNone, + New, + Open, + OpenRecent, + Save, + SaveAs, + Revert, + Close, + Print, + PrintPreview, + Mail, + Quit, + Undo, + Redo, + Cut, + Copy, + Paste, + SelectAll, + Deselect, + Find, + FindNext, + FindPrev, + Replace, + ActualSize, + FitToPage, + FitToWidth, + FitToHeight, + ZoomIn, + ZoomOut, + Zoom, + Redisplay, + Up, + Back, + Forward, + Home, + Prior, + Next, + Goto, + GotoPage, + GotoLine, + FirstPage, + LastPage, + AddBookmark, + EditBookmarks, + Spelling, + ShowMenubar, + ShowToolbar, + ShowStatusbar, + SaveOptions, + KeyBindings, + Preferences, + ConfigureToolbars, + Help, + HelpContents, + WhatsThis, + ReportBug, + AboutApp, + AboutKDE +}; + +%End + +}; // namespace KStdAction + diff --git a/python/pykde/sip/kdeui/kstdguiitem.sip b/python/pykde/sip/kdeui/kstdguiitem.sip new file mode 100644 index 00000000..d99cb017 --- /dev/null +++ b/python/pykde/sip/kdeui/kstdguiitem.sip @@ -0,0 +1,352 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KStdGuiItem +{ +%TypeHeaderCode +#include <kstdguiitem.h> +%End + + +public: + + enum BidiMode + { + UseRTL, + IgnoreRTL + }; + + +%If ( KDE_3_5_0 - ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert, + Configure, + Find, + Stop, + Add, + Remove, + Test, + Properties, + Overwrite + }; + +%End + + static KGuiItem guiItem (KStdGuiItem::StdItem); + static QString stdItem (KStdGuiItem::StdItem); + static KGuiItem ok (); + static KGuiItem cancel (); + static KGuiItem yes (); + static KGuiItem no (); + +%If ( KDE_3_3_0 - ) + static KGuiItem insert (); +%End + + static KGuiItem discard (); + static KGuiItem save (); + static KGuiItem help (); + static KGuiItem dontSave (); + static KGuiItem saveAs (); + static KGuiItem apply (); + static KGuiItem clear (); + static KGuiItem defaults (); + static KGuiItem close (); + static KGuiItem print () /PyName=print_/; + +%If ( KDE_3_4_0 - ) + static KGuiItem properties (); +%End + + +%If ( KDE_3_3_0 - ) + static KGuiItem reset (); + +%If ( KDE_3_5_0 - ) + static KGuiItem overwrite (); +%End + + static KGuiItem adminMode (); +%End + + static KGuiItem cont (); + +%If ( KDE_3_3_0 - ) + static KGuiItem del (); +%End + + +%If ( KDE_3_2_0 - ) + static KGuiItem open (); +%End + + static KGuiItem back (KStdGuiItem::BidiMode = IgnoreRTL ); + static KGuiItem forward (KStdGuiItem::BidiMode = IgnoreRTL ); + +%If ( KDE_3_4_0 - ) + static KGuiItem configure (); +%End + + static QPair<KGuiItem,KGuiItem> backAndForward (); + +%If ( KDE_3_2_0 - ) + static KGuiItem quit (); + +%If ( KDE_3_4_0 - ) + static KGuiItem find (); + static KGuiItem stop (); + static KGuiItem add (); + static KGuiItem remove (); + static KGuiItem test (); +%End + +%End + + +public: + +%If ( KDE_3_4_0 - KDE_3_5_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert, + Configure, + Find, + Stop, + Add, + Remove, + Test, + Properties + }; + +%End + + +public: + +%If ( KDE_3_3_0 - KDE_3_4_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit, + AdminMode, + Reset, + Delete, + Insert + }; + +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue, + Open, + Quit + }; + +%End + + +public: + +%If ( - KDE_3_2_0 ) + + enum StdItem + { + Ok, + Cancel, + Yes, + No, + Discard, + Save, + DontSave, + SaveAs, + Apply, + Clear, + Help, + Defaults, + Close, + Back, + Forward, + Print, + Continue + }; + +%End + + +}; // class KStdGuiItem + + + +%MappedType QPair<KGuiItem,KGuiItem> +//converts a Python tuple (KGuiItem,KGuiItem) +{ +%TypeHeaderCode +#include <kguiitem.h> +#include <sipkdeuiKGuiItem.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyTuple_New(0); + + // Create the tuple + PyObject *pytuple; + if ((pytuple = PyTuple_New(0)) == NULL) + return NULL; + + QPair<KGuiItem,KGuiItem> *cpp = (QPair<KGuiItem,KGuiItem> *)sipCpp; + PyObject *inst = NULL; + + // Get it. + KGuiItem g1 = (*cpp).first; + KGuiItem g2 = (*cpp).second; + PyObject *pyg1 = sipBuildResult (NULL, "N", new KGuiItem (g1), sipClass_KGuiItem); + PyObject *pyg2 = sipBuildResult (NULL, "N", new KGuiItem (g2), sipClass_KGuiItem); + if ((pyg1 == NULL) || (pyg2 == NULL) || ((inst = Py_BuildValue ("NN", pyg1, pyg2)) == NULL)) + { + Py_XDECREF (inst); + Py_XDECREF (pyg1); + Py_XDECREF (pyg2); + return NULL; + } + + return inst; +%End + + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyTuple_Check(sipPy); + + KGuiItem g1, g2; + int iserr = 0; + + PyObject *pyg1 = PyTuple_GET_ITEM (sipPy, 0); + PyObject *pyg2 = PyTuple_GET_ITEM (sipPy, 1); + g1 = *(KGuiItem *)sipForceConvertTo_KGuiItem (pyg1, &iserr); + g2 = *(KGuiItem *)sipForceConvertTo_KGuiItem (pyg2, &iserr); + + if (iserr) + { + *sipIsErr = 1; + return 0; + } + + + *sipCppPtr = new QPair<KGuiItem, KGuiItem> (g1, g2); + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kdeui/kstringvalidator.sip b/python/pykde/sip/kdeui/kstringvalidator.sip new file mode 100644 index 00000000..91a0f86f --- /dev/null +++ b/python/pykde/sip/kdeui/kstringvalidator.sip @@ -0,0 +1,63 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KStringListValidator : QValidator +{ +%TypeHeaderCode +#include <kstringvalidator.h> +%End + + +public: + KStringListValidator (const QStringList& = QStringList (), bool = 1, bool = 0, QObject* /TransferThis/ = 0, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + void setRejecting (bool); + bool isRejecting () const; + void setFixupEnabled (bool); + bool isFixupEnabled () const; + void setStringList (const QStringList&); + QStringList stringList () const; + +protected: + +}; // class KStringListValidator + + +class KMimeTypeValidator : QValidator +{ +%TypeHeaderCode +#include <kstringvalidator.h> +%End + + +public: + KMimeTypeValidator (QObject* /TransferThis/, const char* = 0); + virtual State validate (QString&, int&) const; + virtual void fixup (QString&) const; + +}; // class KMimeTypeValidator + diff --git a/python/pykde/sip/kdeui/ksystemtray.sip b/python/pykde/sip/kdeui/ksystemtray.sip new file mode 100644 index 00000000..af3569ea --- /dev/null +++ b/python/pykde/sip/kdeui/ksystemtray.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KSystemTray : QLabel +{ +%TypeHeaderCode +#include <ksystemtray.h> +%End + + +public: + KSystemTray (QWidget* /TransferThis/ = 0, const char* = 0); + +%If ( KDE_3_2_0 - ) + KPopupMenu* contextMenu () const; + KActionCollection* actionCollection (); + +%If ( KDE_3_4_0 - ) + virtual void setPixmap (const QPixmap&); + virtual void setCaption (const QString&); +%End + + static QPixmap loadIcon (const QString&, KInstance* = KGlobal ::instance ()); +%End + + +signals: + +%If ( KDE_3_1_0 - ) + void quitSelected (); +%End + + +public slots: + +%If ( KDE_3_3_0 - ) + void toggleActive (); + void setActive (); + void setInactive (); +%End + + +protected: + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); + virtual void contextMenuAboutToShow (KPopupMenu*); + void showEvent (QShowEvent*); + void enterEvent (QEvent*); + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + KPopupMenu* contextMenu (); +%End + + +}; // class KSystemTray + diff --git a/python/pykde/sip/kdeui/ktabbar.sip b/python/pykde/sip/kdeui/ktabbar.sip new file mode 100644 index 00000000..0a4a411d --- /dev/null +++ b/python/pykde/sip/kdeui/ktabbar.sip @@ -0,0 +1,98 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KTabBar : QTabBar +{ +%TypeHeaderCode +#include <ktabbar.h> +%End + + +public: + KTabBar (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setTabEnabled (int, bool); + const QColor& tabColor (int) const; + void setTabColor (int, const QColor&); + +%If ( KDE_3_3_0 - ) + virtual int insertTab (QTab*, int = -1); +%End + + virtual void removeTab (QTab*); + void setTabReorderingEnabled (bool); + bool isTabReorderingEnabled () const; + void setHoverCloseButton (bool); + bool hoverCloseButton () const; + void setHoverCloseButtonDelayed (bool); + bool hoverCloseButtonDelayed () const; + +%If ( KDE_3_3_0 - ) + void setTabCloseActivatePrevious (bool); + bool tabCloseActivatePrevious () const; +%End + + +signals: + void contextMenu (int, const QPoint&); + void mouseDoubleClick (int); + void mouseMiddleClick (int); + void initiateDrag (int); +//ig void testCanDecode (const QDragMoveEvent*, bool&); + void receivedDropEvent (int, QDropEvent*); + void moveTab (int, int); + void closeRequest (int); + +%If ( KDE_3_3_0 - ) + void wheelDelta (int); +%End + + +protected: + virtual void mouseDoubleClickEvent (QMouseEvent*); + virtual void mousePressEvent (QMouseEvent*); + virtual void mouseMoveEvent (QMouseEvent*); + virtual void mouseReleaseEvent (QMouseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void wheelEvent (QWheelEvent*); +%End + + virtual void dragMoveEvent (QDragMoveEvent*); + virtual void dropEvent (QDropEvent*); + virtual void paintLabel (QPainter*, const QRect&, QTab*, bool) const; + +protected slots: + virtual void closeButtonClicked (); + virtual void onLayoutChange (); + virtual void enableCloseButton (); + virtual void activateDragSwitchTab (); + +}; // class KTabBar + +%End + diff --git a/python/pykde/sip/kdeui/ktabctl.sip b/python/pykde/sip/kdeui/ktabctl.sip new file mode 100644 index 00000000..30cc63e6 --- /dev/null +++ b/python/pykde/sip/kdeui/ktabctl.sip @@ -0,0 +1,64 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KTabCtl : QWidget +{ +%TypeHeaderCode +#include <ktabctl.h> +%End + + +public: + KTabCtl (QWidget* /TransferThis/ = 0, const char* = 0); + void show (); + void setFont (const QFont&); + void setTabFont (const QFont&); + void addTab (QWidget*, const QString&); + bool isTabEnabled (const QString&); + void setTabEnabled (const QString&, bool); + void setBorder (bool); + void setShape (QTabBar::Shape); + virtual QSize sizeHint () const; + +protected: + void paintEvent (QPaintEvent*); + void resizeEvent (QResizeEvent*); + +signals: + void tabSelected (int); + +protected slots: + void showTab (int); + +protected: + void setSizes (); + QRect getChildRect () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTabCtl + diff --git a/python/pykde/sip/kdeui/ktabwidget.sip b/python/pykde/sip/kdeui/ktabwidget.sip new file mode 100644 index 00000000..92a8bd6b --- /dev/null +++ b/python/pykde/sip/kdeui/ktabwidget.sip @@ -0,0 +1,144 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KTabWidget : QTabWidget +{ +%TypeHeaderCode +#include <ktabwidget.h> +%End + + +public: + KTabWidget (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + void setTabColor (QWidget*, const QColor&); + QColor tabColor (QWidget*) const; + bool isTabReorderingEnabled () const; + bool hoverCloseButton () const; + bool hoverCloseButtonDelayed () const; + +%If ( KDE_3_3_0 - ) + bool tabCloseActivatePrevious () const; + +%If ( KDE_3_4_0 - ) + bool automaticResizeTabs () const; + void setTabBarHidden (bool); + bool isTabBarHidden () const; + virtual void insertTab (QWidget*, const QString&, int = -1); + virtual void insertTab (QWidget*, const QIconSet&, const QString&, int = -1); + virtual void insertTab (QWidget*, QTab*, int = -1); + void changeTab (QWidget*, const QString&); + void changeTab (QWidget*, const QIconSet&, const QString&); + QString label (int) const; + QString tabLabel (QWidget*) const; + void setTabLabel (QWidget*, const QString&); +%End + +%End + + +public slots: + virtual void moveTab (int, int); + +%If ( KDE_3_4_0 - ) + virtual void removePage (QWidget*); +%End + + void setTabReorderingEnabled (bool); + void setHoverCloseButton (bool); + void setHoverCloseButtonDelayed (bool); + +%If ( KDE_3_3_0 - ) + void setTabCloseActivatePrevious (bool); + +%If ( KDE_3_4_0 - ) + void setAutomaticResizeTabs (bool); +%End + +%End + + +signals: +//ig void testCanDecode (const QDragMoveEvent*, bool&); + void receivedDropEvent (QDropEvent*); + void receivedDropEvent (QWidget*, QDropEvent*); + void initiateDrag (QWidget*); +//ig void contextMenu (const QPoint&); + void contextMenu (QWidget*, const QPoint&); + void movedTab (int, int); + +%If ( KDE_3_3_0 - ) + void mouseDoubleClick (); +%End + + void mouseDoubleClick (QWidget*); + void mouseMiddleClick (); + void mouseMiddleClick (QWidget*); + void closeRequest (QWidget*); + +protected: + +%If ( KDE_3_3_0 - ) + virtual void mouseDoubleClickEvent (QMouseEvent*); +%End + + virtual void mousePressEvent (QMouseEvent*); + virtual void dragMoveEvent (QDragMoveEvent*); + virtual void dropEvent (QDropEvent*); + +%If ( KDE_3_4_0 - ) + uint tabBarWidthForMaxChars (uint); +%End + + +%If ( KDE_3_3_0 - ) + virtual void wheelEvent (QWheelEvent*); + +%If ( KDE_3_4_0 - ) + virtual void resizeEvent (QResizeEvent*); +%End + +%End + + +protected slots: +//ig virtual void receivedDropEvent (int, QDropEvent*); +//ig virtual void initiateDrag (int); +//ig virtual void contextMenu (int, const QPoint&); +//ig virtual void mouseDoubleClick (int); +//ig virtual void mouseMiddleClick (int); +//ig virtual void closeRequest (int); + +%If ( KDE_3_3_0 - ) + virtual void wheelDelta (int); +%End + + +}; // class KTabWidget + +%End + diff --git a/python/pykde/sip/kdeui/ktextbrowser.sip b/python/pykde/sip/kdeui/ktextbrowser.sip new file mode 100644 index 00000000..e1096a94 --- /dev/null +++ b/python/pykde/sip/kdeui/ktextbrowser.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KTextBrowser : QTextBrowser +{ +%TypeHeaderCode +#include <ktextbrowser.h> +%End + + +public: + KTextBrowser (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0); + void setNotifyClick (bool); + bool isNotifyClick () const; + +protected: + void setSource (const QString&); + virtual void keyPressEvent (QKeyEvent*); + virtual void viewportMouseMoveEvent (QMouseEvent*); + virtual void contentsWheelEvent (QWheelEvent*); + +%If ( KDE_3_3_0 - ) + virtual QPopupMenu* createPopupMenu (const QPoint&); +%End + + +signals: + void mailClick (const QString&, const QString&); + void urlClick (const QString&); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KTextBrowser + diff --git a/python/pykde/sip/kdeui/ktextedit.sip b/python/pykde/sip/kdeui/ktextedit.sip new file mode 100644 index 00000000..e876cd34 --- /dev/null +++ b/python/pykde/sip/kdeui/ktextedit.sip @@ -0,0 +1,83 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KTextEdit : QTextEdit +{ +%TypeHeaderCode +#include <ktextedit.h> +%End + + +public: + KTextEdit (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); + KTextEdit (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setReadOnly (bool); + +%If ( KDE_3_1_1 - ) + virtual void setPalette (const QPalette&); + +%If ( KDE_3_2_0 - ) + void setCheckSpellingEnabled (bool); + bool checkSpellingEnabled () const; + void highLightWord (uint, uint); +%End + +%End + + +public slots: + +%If ( KDE_3_2_0 - ) + void checkSpelling (); +%End + + +protected: + virtual void keyPressEvent (QKeyEvent*); + +%If ( KDE_3_2_0 - ) + virtual void focusInEvent (QFocusEvent*); +%End + + virtual void contentsWheelEvent (QWheelEvent*); + virtual void deleteWordBack (); + virtual void deleteWordForward (); + +%If ( KDE_3_2_0 - ) + virtual QPopupMenu* createPopupMenu (const QPoint&); + virtual QPopupMenu* createPopupMenu (); +%End + + +protected: +//ig virtual void virtual_hook (int, void*); + +}; // class KTextEdit + +%End + diff --git a/python/pykde/sip/kdeui/kthemebase.sip b/python/pykde/sip/kdeui/kthemebase.sip new file mode 100644 index 00000000..df501576 --- /dev/null +++ b/python/pykde/sip/kdeui/kthemebase.sip @@ -0,0 +1,258 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KThemePixmap : KPixmap +{ +%TypeHeaderCode +#include <kthemebase.h> +%End + + +public: + + enum BorderType + { + Top = 0, + Bottom, + Left, + Right, + TopLeft, + TopRight, + BottomLeft, + BottomRight + }; + + KThemePixmap (bool = 1); + KThemePixmap (const KThemePixmap&); + QPixmap* border (KThemePixmap::BorderType); + void setBorder (KThemePixmap::BorderType, const QPixmap&); + void updateAccessed (); + bool isOld (); + +protected: + +}; // class KThemePixmap + + +class KThemeCache : QObject +{ +%TypeHeaderCode +#include <kthemebase.h> +%End + + +public: + + enum ScaleHint + { + FullScale, + HorizontalScale, + VerticalScale + }; + + KThemeCache (int, QObject*/TransferThis/ = 0, const char* = 0); + bool insert (KThemePixmap*, KThemeCache::ScaleHint, int, bool = 0, bool = 0); + KThemePixmap* pixmap (int, int, int, bool = 0, bool = 0); + KThemePixmap* horizontalPixmap (int, int); + KThemePixmap* verticalPixmap (int, int); + +protected slots: + void flushTimeout (); + +protected: + +}; // class KThemeCache + + +class KThemeBase : KStyle +{ +%TypeHeaderCode +#include <kthemebase.h> +%End + + +public: + KThemeBase (const QString&); + + enum ScaleHint + { + FullScale, + HorizontalScale, + VerticalScale, + TileScale + }; + + + enum ArrowStyle + { + MotifArrow, + LargeArrow, + SmallArrow + }; + + + enum ShadeStyle + { + Motif, + Windows, + Next, + KDE + }; + + + enum SButton + { + SBBottomLeft, + SBBottomRight, + SBOpposite + }; + + + enum Gradient + { + GrNone, + GrHorizontal, + GrVertical, + GrDiagonal, + GrPyramid, + GrRectangle, + GrElliptic, + GrReverseBevel + }; + + + enum WidgetType + { + PushButton = 0, + ComboBox, + HScrollBarSlider, + VScrollBarSlider, + Bevel, + ToolButton, + ScrollButton, + HScrollDeco, + VScrollDeco, + ComboDeco, + MenuItem, + InactiveTab, + ArrowUp, + ArrowDown, + ArrowLeft, + ArrowRight, + PushButtonDown, + ComboBoxDown, + HScrollBarSliderDown, + VScrollBarSliderDown, + BevelDown, + ToolButtonDown, + ScrollButtonDown, + HScrollDecoDown, + VScrollDecoDown, + ComboDecoDown, + MenuItemDown, + ActiveTab, + SunkenArrowUp, + SunkenArrowDown, + SunkenArrowLeft, + SunkenArrowRight, + HScrollGroove, + VScrollGroove, + Slider, + SliderGroove, + IndicatorOn, + IndicatorOff, + ExIndicatorOn, + ExIndicatorOff, + HBarHandle, + VBarHandle, + ToolBar, + Splitter, + CheckMark, + MenuBar, + DisArrowUp, + DisArrowDown, + DisArrowLeft, + DisArrowRight, + ProgressBar, + ProgressBg, + MenuBarItem, + Background + }; + + ScaleHint scaleHint (KThemeBase::WidgetType) const; + Gradient gradientHint (KThemeBase::WidgetType) const; + const QColorGroup* colorGroup (const QColorGroup&, KThemeBase::WidgetType) const; + QBrush pixmapBrush (const QColorGroup&, QColorGroup::ColorRole, int, int, KThemeBase::WidgetType); + bool isPixmap (KThemeBase::WidgetType) const; + bool isColor (KThemeBase::WidgetType) const; + bool is3DFocus () const; + int focusOffset () const; + int borderWidth (KThemeBase::WidgetType) const; + int pixBorderWidth (KThemeBase::WidgetType) const; + KThemePixmap* borderPixmap (KThemeBase::WidgetType); + int highlightWidth (KThemeBase::WidgetType) const; + int decoWidth (KThemeBase::WidgetType) const; + int getSBExtent () const; + SButton scrollBarLayout () const; + ArrowStyle arrowType () const; + ShadeStyle shade () const; + int frameWidth () const; + int splitWidth () const; + int bevelContrast (KThemeBase::WidgetType) const; + int buttonXShift () const; + int buttonYShift () const; + int sliderButtonLength () const; + bool roundButton () const; + bool roundComboBox () const; + bool roundSlider () const; + bool activeTabLine () const; + bool inactiveTabLine () const; + KThemePixmap* uncached (KThemeBase::WidgetType) const; + virtual KThemePixmap* scalePixmap (int, int, KThemeBase::WidgetType); + static void applyConfigFile (const QString&); + +protected: + QImage* image (KThemeBase::WidgetType) const; + QColor* gradientHigh (KThemeBase::WidgetType) const; + QColor* gradientLow (KThemeBase::WidgetType) const; + void readConfig (Qt::GUIStyle = Qt::WindowsStyle); +//ig void readWidgetConfig (int, KConfig*, QString*, QString*, bool*); + void copyWidgetConfig (int, int, QString*, QString*); + QColorGroup* makeColorGroup (QColor&, QColor&, Qt::GUIStyle = Qt::WindowsStyle); + KThemePixmap* scale (int, int, KThemeBase::WidgetType); + KThemePixmap* scaleBorder (int, int, KThemeBase::WidgetType); + KThemePixmap* gradient (int, int, KThemeBase::WidgetType); + KThemePixmap* blend (KThemeBase::WidgetType); + void generateBorderPix (int); + void applyResourceGroup (KConfig*, int); + void applyMiscResourceGroup (KConfig*); + void readResourceGroup (int, QString*, QString*, bool*); + void readMiscResourceGroup (); + KThemePixmap* loadPixmap (QString&); + QImage* loadImage (QString&); + +}; // class KThemeBase + diff --git a/python/pykde/sip/kdeui/kthemestyle.sip b/python/pykde/sip/kdeui/kthemestyle.sip new file mode 100644 index 00000000..e55addc5 --- /dev/null +++ b/python/pykde/sip/kdeui/kthemestyle.sip @@ -0,0 +1,89 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KThemeStyle : KThemeBase +{ +%TypeHeaderCode +#include <kthemestyle.h> +%End + + +public: + KThemeStyle (const QString& = QString::null); + virtual void polish (QWidget*); + virtual void unPolish (QWidget*); + virtual void polish (QApplication*); + virtual void unPolish (QApplication*); + virtual void polish (QPalette&); + virtual void drawBaseButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, WidgetType = Bevel, const QBrush* = 0); + virtual void drawBaseMask (QPainter*, int, int, int, int, bool); + virtual void drawButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + virtual void drawBevelButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, const QBrush* = 0); + virtual void drawKToolBarButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 1, bool = 1, bool = 0, KToolButtonType = Icon, const QString& = QString::null, const QPixmap* = 0, QFont* = 0, QWidget* = 0); + void drawKBarHandle (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + void drawKToolBar (QPainter*, int, int, int, int, const QColorGroup&, KToolBarPos, QBrush* = 0); + virtual QRect buttonRect (int, int, int, int); + virtual void drawArrow (QPainter*, Qt::ArrowType, bool, int, int, int, int, const QColorGroup&, bool = 1, const QBrush* = 0); + virtual QSize exclusiveIndicatorSize () const; + virtual void drawExclusiveIndicator (QPainter*, int, int, int, int, const QColorGroup&, bool, bool = 0, bool = 1); + virtual void drawExclusiveIndicatorMask (QPainter*, int, int, int, int, bool); + virtual void drawIndicatorMask (QPainter*, int, int, int, int, int); + virtual void drawButtonMask (QPainter*, int, int, int, int); + virtual void drawComboButtonMask (QPainter*, int, int, int, int); + virtual QSize indicatorSize () const; + virtual void drawIndicator (QPainter*, int, int, int, int, const QColorGroup&, int, bool = 0, bool = 1); + virtual void drawComboButton (QPainter*, int, int, int, int, const QColorGroup&, bool = 0, bool = 0, bool = 1, const QBrush* = 0); + virtual void drawPushButton (QPushButton*, QPainter*); +//ig virtual void getButtonShift (int&, int&); + virtual int defaultFrameWidth () const; +//ig virtual void scrollBarMetrics (const QScrollBar*, int&, int&, int&, int&); + virtual void drawScrollBarControls (QPainter*, const QScrollBar*, int, uint, uint); + virtual ScrollControl scrollBarPointOver (const QScrollBar*, int, const QPoint&); + virtual int sliderLength () const; + virtual void drawSlider (QPainter*, int, int, int, int, const QColorGroup&, Orientation, bool, bool); + void drawSliderGroove (QPainter*, int, int, int, int, const QColorGroup&, QCOORD, Orientation); + virtual void drawSliderMask (QPainter*, int, int, int, int, Orientation, bool, bool); + virtual void drawScrollBarGroove (QPainter*, const QScrollBar*, bool, QRect, QColorGroup); + virtual void drawShade (QPainter*, int, int, int, int, const QColorGroup&, bool, bool, int, int, ShadeStyle); + virtual void drawPushButtonLabel (QPushButton*, QPainter*); + void drawKMenuBar (QPainter*, int, int, int, int, const QColorGroup&, bool, QBrush* = 0); +//ig virtual void drawKMenuItem (QPainter*, int, int, int, int, const QColorGroup&, bool, QMenuItem*, QBrush* = 0); + virtual int splitterWidth () const; + virtual void drawSplitter (QPainter*, int, int, int, int, const QColorGroup&, Orientation); + virtual void drawCheckMark (QPainter*, int, int, int, int, const QColorGroup&, bool, bool); +//ig virtual void drawPopupMenuItem (QPainter*, bool, int, int, QMenuItem*, const QPalette&, bool, bool, int, int, int, int); +//ig int popupMenuItemHeight (bool, QMenuItem*, const QFontMetrics&); + void drawFocusRect (QPainter*, const QRect&, const QColorGroup&, const QColor* = 0, bool = 0); + virtual void drawKProgressBlock (QPainter*, int, int, int, int, const QColorGroup&, QBrush*); + virtual void getKProgressBackground (const QColorGroup&, QBrush&); +//ig virtual void tabbarMetrics (const QTabBar*, int&, int&, int&); + virtual void drawTab (QPainter*, const QTabBar*, QTab*, bool); + virtual void drawTabMask (QPainter*, const QTabBar*, QTab*, bool); + +protected: + +}; // class KThemeStyle + diff --git a/python/pykde/sip/kdeui/ktimewidget.sip b/python/pykde/sip/kdeui/ktimewidget.sip new file mode 100644 index 00000000..ee5238cb --- /dev/null +++ b/python/pykde/sip/kdeui/ktimewidget.sip @@ -0,0 +1,50 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_2_0 - ) + +class KTimeWidget : QWidget +{ +%TypeHeaderCode +#include <ktimewidget.h> +%End + + +public: + KTimeWidget (QWidget* /TransferThis/ = 0, const char* = 0); + KTimeWidget (const QTime&, QWidget* /TransferThis/ = 0, const char* = 0); + QTime time () const; + +public slots: + void setTime (const QTime&); + +signals: + void valueChanged (const QTime&); + +}; // class KTimeWidget + +%End + diff --git a/python/pykde/sip/kdeui/ktimezonewidget.sip b/python/pykde/sip/kdeui/ktimezonewidget.sip new file mode 100644 index 00000000..12946a11 --- /dev/null +++ b/python/pykde/sip/kdeui/ktimezonewidget.sip @@ -0,0 +1,45 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_5_0 - ) + +class KTimezoneWidget : KListView +{ +%TypeHeaderCode +#include <ktimezonewidget.h> +%End + + +public: + KTimezoneWidget (QWidget* /TransferThis/ = 0, const char* = 0, KTimezones* = 0); + QStringList selection () const; + void setSelected (const QString&, bool); + static QString displayName (const KTimezone*); + +}; // class KTimezoneWidget + +%End + diff --git a/python/pykde/sip/kdeui/ktip.sip b/python/pykde/sip/kdeui/ktip.sip new file mode 100644 index 00000000..600b47c8 --- /dev/null +++ b/python/pykde/sip/kdeui/ktip.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KTipDatabase +{ +%TypeHeaderCode +#include <ktip.h> +%End + + +public: + KTipDatabase (const QString& = QString ::null ); + +%If ( KDE_3_2_0 - ) + KTipDatabase (const QStringList&); +%End + + QString tip () const; + void nextTip (); + void prevTip (); + +}; // class KTipDatabase + + +class KTipDialog : KDialog +{ +%TypeHeaderCode +#include <ktip.h> +%End + + +public: + +%If ( KDE_3_1_0 - ) + KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + static void showTip (QWidget* /Transfer/, const QString& = QString ::null , bool = 0); + +%If ( KDE_3_2_0 - ) + static void showMultiTip (QWidget* /Transfer/, const QStringList&, bool = 0); +%End + + static void showTip (const QString& = QString ::null , bool = 0); + static void setShowOnStart (bool); + +protected: + bool eventFilter (QObject*, QEvent*); +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_1_0 ) + KTipDialog (KTipDatabase*, QWidget* /TransferThis/ = 0, const char* = 0); +%End + + +}; // class KTipDialog + diff --git a/python/pykde/sip/kdeui/ktmainwindow.sip b/python/pykde/sip/kdeui/ktmainwindow.sip new file mode 100644 index 00000000..6ea57061 --- /dev/null +++ b/python/pykde/sip/kdeui/ktmainwindow.sip @@ -0,0 +1,53 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KTMainWindow : KMainWindow +{ +%TypeHeaderCode +#include <ktmainwindow.h> +%End + + +public: + KTMainWindow (const char* = 0, WFlags = WDestructiveClose); + void setView (QWidget*, bool = 0); + QWidget* view () const; + void enableStatusBar (KStatusBar::BarStatus = KStatusBar::Toggle); + void enableToolBar (KToolBar::BarStatus = KToolBar::Toggle, int = 0); + void setEnableToolBar (KToolBar::BarStatus = KToolBar::Toggle, const char* = "mainToolBar"); + int addToolBar (KToolBar*, int = -1); + KToolBar* toolBar (int = 0); + void setMenu (KMenuBar*); + void setStatusBar (KStatusBar*); + bool hasMenuBar (); + bool hasStatusBar (); + bool hasToolBar (int = 0); + +protected slots: + virtual void updateRects (); + +}; // class KTMainWindow + diff --git a/python/pykde/sip/kdeui/ktoolbar.sip b/python/pykde/sip/kdeui/ktoolbar.sip new file mode 100644 index 00000000..7d2b8571 --- /dev/null +++ b/python/pykde/sip/kdeui/ktoolbar.sip @@ -0,0 +1,263 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KToolBarSeparator : QFrame +{ +%TypeHeaderCode +#include <ktoolbar.h> +%End + + +public: + KToolBarSeparator (Orientation, bool, QToolBar* /TransferThis/, const char* = 0); + QSize sizeHint () const; + Orientation orientation () const; + QSizePolicy sizePolicy () const; + bool showLine () const; + +public slots: + void setOrientation (Orientation); + +protected: + void styleChange (QStyle&); + +%If ( KDE_3_2_0 - ) + void drawContents (QPainter*); +%End + + +}; // class KToolBarSeparator + + +class KToolBar : QToolBar +{ +%TypeHeaderCode +#include <ktoolbar.h> +%End + + +public: + + enum IconText + { + IconOnly, + IconTextRight, + TextOnly, + IconTextBottom + }; + + + enum BarStatus + { + Toggle, + Show, + Hide + }; + + + enum BarPosition + { + Unmanaged, + Floating, + Top, + Bottom, + Right, + Left, + Flat + }; + + KToolBar (QWidget* /TransferThis/, const char* = 0, bool = 0, bool = 1); +//ig KToolBar (QMainWindow*, QMainWindow::ToolBarDock, bool = 0, const char* = 0, bool = 0, bool = 1); + KToolBar (QMainWindow*, QWidget*, bool = 0, const char* = 0, bool = 0, bool = 1); + int insertButton (const QString&, int, bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); + int insertButton (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1, KInstance* = KGlobal ::instance ()); + int insertButton (const QPixmap&, int, bool = 1, const QString& = QString ::null , int = -1); + int insertButton (const QPixmap&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = -1); + int insertButton (const QString&, int, QPopupMenu*, bool, const QString&, int = -1); + int insertButton (const QPixmap&, int, QPopupMenu*, bool, const QString&, int = -1); + int insertLined (const QString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1); + int insertCombo (const QStringList&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); + +%If ( KDE_3_2_0 - ) + int insertCombo (const QString&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); +%End + + int insertSeparator (int, int); + int insertLineSeparator (int, int); + int insertWidget (int, int, QWidget*, int = -1); + int insertAnimatedWidget (int, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const QString&, int = -1); + KAnimWidget* animatedWidget (int); + void addConnection (int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int)); + void setItemEnabled (int, bool); + void setButtonIcon (int, const QString&); + void setButtonPixmap (int, const QPixmap&); + void setButtonIconSet (int, const QIconSet&); + void setDelayedPopup (int, QPopupMenu*, bool = 0); + void setAutoRepeat (int, bool = 1); + void setToggle (int, bool = 1); + void toggleButton (int); + void setButton (int, bool); + bool isButtonOn (int); + void setLinedText (int, const QString&); + QString getLinedText (int); + void insertComboItem (int, const QString&, int); + void insertComboList (int, const QStringList&, int); + void removeComboItem (int, int); + void setCurrentComboItem (int, int); + void changeComboItem (int, const QString&, int = -1); + void clearCombo (int); + QString getComboItem (int, int = -1); + KComboBox* getCombo (int); + KLineEdit* getLined (int); + KToolBarButton* getButton (int); + void alignItemRight (int, bool = 1); + QWidget* getWidget (int); + void setItemAutoSized (int, bool = 1); + void clear (); + void removeItem (int); + +%If ( KDE_3_2_0 - ) + void removeItemDelayed (int); +%End + + void hideItem (int); + void showItem (int); + +%If ( KDE_3_2_0 - ) + int itemIndex (int); + int idAt (int); +%End + + void setFullSize (bool = 1); + bool fullSize () const; + void enableMoving (bool = 1); + void setBarPos (KToolBar::BarPosition); + BarPosition barPos () const; + bool enable (KToolBar::BarStatus); + void setMaxHeight (int); + int maxHeight (); + void setMaxWidth (int); + int maxWidth (); + void setTitle (const QString&); + void enableFloating (bool); + void setIconText (KToolBar::IconText); + void setIconText (KToolBar::IconText, bool); + IconText iconText () const; + void setIconSize (int); + void setIconSize (int, bool); + int iconSize () const; + +%If ( KDE_3_4_0 - ) + int iconSizeDefault () const; +%End + + void setEnableContextMenu (bool = 1); + bool contextMenuEnabled () const; + void setItemNoStyle (int, bool = 1); + void setFlat (bool); + int count (); + void saveState (); + void saveSettings (KConfig*, const QString&); + +%If ( KDE_3_3_0 - ) + void applySettings (KConfig*, const QString&, bool); +%End + + void applySettings (KConfig*, const QString&); + void setXMLGUIClient (KXMLGUIClient*); + void setText (const QString&); + QString text () const; + void setStretchableWidget (QWidget*); + QSizePolicy sizePolicy () const; + bool highlight () const; + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSize minimumSize () const; + void hide (); + void show (); + void updateRects (bool = 0); + void loadState (const QDomElement&); + void saveState (QDomElement&); + void positionYourself (bool); + +signals: + void clicked (int); + void doubleClicked (int); + void pressed (int); + void released (int); + void toggled (int); + void highlighted (int, bool); + void highlighted (int); + void moved (KToolBar::BarPosition); + void modechange (); + +%If ( KDE_3_1_0 - ) + void toolbarDestroyed (); +%End + + +public: + +%If ( KDE_3_1_0 - ) + static bool highlightSetting (); + static bool transparentSetting (); + static KToolBar::IconText iconTextSetting (); +%End + + +public slots: + virtual void setIconText (const QString&); + +protected: + void mousePressEvent (QMouseEvent*); + void childEvent (QChildEvent*); + void showEvent (QShowEvent*); + void resizeEvent (QResizeEvent*); + bool event (QEvent*); + void applyAppearanceSettings (KConfig*, const QString&, bool = 0); + QString settingsGroup () const; + +protected: +//igx virtual void virtual_hook (int, void*); + +public: + +%If ( - KDE_3_2_0 ) + int insertCombo (const QString&, int, bool, const char*, QObject*, const char*, bool = 1, const QString& = QString ::null , int = 70, int = -1, QComboBox::Policy = QComboBox ::AtBottom ); +%End + + +signals: + +%If ( - KDE_3_1_0 ) +//ig static bool highlightSetting (); +//ig static bool transparentSetting (); +//ig static IconText iconTextSetting (); +%End + + +}; // class KToolBar + diff --git a/python/pykde/sip/kdeui/ktoolbarbutton.sip b/python/pykde/sip/kdeui/ktoolbarbutton.sip new file mode 100644 index 00000000..abb1299f --- /dev/null +++ b/python/pykde/sip/kdeui/ktoolbarbutton.sip @@ -0,0 +1,123 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KToolBarButton : QToolButton +{ +%TypeHeaderCode +#include <ktoolbarbutton.h> +%End + + +public: + KToolBarButton (const QString&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null , KInstance* = KGlobal ::instance ()); + KToolBarButton (const QPixmap&, int, QWidget* /TransferThis/, const char* = 0, const QString& = QString ::null ); + KToolBarButton (QWidget* /TransferThis/ = 0, const char* = 0); + virtual void setPixmap (const QPixmap&); + void setDefaultPixmap (const QPixmap&); + void setDisabledPixmap (const QPixmap&); + virtual void setText (const QString&); + virtual void setIcon (const QString&); + +%If ( KDE_3_0_1 - ) + virtual void setIcon (const QPixmap&); +%End + + virtual void setIconSet (const QIconSet&); + void setIcon (const QString&, bool); + void setDefaultIcon (const QString&); + void setDisabledIcon (const QString&); + void on (bool = 1); + void toggle (); + void setToggle (bool = 1); + QPopupMenu* popup (); + +%If ( KDE_3_2_0 - ) + int id () const; +%End + + void setPopup (QPopupMenu*, bool); + void setDelayedPopup (QPopupMenu*, bool = 0); + void setRadio (bool = 1); + void setNoStyle (bool = 1); + +signals: + void clicked (int); + +%If ( KDE_3_4_2 - ) + void buttonClicked (int, Qt::ButtonState); +%End + + void doubleClicked (int); + void pressed (int); + void released (int); + void toggled (int); + void highlighted (int, bool); + +public slots: + void modeChange (); + virtual void setTextLabel (const QString&, bool); + +protected: + +%If ( KDE_3_5_0 - ) + bool event (QEvent*); +%End + + void paletteChange (const QPalette&); + void leaveEvent (QEvent*); + void enterEvent (QEvent*); + void drawButton (QPainter*); + bool eventFilter (QObject*, QEvent*); + +%If ( KDE_3_4_2 - ) + void mousePressEvent (QMouseEvent*); + void mouseReleaseEvent (QMouseEvent*); +%End + + void showMenu (); + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSize minimumSize () const; + +%If ( KDE_3_0_1 - ) + bool isRaised () const; + bool isActive () const; + int iconTextMode () const; +%End + + +protected slots: + void slotClicked (); + void slotPressed (); + void slotReleased (); + void slotToggled (); + void slotDelayTimeout (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KToolBarButton + diff --git a/python/pykde/sip/kdeui/ktoolbarlabelaction.sip b/python/pykde/sip/kdeui/ktoolbarlabelaction.sip new file mode 100644 index 00000000..ac963652 --- /dev/null +++ b/python/pykde/sip/kdeui/ktoolbarlabelaction.sip @@ -0,0 +1,51 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_4_0 - ) + +class KToolBarLabelAction : KWidgetAction +{ +%TypeHeaderCode +#include <ktoolbarlabelaction.h> +%End + + +public: + KToolBarLabelAction (const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + KToolBarLabelAction (QWidget*, const QString&, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + KToolBarLabelAction (QLabel*, const KShortcut&, const QObject*, const char*, KActionCollection* /TransferThis/, const char*); + virtual void setText (const QString&); + virtual void setBuddy (QWidget*); + QWidget* buddy () const; + QLabel* label () const; + +protected: + virtual void virtual_hook (int, void*); + +}; // class KToolBarLabelAction + +%End + diff --git a/python/pykde/sip/kdeui/ktoolbarradiogroup.sip b/python/pykde/sip/kdeui/ktoolbarradiogroup.sip new file mode 100644 index 00000000..8a26f145 --- /dev/null +++ b/python/pykde/sip/kdeui/ktoolbarradiogroup.sip @@ -0,0 +1,43 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KToolBarRadioGroup : QObject +{ +%TypeHeaderCode +#include <ktoolbarradiogroup.h> +%End + + +public: + KToolBarRadioGroup (KToolBar*, const char* = 0); + void addButton (int); + void removeButton (int); + +public slots: + void slotToggled (int); + +}; // class KToolBarRadioGroup + diff --git a/python/pykde/sip/kdeui/kurllabel.sip b/python/pykde/sip/kdeui/kurllabel.sip new file mode 100644 index 00000000..1076c829 --- /dev/null +++ b/python/pykde/sip/kdeui/kurllabel.sip @@ -0,0 +1,108 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KURLLabel : QLabel +{ +%TypeHeaderCode +#include <kurllabel.h> +%End + + +public: + KURLLabel (QWidget* /TransferThis/ = 0, const char* = 0); + KURLLabel (const QString&, const QString& = QString ::null , QWidget* /TransferThis/ = 0, const char* = 0); + const QString& url () const; + const QString& tipText () const; + bool useTips () const; + bool useCursor () const; + bool isGlowEnabled () const; + bool isFloatEnabled () const; + const QPixmap* altPixmap () const; + +%If ( KDE_3_5_1 - ) + virtual void setMargin (int); + virtual void setFocusPolicy (FocusPolicy); + +%If ( KDE_3_5_2 - ) + virtual void setSizePolicy (QSizePolicy); +%End + +%End + + +public slots: + void setUnderline (bool = 1); + void setURL (const QString&); + virtual void setFont (const QFont&); + void setUseTips (bool = 1); + void setTipText (const QString&); + void setHighlightedColor (const QColor&); + void setHighlightedColor (const QString&); + void setSelectedColor (const QColor&); + void setSelectedColor (const QString&); + +%If ( KDE_3_5_1 - ) + virtual void setCursor (const QCursor&); + virtual void unsetCursor (); +%End + + void setUseCursor (bool, QCursor* = 0); + void setGlow (bool = 1); + void setFloat (bool = 1); + void setAltPixmap (const QPixmap&); + +signals: + void enteredURL (const QString&); + void enteredURL (); + void leftURL (const QString&); + void leftURL (); + void leftClickedURL (const QString&); + void leftClickedURL (); + void rightClickedURL (const QString&); + void rightClickedURL (); + void middleClickedURL (const QString&); + void middleClickedURL (); + +protected: + virtual void mouseReleaseEvent (QMouseEvent*); + virtual void enterEvent (QEvent*); + virtual void leaveEvent (QEvent*); + +%If ( KDE_3_2_0 - ) + virtual bool event (QEvent*); + +%If ( KDE_3_5_1 - ) + QRect activeRect () const; +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KURLLabel + diff --git a/python/pykde/sip/kdeui/kwindowinfo.sip b/python/pykde/sip/kdeui/kwindowinfo.sip new file mode 100644 index 00000000..de8d06da --- /dev/null +++ b/python/pykde/sip/kdeui/kwindowinfo.sip @@ -0,0 +1,61 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +%If ( KDE_3_1_0 - ) + +class KWindowInfo : QObject +{ +%TypeHeaderCode +#include <kwindowinfo.h> +%End + + +public: + KWindowInfo (QWidget* /TransferThis/, const char* = 0); + bool autoDelete () const; + void setAutoDelete (bool); + static void showMessage (QWidget*, const QString&, int = -1); + static void showMessage (QWidget*, const QString&, const QPixmap&, int = -1); + +public slots: + void message (const QString&); + void message (const QString&, const QPixmap&); + void message (const QString&, int); + void message (const QString&, const QPixmap&, int); + void permanent (const QString&); + void permanent (const QString&, const QPixmap&); + +protected: + virtual void display (const QString&, const QPixmap&); + +protected slots: + virtual void save (); + virtual void restore (); + +}; // class KWindowInfo + +%End + diff --git a/python/pykde/sip/kdeui/kwindowlistmenu.sip b/python/pykde/sip/kdeui/kwindowlistmenu.sip new file mode 100644 index 00000000..cc74dccc --- /dev/null +++ b/python/pykde/sip/kdeui/kwindowlistmenu.sip @@ -0,0 +1,54 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KWindowListMenu : KPopupMenu +{ +%TypeHeaderCode +#include <kwindowlistmenu.h> +%End + + +public: + KWindowListMenu (QWidget* /TransferThis/ = 0, const char* = 0); + void init (); + +public slots: + +%If ( KDE_3_3_0 - ) + void selectActiveWindow (); +%End + + +protected slots: + void slotExec (int); + void slotUnclutterWindows (); + void slotCascadeWindows (); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KWindowListMenu + diff --git a/python/pykde/sip/kdeui/kwizard.sip b/python/pykde/sip/kdeui/kwizard.sip new file mode 100644 index 00000000..438ce259 --- /dev/null +++ b/python/pykde/sip/kdeui/kwizard.sip @@ -0,0 +1,38 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KWizard : QWizard +{ +%TypeHeaderCode +#include <kwizard.h> +%End + + +public: + KWizard (QWidget* /TransferThis/ = 0, const char* = 0, bool = 0, WFlags = 0); + +}; // class KWizard + diff --git a/python/pykde/sip/kdeui/kwordwrap.sip b/python/pykde/sip/kdeui/kwordwrap.sip new file mode 100644 index 00000000..5a0b7375 --- /dev/null +++ b/python/pykde/sip/kdeui/kwordwrap.sip @@ -0,0 +1,82 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KWordWrap +{ +%TypeHeaderCode +#include <kwordwrap.h> +%End + + +public: + +%If ( KDE_3_3_0 - ) + + enum + { + FadeOut, + Truncate + }; + +%End + + static KWordWrap* formatText (QFontMetrics&, const QRect&, int, const QString&, int = -1); + QRect boundingRect () const; + QString wrappedString () const; + QString truncatedString (bool = 1) const; + void drawText (QPainter*, int, int, int = Qt ::AlignAuto ) const; + +%If ( KDE_3_2_0 - ) + static void drawFadeoutText (QPainter*, int, int, int, const QString&); + +%If ( KDE_3_3_0 - ) + static void drawTruncateText (QPainter*, int, int, int, const QString&); +%End + +%End + + +%If ( KDE_3_2_0 - ) + +private: + KWordWrap (const QRect&); +%End + + +public: + +%If ( KDE_3_2_0 - KDE_3_3_0 ) + + enum + { + FadeOut + }; + +%End + + +}; // class KWordWrap + diff --git a/python/pykde/sip/kdeui/kxmlgui.sip b/python/pykde/sip/kdeui/kxmlgui.sip new file mode 100644 index 00000000..b1076d42 --- /dev/null +++ b/python/pykde/sip/kdeui/kxmlgui.sip @@ -0,0 +1,26 @@ +// +// Copyright 2003 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2002 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE_3_1_1 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + diff --git a/python/pykde/sip/kdeui/kxmlguibuilder.sip b/python/pykde/sip/kdeui/kxmlguibuilder.sip new file mode 100644 index 00000000..d54e887a --- /dev/null +++ b/python/pykde/sip/kdeui/kxmlguibuilder.sip @@ -0,0 +1,53 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KXMLGUIBuilder +{ +%TypeHeaderCode +#include <kxmlguibuilder.h> +%End + + +public: + KXMLGUIBuilder (QWidget*); + KXMLGUIClient* builderClient () const; + void setBuilderClient (KXMLGUIClient*); + KInstance* builderInstance () const; + void setBuilderInstance (KInstance*); + QWidget* widget (); + virtual QStringList containerTags () const; +//ig virtual QWidget* createContainer (QWidget* /Transfer/, int, const QDomElement&, int&); + virtual void removeContainer (QWidget*, QWidget* /Transfer/, QDomElement&, int); + virtual QStringList customTags () const; + virtual int createCustomElement (QWidget* /Transfer/, int, const QDomElement&); + virtual void removeCustomElement (QWidget* /Transfer/, int); + virtual void finalizeGUI (KXMLGUIClient*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIBuilder + diff --git a/python/pykde/sip/kdeui/kxmlguiclient.sip b/python/pykde/sip/kdeui/kxmlguiclient.sip new file mode 100644 index 00000000..b2592023 --- /dev/null +++ b/python/pykde/sip/kdeui/kxmlguiclient.sip @@ -0,0 +1,101 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KXMLGUIClient +{ +%TypeHeaderCode +#include <kxmlguiclient.h> +%End + + +public: + KXMLGUIClient (); + KXMLGUIClient (KXMLGUIClient* /TransferThis/); + KAction* action (const char*) const; + virtual KAction* action (const QDomElement&) const; + virtual KActionCollection* actionCollection () const; + virtual KInstance* instance () const; + virtual QDomDocument domDocument () const; + virtual QString xmlFile () const; + virtual QString localXMLFile () const; + void setXMLGUIBuildDocument (const QDomDocument&); + QDomDocument xmlguiBuildDocument () const; + void setFactory (KXMLGUIFactory*); + KXMLGUIFactory* factory () const; + KXMLGUIClient* parentClient () const; + void insertChildClient (KXMLGUIClient*); + void removeChildClient (KXMLGUIClient*); + const QPtrList<KXMLGUIClient>* childClients (); + void setClientBuilder (KXMLGUIBuilder*); + KXMLGUIBuilder* clientBuilder () const; + void reloadXML (); + void plugActionList (const QString&, const QPtrList<KAction>&); + void unplugActionList (const QString&); + static QString findMostRecentXMLFile (const QStringList&, QString&); + void addStateActionEnabled (const QString&, const QString&); + void addStateActionDisabled (const QString&, const QString&); + + enum ReverseStateChange + { + StateNoReverse, + StateReverse + }; + + + class StateChange + { + + public: + QStringList actionsToEnable; + QStringList actionsToDisable; + + }; // class StateChange + + +public: + KXMLGUIClient::StateChange getActionsToChangeForState (const QString&); + +%If ( KDE_3_1_0 - ) + void beginXMLPlug (QWidget*); + void endXMLPlug (); + void prepareXMLUnplug (QWidget*); +%End + + +protected: + virtual void setInstance (KInstance*); + virtual void setXMLFile (const QString&, bool = 0, bool = 1); + virtual void setLocalXMLFile (const QString&); + virtual void setXML (const QString&, bool = 0); + virtual void setDOMDocument (const QDomDocument&, bool = 0); + virtual void conserveMemory (); + virtual void stateChanged (const QString&, KXMLGUIClient::ReverseStateChange = StateNoReverse ); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIClient + diff --git a/python/pykde/sip/kdeui/kxmlguifactory.sip b/python/pykde/sip/kdeui/kxmlguifactory.sip new file mode 100644 index 00000000..61f761b5 --- /dev/null +++ b/python/pykde/sip/kdeui/kxmlguifactory.sip @@ -0,0 +1,300 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class KXMLGUIFactory : QObject +{ +%TypeHeaderCode +#include <kxmlguifactory.h> +%End + + +public: + KXMLGUIFactory (KXMLGUIBuilder*, QObject* /TransferThis/ = 0, const char* = 0); + static QString readConfigFile (const QString&, bool, const KInstance* = 0); + static QString readConfigFile (const QString&, const KInstance* = 0); + static bool saveConfigFile (const QDomDocument&, const QString&, const KInstance* = 0); + static QString documentToXML (const QDomDocument&); + static QString elementToXML (const QDomElement&); + static void removeDOMComments (QDomNode&); + +%If ( KDE_3_3_0 - ) + static QDomElement actionPropertiesElement (QDomDocument&); + static QDomElement findActionByName (QDomElement&, const QString&, bool); +%End + + void addClient (KXMLGUIClient*); + void removeClient (KXMLGUIClient*); + void plugActionList (KXMLGUIClient*, const QString&, const QPtrList<KAction>&); + void unplugActionList (KXMLGUIClient*, const QString&); + QPtrList<KXMLGUIClient> clients () const; + QWidget* container (const QString&, KXMLGUIClient*, bool = 0); + QPtrList<QWidget> containers (const QString&); + void reset (); + void resetContainer (const QString&, bool = 0); + +public slots: + +%If ( KDE_3_3_0 - ) + int configureShortcuts (bool = 1, bool = 1); +%End + + +signals: + void clientAdded (KXMLGUIClient*); + void clientRemoved (KXMLGUIClient*); + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KXMLGUIFactory + +//force +QPtrList<KAction> testKActionList (QPtrList<KAction>); +%MethodCode +//takes list | (QPtrList<KAction>) +//returns (QPtrList<KAction>) + + sipRes = a0; +%End + +//end + + +%MappedType QPtrList<KAction> +//converts a Python list of KAction +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kaction.h> +#include <sipkdeuiKAction.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KAction> *cpplist = (QPtrList<KAction> *)sipCpp; + KAction *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_KAction, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KAction> *cpplist = new QPtrList<KAction>; + + PyObject *elem; + KAction *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KAction *)sipForceConvertTo_KAction (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList<KXMLGUIClient> +//converts a Python list of KXMLGUIClient +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <kxmlguiclient.h> +#include <sipkdeuiKXMLGUIClient.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<KXMLGUIClient> *cpplist = (QPtrList<KXMLGUIClient> *)sipCpp; + KXMLGUIClient *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipBuildResult (NULL, "N", new KXMLGUIClient (*cpp), sipClass_KXMLGUIClient)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<KXMLGUIClient> *cpplist = new QPtrList<KXMLGUIClient>; + + PyObject *elem; + KXMLGUIClient *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (KXMLGUIClient *)sipForceConvertTo_KXMLGUIClient (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + +%MappedType QPtrList<QWidget> +//converts a Python list of QWidget +{ +%TypeHeaderCode +#include <qptrlist.h> +#include <sipqtQWidget.h> +%End + +%ConvertFromTypeCode + if (!sipCpp) + return PyList_New (0); + + PyObject *pylist; + + // Create the list + + if ((pylist = PyList_New(0)) == NULL) + return NULL; + + // Get it. + + QPtrList<QWidget> *cpplist = (QPtrList<QWidget> *)sipCpp; + QWidget *cpp; + PyObject *inst; + + // the loop depends on the type of iterator the tmeplate makes available + for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () ) + { + if (((inst = sipConvertFromInstance (cpp, sipClass_QWidget, sipTransferObj)) == NULL) + || PyList_Append (pylist, inst) < 0) + { + Py_DECREF (pylist); + return NULL; + } + } + + return pylist; +%End + +%ConvertToTypeCode + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + QPtrList<QWidget> *cpplist = new QPtrList<QWidget>; + + PyObject *elem; + QWidget *cpp; + int iserr = 0; + + for (int i = 0; i < PyList_Size (sipPy); i++) + { + elem = PyList_GET_ITEM (sipPy, i); + cpp = (QWidget *)sipForceConvertTo_QWidget (elem, &iserr); + + if (iserr) + { + *sipIsErr = 1; + delete cpplist; + return 0; + } + + cpplist->append (cpp); + } + + *sipCppPtr = cpplist; + + return 1; +%End +}; + + diff --git a/python/pykde/sip/kdeui/qxembed.sip b/python/pykde/sip/kdeui/qxembed.sip new file mode 100644 index 00000000..1fbc235f --- /dev/null +++ b/python/pykde/sip/kdeui/qxembed.sip @@ -0,0 +1,113 @@ +// +// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com> +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module kdeui version KDE 3.5.3 + + +// This software is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License as +// published by the Free Software Foundation; either version 2 of +// the License, or (at your option) any later version. +// +// This software is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public +// License along with this library; see the file COPYING. +// If not, write to the Free Software Foundation, Inc., +// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + + +class QXEmbed : QWidget +{ +%TypeHeaderCode +#include <qxembed.h> +%End + + +public: + QXEmbed (QWidget* /TransferThis/ = 0, const char* = 0, WFlags = 0); + static void initialize (); + +%If ( KDE_3_1_1 - ) + + enum Protocol + { + XEMBED, + XPLAIN + }; + + void setProtocol (QXEmbed::Protocol); + QXEmbed::Protocol protocol (); +%End + + void embed (WId); + WId embeddedWinId () const; + static void embedClientIntoWindow (QWidget*, WId); + static bool processClientCmdline (QWidget*, SIP_PYLIST) [bool (QWidget*, int&, char**)]; +%MethodCode +//returns (bool) +//takes client | (QWidget) | argv | (a Python list of strings which may be modified) + +//returns +//takes list (a Python list of strings) | index (int) + + int n; + + if ((n = PyList_Size (a1)) == 0) + return NULL; + + char **strings; + + if ((strings = (char **)PyQtListToArray(a1)) == NULL) + return NULL; + + Py_BEGIN_ALLOW_THREADS + sipRes = QXEmbed::processClientCmdline (a0, n, strings); + Py_END_ALLOW_THREADS + + sipFree((ANY *)strings); +%End + + +%If ( KDE_3_2_0 - ) + void sendDelete (); +%End + + void setAutoDelete (bool); + bool autoDelete () const; + QSize sizeHint () const; + QSize minimumSizeHint () const; + QSizePolicy sizePolicy () const; + bool eventFilter (QObject*, QEvent*); + bool customWhatsThis () const; + void enterWhatsThisMode (); + +%If ( KDE_3_2_0 - ) + virtual void reparent (QWidget* /Transfer/, WFlags, const QPoint&, bool = 0); +%End + + +signals: + void embeddedWindowDestroyed (); + +protected: + bool event (QEvent*); + void keyPressEvent (QKeyEvent*); + void keyReleaseEvent (QKeyEvent*); + void focusInEvent (QFocusEvent*); + void focusOutEvent (QFocusEvent*); + void resizeEvent (QResizeEvent*); + void showEvent (QShowEvent*); +//ig bool x11Event (XEvent*); + virtual void windowChanged (WId); + bool focusNextPrevChild (bool); + +}; // class QXEmbed + |