summaryrefslogtreecommitdiffstats
path: root/sip/tdeui/tdetoolbar.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdeui/tdetoolbar.sip')
-rw-r--r--sip/tdeui/tdetoolbar.sip263
1 files changed, 263 insertions, 0 deletions
diff --git a/sip/tdeui/tdetoolbar.sip b/sip/tdeui/tdetoolbar.sip
new file mode 100644
index 0000000..5317080
--- /dev/null
+++ b/sip/tdeui/tdetoolbar.sip
@@ -0,0 +1,263 @@
+//
+// Copyright 2006 Jim Bublitz <[email protected]>
+// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module tdeui 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+class TDEToolBarSeparator : TQFrame
+{
+%TypeHeaderCode
+#include <ktoolbar.h>
+%End
+
+
+public:
+ TDEToolBarSeparator (Orientation, bool, TQToolBar* /TransferThis/, const char* = 0);
+ TQSize sizeHint () const;
+ Orientation orientation () const;
+ TQSizePolicy sizePolicy () const;
+ bool showLine () const;
+
+public slots:
+ void setOrientation (Orientation);
+
+protected:
+ void styleChange (TQStyle&);
+
+%If ( KDE_3_2_0 - )
+ void drawContents (TQPainter*);
+%End
+
+
+}; // class TDEToolBarSeparator
+
+
+class TDEToolBar : TQToolBar
+{
+%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
+ };
+
+ TDEToolBar (TQWidget* /TransferThis/, const char* = 0, bool = 0, bool = 1);
+//ig TDEToolBar (TQMainWindow*, TQMainWindow::ToolBarDock, bool = 0, const char* = 0, bool = 0, bool = 1);
+ TDEToolBar (TQMainWindow*, TQWidget*, bool = 0, const char* = 0, bool = 0, bool = 1);
+ int insertButton (const TQString&, int, bool = 1, const TQString& = TQString ::null , int = -1, TDEInstance* = TDEGlobal ::instance ());
+ int insertButton (const TQString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = -1, TDEInstance* = TDEGlobal ::instance ());
+ int insertButton (const TQPixmap&, int, bool = 1, const TQString& = TQString ::null , int = -1);
+ int insertButton (const TQPixmap&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = -1);
+ int insertButton (const TQString&, int, TQPopupMenu*, bool, const TQString&, int = -1);
+ int insertButton (const TQPixmap&, int, TQPopupMenu*, bool, const TQString&, int = -1);
+ int insertLined (const TQString&, int, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = 70, int = -1);
+ int insertCombo (const TQStringList&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (int), bool = 1, const TQString& = TQString ::null , int = 70, int = -1, TQComboBox::Policy = TQComboBox ::AtBottom );
+
+%If ( KDE_3_2_0 - )
+ int insertCombo (const TQString&, int, bool, const char*, SIP_RXOBJ_CON, SIP_SLOT_CON (), bool = 1, const TQString& = TQString ::null , int = 70, int = -1, TQComboBox::Policy = TQComboBox ::AtBottom );
+%End
+
+ int insertSeparator (int, int);
+ int insertLineSeparator (int, int);
+ int insertWidget (int, int, TQWidget*, int = -1);
+ int insertAnimatedWidget (int, SIP_RXOBJ_CON, SIP_SLOT_CON (int), const TQString&, 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 TQString&);
+ void setButtonPixmap (int, const TQPixmap&);
+ void setButtonIconSet (int, const TQIconSet&);
+ void setDelayedPopup (int, TQPopupMenu*, 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 TQString&);
+ TQString getLinedText (int);
+ void insertComboItem (int, const TQString&, int);
+ void insertComboList (int, const TQStringList&, int);
+ void removeComboItem (int, int);
+ void setCurrentComboItem (int, int);
+ void changeComboItem (int, const TQString&, int = -1);
+ void clearCombo (int);
+ TQString getComboItem (int, int = -1);
+ KComboBox* getCombo (int);
+ KLineEdit* getLined (int);
+ TDEToolBarButton* getButton (int);
+ void alignItemRight (int, bool = 1);
+ TQWidget* 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 (TDEToolBar::BarPosition);
+ BarPosition barPos () const;
+ bool enable (TDEToolBar::BarStatus);
+ void setMaxHeight (int);
+ int maxHeight ();
+ void setMaxWidth (int);
+ int maxWidth ();
+ void setTitle (const TQString&);
+ void enableFloating (bool);
+ void setIconText (TDEToolBar::IconText);
+ void setIconText (TDEToolBar::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 (TDEConfig*, const TQString&);
+
+%If ( KDE_3_3_0 - )
+ void applySettings (TDEConfig*, const TQString&, bool);
+%End
+
+ void applySettings (TDEConfig*, const TQString&);
+ void setXMLGUIClient (KXMLGUIClient*);
+ void setText (const TQString&);
+ TQString text () const;
+ void setStretchableWidget (TQWidget*);
+ TQSizePolicy sizePolicy () const;
+ bool highlight () const;
+ TQSize sizeHint () const;
+ TQSize minimumSizeHint () const;
+ TQSize minimumSize () const;
+ void hide ();
+ void show ();
+ void updateRects (bool = 0);
+ void loadState (const TQDomElement&);
+ void saveState (TQDomElement&);
+ 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 (TDEToolBar::BarPosition);
+ void modechange ();
+
+%If ( KDE_3_1_0 - )
+ void toolbarDestroyed ();
+%End
+
+
+public:
+
+%If ( KDE_3_1_0 - )
+ static bool highlightSetting ();
+ static bool transparentSetting ();
+ static TDEToolBar::IconText iconTextSetting ();
+%End
+
+
+public slots:
+ virtual void setIconText (const TQString&);
+
+protected:
+ void mousePressEvent (TQMouseEvent*);
+ void childEvent (TQChildEvent*);
+ void showEvent (TQShowEvent*);
+ void resizeEvent (TQResizeEvent*);
+ bool event (TQEvent*);
+ void applyAppearanceSettings (TDEConfig*, const TQString&, bool = 0);
+ TQString settingsGroup () const;
+
+protected:
+//igx virtual void virtual_hook (int, void*);
+
+public:
+
+%If ( - KDE_3_2_0 )
+ int insertCombo (const TQString&, int, bool, const char*, TQObject*, const char*, bool = 1, const TQString& = TQString ::null , int = 70, int = -1, TQComboBox::Policy = TQComboBox ::AtBottom );
+%End
+
+
+signals:
+
+%If ( - KDE_3_1_0 )
+//ig static bool highlightSetting ();
+//ig static bool transparentSetting ();
+//ig static IconText iconTextSetting ();
+%End
+
+
+}; // class TDEToolBar
+