summaryrefslogtreecommitdiffstats
path: root/sip/kmdi
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-26 13:14:34 -0600
committerTimothy Pearson <[email protected]>2013-01-26 13:14:34 -0600
commit57e2ced52bf3ba886bb7710212167a86e20305e6 (patch)
treee08b1e82e83f5afa861dc9eeb833dc4bd593900b /sip/kmdi
parentccad7a42d96879251c4971e51aac269f61a0ccf8 (diff)
downloadpytde-57e2ced52bf3ba886bb7710212167a86e20305e6.tar.gz
pytde-57e2ced52bf3ba886bb7710212167a86e20305e6.zip
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'sip/kmdi')
-rw-r--r--sip/kmdi/kmdichildarea.sip102
-rw-r--r--sip/kmdi/kmdichildfrm.sip280
-rw-r--r--sip/kmdi/kmdichildfrmcaption.sip57
-rw-r--r--sip/kmdi/kmdichildview.sip120
-rw-r--r--sip/kmdi/kmdidefines.sip115
-rw-r--r--sip/kmdi/kmdimainfrm.sip339
-rw-r--r--sip/kmdi/kmdimod.sip.in48
-rw-r--r--sip/kmdi/kmditaskbar.sip88
-rw-r--r--sip/kmdi/kmditoolviewaccessor.sip53
9 files changed, 0 insertions, 1202 deletions
diff --git a/sip/kmdi/kmdichildarea.sip b/sip/kmdi/kmdichildarea.sip
deleted file mode 100644
index 5fb48b6..0000000
--- a/sip/kmdi/kmdichildarea.sip
+++ /dev/null
@@ -1,102 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiChildArea : TQFrame
-{
-%TypeHeaderCode
-#include <kmdichildarea.h>
-%End
-
-
-public:
-//ig TQPtrList<KMdiChildFrm>* m_pZ;
- TQSize m_defaultChildFrmSize;
-
-protected:
-
-public:
- KMdiChildArea (TQWidget*);
- void manageChild (KMdiChildFrm*, bool = 1, bool = 1);
- void destroyChild (KMdiChildFrm*, bool = 1);
- void destroyChildButNotItsView (KMdiChildFrm*, bool = 1);
- void setTopChild (KMdiChildFrm*, bool = 0);
- KMdiChildFrm* topChild () const;
- int getVisibleChildCount () const;
- TQPoint getCascadePoint (int = -1);
- void setMdiCaptionFont (const TQFont&);
- void setMdiCaptionActiveForeColor (const TQColor&);
- void setMdiCaptionActiveBackColor (const TQColor&);
- void setMdiCaptionInactiveForeColor (const TQColor&);
- void setMdiCaptionInactiveBackColor (const TQColor&);
- static void getCaptionColors (const TQPalette&, TQColor&, TQColor&, TQColor&, TQColor&);
-
-public slots:
- void cascadeWindows ();
- void cascadeMaximized ();
- void expandVertical ();
- void expandHorizontal ();
- void focusTopChild ();
- void tilePragma ();
- void tileAnodine ();
- void tileVertically ();
- void layoutMinimizedChildren ();
-
-protected:
- void tileAllInternal (int);
- virtual void resizeEvent (TQResizeEvent*);
- void mousePressEvent (TQMouseEvent*);
- void childMinimized (KMdiChildFrm*, bool);
-
-signals:
- void noMaximizedChildFrmLeft (KMdiChildFrm*);
- void nowMaximized (bool);
- void sysButtonConnectionsMustChange (KMdiChildFrm*, KMdiChildFrm*);
- void popupWindowMenu (TQPoint);
- void lastChildFrmClosed ();
-
-//force
-%ConvertToSubClassCode
- // The table of Python class objects indexed by their names. The table
- // must be sorted by name.
-
- static sipStringTypeClassMap map[] = {
- {sipName_KMdiChildArea, &sipClass_KMdiChildArea},
- {sipName_KMdiChildFrm, &sipClass_KMdiChildFrm},
- {sipName_KMdiChildView, &sipClass_KMdiChildView},
- {sipName_KMdiChildFrmCaption, &sipClass_KMdiChildFrmCaption},
- {sipName_KMdiMainFrm, &sipClass_KMdiMainFrm},
- {sipName_KMdiTaskBar, &sipClass_KMdiTaskBar},
- {sipName_KMdiTaskBarButton, &sipClass_KMdiTaskBarButton},
- {sipName_KMdiToolViewAccessor, &sipClass_KMdiToolViewAccessor},
- {sipName_KMdiWin32IconButton, &sipClass_KMdiWin32IconButton},
- };
-
- sipClass = sipMapStringToClass(sipCpp -> className(),map,sizeof (map)/sizeof (map[0]));
-%End
-//end
-
-}; // class KMdiChildArea
-
diff --git a/sip/kmdi/kmdichildfrm.sip b/sip/kmdi/kmdichildfrm.sip
deleted file mode 100644
index 2b8f298..0000000
--- a/sip/kmdi/kmdichildfrm.sip
+++ /dev/null
@@ -1,280 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiWin32IconButton : TQLabel
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
- KMdiWin32IconButton (TQWidget*, const char* = 0);
- virtual void mousePressEvent (TQMouseEvent*);
-
-signals:
- void pressed ();
-
-}; // class KMdiWin32IconButton
-
-
-class KMdiChildFrmMoveEvent : TQCustomEvent
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
- KMdiChildFrmMoveEvent (TQMoveEvent*);
-
-}; // class KMdiChildFrmMoveEvent
-
-
-class KMdiChildFrmDragBeginEvent : TQCustomEvent
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
- KMdiChildFrmDragBeginEvent (TQMouseEvent*);
-
-}; // class KMdiChildFrmDragBeginEvent
-
-
-class KMdiChildFrmDragEndEvent : TQCustomEvent
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
- KMdiChildFrmDragEndEvent (TQMouseEvent*);
-
-}; // class KMdiChildFrmDragEndEvent
-
-
-class KMdiChildFrmResizeBeginEvent : TQCustomEvent
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
- KMdiChildFrmResizeBeginEvent (TQMouseEvent*);
-
-}; // class KMdiChildFrmResizeBeginEvent
-
-
-class KMdiChildFrmResizeEndEvent : TQCustomEvent
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
- KMdiChildFrmResizeEndEvent (TQMouseEvent*);
-
-}; // class KMdiChildFrmResizeEndEvent
-
-
-class KMdiChildFrm : TQFrame
-{
-%TypeHeaderCode
-#include <kmdichildfrm.h>
-%End
-
-
-public:
-
- enum MdiWindowState
- {
- Normal,
- Maximized,
- Minimized
- };
-
- KMdiChildView* m_pClient;
-
-protected:
-
-public:
- KMdiChildFrm (KMdiChildArea*);
- void setClient (KMdiChildView*, bool = 0);
- void unsetClient (TQPoint = TQPoint (0 ,0 ));
- void setIcon (const TQPixmap&);
- TQPixmap* icon () const;
- void enableClose (bool);
- void setCaption (const TQString&);
- const TQString& caption ();
- void setState (KMdiChildFrm::MdiWindowState, bool = 1);
- KMdiChildFrm::MdiWindowState state () const;
- TQRect mdiAreaContentsRect () const;
- TQRect restoreGeometry () const;
- void setRestoreGeometry (const TQRect&);
- void updateRects ();
- TQPopupMenu* systemMenu () const;
- int captionHeight () const;
- void redecorateButtons ();
- bool isInDrag () const;
- bool isInResize () const;
- void raiseAndActivate ();
- virtual void setMinimumSize (int, int);
-
-public slots:
- void slot_resizeViaSystemMenu ();
-
-protected:
- virtual void resizeEvent (TQResizeEvent*);
- virtual void mouseMoveEvent (TQMouseEvent*);
- virtual void mousePressEvent (TQMouseEvent*);
- virtual void mouseReleaseEvent (TQMouseEvent*);
- virtual void moveEvent (TQMoveEvent*);
- virtual void leaveEvent (TQEvent*);
- virtual bool eventFilter (TQObject*, TQEvent*);
- void resizeWindow (int, int, int);
- void setResizeCursor (int);
- void unsetResizeCursor ();
- virtual void switchToMinimizeLayout ();
- void doResize ();
- void doResize (bool);
-
-protected slots:
- void maximizePressed ();
- void restorePressed ();
- void minimizePressed ();
- void closePressed ();
- void undockPressed ();
- void showSystemMenu ();
-
-protected:
-//ig void linkChildren (TQDict<FocusPolicy>*);
- TQDict<TQWidget::FocusPolicy>* unlinkChildren ();
- int getResizeCorner (int, int);
-
-protected:
-
-%If ( - KDE_3_2_2 )
- void linkChildren (TQDict<TQWidget::FocusPolicy>*);
-%End
-
-
-}; // class KMdiChildFrm
-
-
-
-%MappedType TQDict<TQWidget::FocusPolicy>
-//converts a Python dict of TQWidget::FocusPolicy
-{
-%TypeHeaderCode
-#include <tqdict.h>
-%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.
-
- TQDict<TQWidget::FocusPolicy> qdict = *sipCpp;
- TQDictIterator<TQWidget::FocusPolicy> it (qdict);
-
- while (it.current ())
- {
- TQString current_key = it.currentKey ();
- PyObject *a0 = sipConvertFromInstance (&current_key, sipClass_TQString, 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 TQDict<int> on the heap.
-
- if (sipIsErr == NULL)
- return PyDict_Check(sipPy);
-
- TQDict<TQWidget::FocusPolicy>* qdict = new TQDict<TQWidget::FocusPolicy>;
-
- PyObject *key, *value;
- SIP_SSIZE_T pos = 0;
- TQString *a0;
- TQWidget::FocusPolicy a1;
-
- while (PyDict_Next(sipPy, &pos, &key, &value))
- {
- int iserr = 0, a0_state;
-
- a0 = (TQString *)sipForceConvertToType(key, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &a0_state, &iserr);
-
- if (iserr || !PyInt_Check(value))
- {
- if (a0)
- sipReleaseType(a0, sipType_TQString, a0_state);
-
- *sipIsErr = 1;
- delete qdict;
- return 0;
- }
-
- a1 = (TQWidget::FocusPolicy) PyInt_AS_LONG (value);
-
- qdict->insert (*a0, &a1);
-
- sipReleaseType(a0, sipType_TQString, a0_state);
- }
-
- *sipCppPtr = qdict;
-
- return 1;
-%End
-};
-
-
diff --git a/sip/kmdi/kmdichildfrmcaption.sip b/sip/kmdi/kmdichildfrmcaption.sip
deleted file mode 100644
index d057c59..0000000
--- a/sip/kmdi/kmdichildfrmcaption.sip
+++ /dev/null
@@ -1,57 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiChildFrmCaption : TQWidget
-{
-%TypeHeaderCode
-#include <kmdichildfrmcaption.h>
-%End
-
-
-public:
- KMdiChildFrmCaption (KMdiChildFrm*);
- void setActive (bool);
- void setCaption (const TQString&);
- int heightHint ();
-
-public slots:
- void slot_moveViaSystemMenu ();
-
-protected:
- virtual void paintEvent (TQPaintEvent*);
- virtual void mousePressEvent (TQMouseEvent*);
- virtual void mouseDoubleClickEvent (TQMouseEvent*);
- virtual void mouseReleaseEvent (TQMouseEvent*);
- virtual void mouseMoveEvent (TQMouseEvent*);
- TQString abbreviateText (TQString, int);
-
-public:
- TQString m_szCaption;
-
-protected:
-
-}; // class KMdiChildFrmCaption
-
diff --git a/sip/kmdi/kmdichildview.sip b/sip/kmdi/kmdichildview.sip
deleted file mode 100644
index 344c184..0000000
--- a/sip/kmdi/kmdichildview.sip
+++ /dev/null
@@ -1,120 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiChildView : TQWidget
-{
-%TypeHeaderCode
-#include <kmdichildview.h>
-%End
-
-
-protected:
-
-public:
- KMdiChildView (const TQString&, TQWidget* = 0, const char* = 0, WFlags = 0);
- KMdiChildView (TQWidget* = 0, const char* = 0, WFlags = 0);
- void activate ();
- void setFirstFocusableChildWidget (TQWidget*);
- void setLastFocusableChildWidget (TQWidget*);
- TQWidget* focusedChildWidget ();
- bool isAttached () const;
- const TQString& caption () const;
- const TQString& tabCaption () const;
- virtual void setCaption (const TQString&);
- virtual void setTabCaption (const TQString&);
- virtual void setMDICaption (const TQString&);
- KMdiChildFrm* mdiParent () const;
- bool isMinimized () const;
- bool isMaximized () const;
- TQRect internalGeometry () const;
- void setInternalGeometry (const TQRect&);
- TQRect externalGeometry () const;
- void setExternalGeometry (const TQRect&);
- virtual TQPixmap* myIconPtr ();
- virtual void minimize (bool);
- virtual void maximize (bool);
- TQRect restoreGeometry ();
- void setRestoreGeometry (const TQRect&);
- void removeEventFilterForAllChildren ();
- void setWindowMenuID (int);
- virtual void setMinimumSize (int, int);
- virtual void setMaximumSize (int, int);
- bool isToolView () const;
- void updateTimeStamp ();
- const TQDateTime& getTimeStamp () const;
-
-public slots:
- virtual void attach ();
- virtual void detach ();
- virtual void minimize ();
- virtual void maximize ();
- virtual void restore ();
- virtual void youAreAttached (KMdiChildFrm*);
- virtual void youAreDetached ();
- virtual void slot_clickedInWindowMenu ();
- virtual void slot_clickedInDockMenu ();
- virtual void show ();
- virtual void hide ();
- virtual void raise () /PyName=raise_/;
- virtual void showMinimized ();
- virtual void showMaximized ();
- virtual void showNormal ();
-
-protected:
- virtual void closeEvent (TQCloseEvent*);
- virtual bool eventFilter (TQObject*, TQEvent*);
- virtual void focusInEvent (TQFocusEvent*);
- virtual void focusOutEvent (TQFocusEvent*);
- virtual void resizeEvent (TQResizeEvent*);
- void trackIconAndCaptionChanges (TQWidget*);
-
-protected slots:
- void slot_childDestroyed ();
-
-signals:
- void attachWindow (KMdiChildView*, bool);
- void detachWindow (KMdiChildView*, bool);
- void focusInEventOccurs (KMdiChildView*);
- void gotFocus (KMdiChildView*);
- void activated (KMdiChildView*);
- void lostFocus (KMdiChildView*);
- void deactivated (KMdiChildView*);
- void childWindowCloseRequest (KMdiChildView*);
- void windowCaptionChanged (const TQString&);
- void tabCaptionChanged (const TQString&);
- void mdiParentNowMaximized (bool);
- void clickedInWindowMenu (int);
- void clickedInDockMenu (int);
- void isMaximizedNow ();
- void isMinimizedNow ();
- void isRestoredNow ();
- void isAttachedNow ();
- void isDetachedNow ();
- void iconUpdated (TQWidget*, TQPixmap);
- void captionUpdated (TQWidget*, const TQString&);
-
-}; // class KMdiChildView
-
diff --git a/sip/kmdi/kmdidefines.sip b/sip/kmdi/kmdidefines.sip
deleted file mode 100644
index 99fa008..0000000
--- a/sip/kmdi/kmdidefines.sip
+++ /dev/null
@@ -1,115 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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.
-
-%ModuleHeaderCode
-#include <kmdidefines.h>
-%End
-
-namespace KMdi
-{
-
-enum EventType
-{
- EV_Move,
- EV_DragBegin,
- EV_DragEnd,
- EV_ResizeBegin,
- EV_ResizeEnd
-};
-
-
-%If ( KDE_3_3_2 - )
-
-enum AddWindowFlags
-{
- StandardAdd,
- Maximize,
- Minimize,
- Hide,
- Detach,
- ToolWindow,
- UseKMdiSizeHint,
-//ig AddWindowFlags
-};
-
-%End
-
-
-enum FrameDecor
-{
- Win95Look,
- KDE1Look,
- KDELook,
- KDELaptopLook
-};
-
-
-enum MdiMode
-{
- UndefinedMode,
- ToplevelMode,
- ChildframeMode,
- TabPageMode,
- IDEAlMode
-};
-
-
-%If ( KDE_3_3_0 - )
-
-enum TabWidgetVisibility
-{
- AlwaysShowTabs,
- ShowWhenMoreThanOneTab,
- NeverShowTabs
-};
-
-
-enum ToolviewStyle
-{
- IconOnly,
- TextOnly,
- TextAndIcon
-};
-
-%End
-
-
-%If ( - KDE_3_3_2 )
-
-enum AddWindowFlags
-{
- StandardAdd,
- Maximize,
- Minimize,
- Hide,
- Detach,
- ToolWindow,
- UseKMdiSizeHint
-};
-
-%End
-
-}; // namespace KMdi
-
diff --git a/sip/kmdi/kmdimainfrm.sip b/sip/kmdi/kmdimainfrm.sip
deleted file mode 100644
index 3070c17..0000000
--- a/sip/kmdi/kmdimainfrm.sip
+++ /dev/null
@@ -1,339 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiViewCloseEvent : TQCustomEvent
-{
-%TypeHeaderCode
-#include <kmdimainfrm.h>
-%End
-
-
-public:
- KMdiViewCloseEvent (KMdiChildView*);
-
-}; // class KMdiViewCloseEvent
-
-
-class KMdiMainFrm : KParts::DockMainWindow
-{
-%TypeHeaderCode
-#include <kmdimainfrm.h>
-%End
-
-
-protected:
-
-public:
- KMdiMainFrm (TQWidget*, const char* = "", KMdi::MdiMode = KMdi ::ChildframeMode , WFlags = WType_TopLevel |WDestructiveClose );
- void setStandardMDIMenuEnabled (bool = 1);
- void setManagedDockPositionModeEnabled (bool);
- bool isInMaximizedChildFrmMode ();
- KMdi::MdiMode mdiMode ();
- KMdiChildView* activeWindow ();
- virtual TQPopupMenu* taskBarPopup (KMdiChildView*, bool = 0);
- virtual TQPopupMenu* windowPopup (KMdiChildView*, bool = 1);
- virtual void applyOptions ();
- KMdiChildView* findWindow (const TQString&);
-
- enum ExistsAs
- {
- DocumentView,
- ToolView,
- AnyView
- };
-
- bool windowExists (KMdiChildView*, KMdiMainFrm::ExistsAs);
- virtual bool event (TQEvent*);
- virtual void setSysButtonsAtMenuPosition ();
- virtual int taskBarHeight ();
- virtual void setUndockPositioningOffset (TQPoint);
-//ig KMdiIterator<KMdiChildView*>* createIterator ();
-//ig void deleteIterator (KMdiIterator<KMdiChildView*>*);
- TQPopupMenu* windowMenu () const;
- virtual void setBackgroundColor (const TQColor&);
- virtual void setBackgroundPixmap (const TQPixmap&);
- void setDefaultChildFrmSize (const TQSize&);
- TQSize defaultChildFrmSize ();
- virtual void setMinimumSize (int, int);
- int childFrameModeHeight ();
- virtual void setMenuForSDIModeSysButtons (KMenuBar* = 0);
- static int frameDecorOfAttachedViews ();
- void fakeSDIApplication ();
- bool isFakingSDIApplication () const;
- virtual bool eventFilter (TQObject*, TQEvent*);
- void findRootDockWidgets (TQPtrList<KDockWidget>*, TQValueList<TQRect>*);
- void setSwitching (const bool);
- bool switching () const;
-
-public slots:
- KMdiChildView* createWrapper (TQWidget*, const TQString&, const TQString&);
- virtual void addWindow (KMdiChildView*, int = KMdi ::StandardAdd );
-
-%If ( KDE_3_3_0 - )
- void addWindow (KMdiChildView*, int, int);
-%End
-
- virtual void addWindow (KMdiChildView*, TQPoint, int = KMdi ::StandardAdd );
- virtual void addWindow (KMdiChildView*, TQRect, int = KMdi ::StandardAdd );
- virtual KMdiToolViewAccessor* addToolWindow (TQWidget*, KDockWidget::DockPosition = KDockWidget ::DockNone , TQWidget* = 0, int = 50, const TQString& = 0, const TQString& = 0);
- virtual void deleteToolWindow (TQWidget*);
- virtual void deleteToolWindow (KMdiToolViewAccessor*);
- KMdiToolViewAccessor* createToolWindow ();
- virtual void removeWindowFromMdi (KMdiChildView*);
- virtual void closeWindow (KMdiChildView*, bool = 1);
- virtual void slot_toggleTaskBar ();
- virtual void attachWindow (KMdiChildView*, bool = 1, bool = 0);
- virtual void detachWindow (KMdiChildView*, bool = 1);
- virtual void childWindowCloseRequest (KMdiChildView*);
- virtual void closeAllViews ();
- virtual void iconifyAllViews ();
- virtual void closeActiveView ();
- virtual void switchToToplevelMode ();
- virtual void finishToplevelMode ();
- virtual void switchToChildframeMode ();
- virtual void finishChildframeMode ();
- virtual void switchToTabPageMode ();
- virtual void finishTabPageMode ();
- virtual void switchToIDEAlMode ();
- virtual void finishIDEAlMode (bool = 1);
- void setIDEAlModeStyle (int);
-
-%If ( KDE_3_3_0 - )
- void setToolviewStyle (int);
-%End
-
- bool isViewTaskBarOn ();
- virtual void showViewTaskBar ();
- virtual void hideViewTaskBar ();
- virtual void fillWindowMenu ();
- virtual void cascadeWindows ();
- virtual void cascadeMaximized ();
- virtual void expandVertical ();
- virtual void expandHorizontal ();
- virtual void tilePragma ();
- virtual void tileAnodine ();
- virtual void tileVertically ();
- virtual void setFrameDecorOfAttachedViews (int);
- virtual void setEnableMaximizedChildFrmMode (bool);
- virtual void activateNextWin ();
- virtual void activatePrevWin ();
- virtual void activateFirstWin ();
- virtual void activateLastWin ();
- virtual void activateView (int);
-
-protected:
- virtual void resizeEvent (TQResizeEvent*);
- virtual void createTaskBar ();
- virtual void createMdiManager ();
- void blockClearingOfWindowMenu (bool);
- void findToolViewsDockedToMain (TQPtrList<KDockWidget>*, KDockWidget::DockPosition);
- void dockToolViewsIntoContainers (TQPtrList<KDockWidget>&, KDockWidget*);
- TQStringList prepareIdealToTabs (KDockWidget*);
- void idealToolViewsToStandardTabs (TQStringList, KDockWidget::DockPosition, int);
-//force
-%If ( KDE_3_4_0 - )
- KTabWidget* tabWidget() const;
-%End
-//end
-
-%If ( KDE_3_3_0 - )
- KMdi::TabWidgetVisibility tabWidgetVisibility ();
- void setTabWidgetVisibility (KMdi::TabWidgetVisibility);
-%End
-
-
-protected slots:
- virtual void activateView (KMdiChildView*);
- virtual void taskbarButtonRightClicked (KMdiChildView*);
- void switchOffMaximizeModeForMenu (KMdiChildFrm*);
- void updateSysButtonConnections (KMdiChildFrm*, KMdiChildFrm*);
- void windowMenuItemActivated (int);
- void dockMenuItemActivated (int);
- void popupWindowMenu (TQPoint);
- void dragEndTimeOut ();
- void closeViewButtonPressed ();
-
-signals:
- void lastChildFrmClosed ();
- void lastChildViewClosed ();
- void leftTopLevelMode ();
- void childViewIsDetachedNow (TQWidget*);
- void collapseOverlapContainers ();
- void mdiModeHasBeenChangedTo (KMdi::MdiMode);
- void viewActivated (KMdiChildView*);
- void viewDeactivated (KMdiChildView*);
-
-public slots:
- void prevToolViewInDock ();
- void nextToolViewInDock ();
-
-signals:
- void toggleTop ();
- void toggleLeft ();
- void toggleRight ();
- void toggleBottom ();
-
-}; // class KMdiMainFrm
-
-
-
-%MappedType TQPtrList<KDockWidget>
-//converts a Python list of KDockWidget
-{
-%TypeHeaderCode
-#include <tqptrlist.h>
-%End
-
-%ConvertFromTypeCode
- if (!sipCpp)
- return PyList_New (0);
-
- PyObject *pylist;
-
- // Create the list
-
- if ((pylist = PyList_New(0)) == NULL)
- return NULL;
-
- // Get it.
-
- TQPtrList<KDockWidget> *cpplist = (TQPtrList<KDockWidget> *)sipCpp;
- KDockWidget *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_KDockWidget, sipTransferObj)) == NULL)
- || PyList_Append (pylist, inst) < 0)
- {
- Py_DECREF (pylist);
- return NULL;
- }
- }
-
- return pylist;
-%End
-
-%ConvertToTypeCode
- if (sipIsErr == NULL)
- return PyList_Check(sipPy);
-
- TQPtrList<KDockWidget> *cpplist = new TQPtrList<KDockWidget>;
-
- PyObject *elem;
- KDockWidget *cpp;
- int iserr = 0;
-
- for (int i = 0; i < PyList_Size (sipPy); i++)
- {
- elem = PyList_GET_ITEM (sipPy, i);
- cpp = (KDockWidget *)sipForceConvertToType(elem, sipType_KDockWidget, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
-
- if (iserr)
- {
- *sipIsErr = 1;
- delete cpplist;
- return 0;
- }
-
- cpplist->append (cpp);
- }
-
- *sipCppPtr = cpplist;
-
- return 1;
-%End
-};
-
-
-%MappedType TQValueList<TQRect>
-//converts a Python list of TQRect
-{
-%TypeHeaderCode
-#include <tqvaluelist.h>
-%End
-
-%ConvertFromTypeCode
- if (!sipCpp)
- return PyList_New(0);
-
- // Create the list
- PyObject *pylist;
- if ((pylist = PyList_New(0)) == NULL)
- return NULL;
-
- TQValueList<TQRect> *cpplist = (TQValueList<TQRect> *)sipCpp;
- PyObject *inst;
-
- // Get it.
- TQValueList<TQRect>::Iterator it;
- for( it = cpplist->begin(); it != cpplist->end(); ++it )
- {
- if (((inst = sipConvertFromNewType(new TQRect(*it), sipType_TQRect, NULL)) == NULL)
- || PyList_Append (pylist, inst) < 0)
- {
- Py_DECREF (pylist);
- return NULL;
- }
- }
-
- return pylist;
-%End
-
-
-%ConvertToTypeCode
- if (sipIsErr == NULL)
- return PyList_Check(sipPy);
-
- TQValueList<TQRect> *cpplist = new TQValueList<TQRect>;
-
- PyObject *elem;
- TQRect *cpp;
- int iserr = 0;
-
- for (int i = 0; i < PyList_Size (sipPy); i++)
- {
- elem = PyList_GET_ITEM (sipPy, i);
- cpp = (TQRect *)sipForceConvertToType(elem, sipType_TQRect, sipTransferObj, SIP_NOT_NONE|SIP_NO_CONVERTORS, NULL, &iserr);
-
- if (iserr)
- {
- *sipIsErr = 1;
- delete cpplist;
- return 0;
- }
-
- cpplist->append (*cpp);
- }
-
- *sipCppPtr = cpplist;
-
- return 1;
-%End
-};
-
-
diff --git a/sip/kmdi/kmdimod.sip.in b/sip/kmdi/kmdimod.sip.in
deleted file mode 100644
index 06be2b7..0000000
--- a/sip/kmdi/kmdimod.sip.in
+++ /dev/null
@@ -1,48 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-%End
-
-%Module kmdi
-
-%Import qt/qtmod.sip
-%Import dcopmod.sip
-%Import tdecoremod.sip
-%Import qtxml/qtxmlmod.sip
-%Import tdefxmod.sip
-%Import tdeuimod.sip
-%Import kiomod.sip
-%Import kpartsmod.sip
-
-%Include kmdichildarea.sip
-%Include kmdichildfrm.sip
-%Include kmdichildfrmcaption.sip
-%Include kmdichildview.sip
-%Include kmdidefines.sip
-%Include kmdimainfrm.sip
-%Include kmditaskbar.sip
-%Include kmditoolviewaccessor.sip
-@mark@
diff --git a/sip/kmdi/kmditaskbar.sip b/sip/kmdi/kmditaskbar.sip
deleted file mode 100644
index d7fde53..0000000
--- a/sip/kmdi/kmditaskbar.sip
+++ /dev/null
@@ -1,88 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiTaskBarButton : TQPushButton
-{
-%TypeHeaderCode
-#include <kmditaskbar.h>
-%End
-
-
-public:
- KMdiTaskBarButton (KMdiTaskBar*, KMdiChildView*);
- TQString actualText () const;
- void fitText (const TQString&, int);
- void setText (const TQString&);
-
-signals:
- void clicked (KMdiChildView*);
- void leftMouseButtonClicked (KMdiChildView*);
- void rightMouseButtonClicked (KMdiChildView*);
- void buttonTextChanged (int);
-
-public slots:
- void setNewText (const TQString&);
-
-protected slots:
- void mousePressEvent (TQMouseEvent*);
-
-public:
- KMdiChildView* m_pWindow;
-
-protected:
-
-}; // class KMdiTaskBarButton
-
-
-class KMdiTaskBar : KToolBar
-{
-%TypeHeaderCode
-#include <kmditaskbar.h>
-%End
-
-
-public:
- KMdiTaskBar (KMdiMainFrm*, TQt::Dock);
- KMdiTaskBarButton* addWinButton (KMdiChildView*);
- void removeWinButton (KMdiChildView*, bool = 1);
- KMdiTaskBarButton* getNextWindowButton (bool, KMdiChildView*);
- KMdiTaskBarButton* getButton (KMdiChildView*);
- void switchOn (bool);
- bool isSwitchedOn () const;
-
-protected:
- void resizeEvent (TQResizeEvent*);
-
-protected slots:
- void layoutTaskBar (int = 0);
-
-public slots:
- void setActiveButton (KMdiChildView*);
-
-protected:
-
-}; // class KMdiTaskBar
-
diff --git a/sip/kmdi/kmditoolviewaccessor.sip b/sip/kmdi/kmditoolviewaccessor.sip
deleted file mode 100644
index a0a8a46..0000000
--- a/sip/kmdi/kmditoolviewaccessor.sip
+++ /dev/null
@@ -1,53 +0,0 @@
-//
-// Copyright 2006 Jim Bublitz <[email protected]>
-// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
-// may also apply
-
-
-// Generated by preSip
-// module kmdi 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 KMdiToolViewAccessor : TQObject
-{
-%TypeHeaderCode
-#include <kmditoolviewaccessor.h>
-%End
-
-
-private:
- KMdiToolViewAccessor (KMdiMainFrm*, TQWidget*, const TQString& = 0, const TQString& = 0);
- KMdiToolViewAccessor (KMdiMainFrm*);
-
-public:
- TQWidget* wrapperWidget ();
- TQWidget* wrappedWidget ();
- void place (KDockWidget::DockPosition = KDockWidget ::DockNone , TQWidget* = 0, int = 50);
- void placeAndShow (KDockWidget::DockPosition = KDockWidget ::DockNone , TQWidget* = 0, int = 50);
- void show ();
-
-public slots:
- void setWidgetToWrap (TQWidget*, const TQString& = 0, const TQString& = 0);
- void hide ();
-
-protected:
- bool eventFilter (TQObject*, TQEvent*);
-
-}; // class KMdiToolViewAccessor
-