From cf71dc3ffcfe8e63b24996b54ba86664f0a178a9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 15 Feb 2013 23:21:31 -0600 Subject: Fix prior commit --- sip/tdecore/kglobal.sip | 65 --------- sip/tdecore/kglobalsettings.sip | 157 --------------------- sip/tdecore/klocale.sip | 243 --------------------------------- sip/tdecore/kstartupinfo.sip | 280 -------------------------------------- sip/tdecore/ktempfile.sip | 58 -------- sip/tdecore/tdeglobal.sip | 65 +++++++++ sip/tdecore/tdeglobalsettings.sip | 157 +++++++++++++++++++++ sip/tdecore/tdelocale.sip | 243 +++++++++++++++++++++++++++++++++ sip/tdecore/tdestartupinfo.sip | 280 ++++++++++++++++++++++++++++++++++++++ sip/tdecore/tdetempfile.sip | 58 ++++++++ sip/tdefile/kdiroperator.sip | 205 ---------------------------- sip/tdefile/tdediroperator.sip | 205 ++++++++++++++++++++++++++++ sip/tdeio/kemailsettings.sip | 84 ------------ sip/tdeio/kprotocolmanager.sip | 99 -------------- sip/tdeio/tdeemailsettings.sip | 84 ++++++++++++ sip/tdeio/tdeprotocolmanager.sip | 99 ++++++++++++++ sip/tdeui/kmenubar.sip | 91 ------------- sip/tdeui/kmessagebox.sip | 260 ----------------------------------- sip/tdeui/tdemenubar.sip | 91 +++++++++++++ sip/tdeui/tdemessagebox.sip | 260 +++++++++++++++++++++++++++++++++++ 20 files changed, 1542 insertions(+), 1542 deletions(-) delete mode 100644 sip/tdecore/kglobal.sip delete mode 100644 sip/tdecore/kglobalsettings.sip delete mode 100644 sip/tdecore/klocale.sip delete mode 100644 sip/tdecore/kstartupinfo.sip delete mode 100644 sip/tdecore/ktempfile.sip create mode 100644 sip/tdecore/tdeglobal.sip create mode 100644 sip/tdecore/tdeglobalsettings.sip create mode 100644 sip/tdecore/tdelocale.sip create mode 100644 sip/tdecore/tdestartupinfo.sip create mode 100644 sip/tdecore/tdetempfile.sip delete mode 100644 sip/tdefile/kdiroperator.sip create mode 100644 sip/tdefile/tdediroperator.sip delete mode 100644 sip/tdeio/kemailsettings.sip delete mode 100644 sip/tdeio/kprotocolmanager.sip create mode 100644 sip/tdeio/tdeemailsettings.sip create mode 100644 sip/tdeio/tdeprotocolmanager.sip delete mode 100644 sip/tdeui/kmenubar.sip delete mode 100644 sip/tdeui/kmessagebox.sip create mode 100644 sip/tdeui/tdemenubar.sip create mode 100644 sip/tdeui/tdemessagebox.sip diff --git a/sip/tdecore/kglobal.sip b/sip/tdecore/kglobal.sip deleted file mode 100644 index 948bb9d..0000000 --- a/sip/tdecore/kglobal.sip +++ /dev/null @@ -1,65 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEGlobal -{ -%TypeHeaderCode -#include -%End - - -public: - static TDEInstance* instance (); - static TDEStandardDirs* dirs (); - static TDEConfig* config (); - -%If ( KDE_3_2_0 - ) - static TDESharedConfig* sharedConfig (); -%End - - static TDEIconLoader* iconLoader (); - static TDELocale* locale (); - static KCharsets* charsets (); - static const TQString& staticQString (const char*); - static const TQString& staticQString (const TQString&); - static void registerStaticDeleter (KStaticDeleterBase*); - static void unregisterStaticDeleter (KStaticDeleterBase*); - static void deleteStaticDeleters (); -//ig KStringDict* _stringDict; -//ig TDEInstance* _instance; -//ig TDELocale* _locale; -//ig KCharsets* _charsets; -//ig KStaticDeleterList* _staticDeleters; - static void setActiveInstance (TDEInstance*); - static TDEInstance* activeInstance (); -//ig TDEInstance* _activeInstance; - -}; // class TDEGlobal - - -%If ( KDE_3_4_0 - ) -int kasciistricmp (const char*, const char*); -%End diff --git a/sip/tdecore/kglobalsettings.sip b/sip/tdecore/kglobalsettings.sip deleted file mode 100644 index 7763820..0000000 --- a/sip/tdecore/kglobalsettings.sip +++ /dev/null @@ -1,157 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEGlobalSettings -{ -%TypeHeaderCode -#include -%End - - -public: - static int dndEventDelay (); - static bool singleClick (); - -%If ( KDE_3_1_0 - ) - - enum TearOffHandle - { - Disable, - ApplicationLevel, - Enable - }; - - static TDEGlobalSettings::TearOffHandle insertTearOffHandle (); -%End - - static bool changeCursorOverIcon (); - static bool visualActivate (); - static uint visualActivateSpeed (); - static int autoSelectDelay (); - static int contextMenuKey (); - static bool showContextMenusOnPress (); - - enum Completion - { - CompletionNone, - CompletionAuto, - CompletionMan, - CompletionShell, - CompletionPopup, - CompletionPopupAuto - }; - - static Completion completionMode (); - - class KMouseSettings - { - - public: - - enum - { - RightHanded, - LeftHanded - }; - - int handed; - - }; // class KMouseSettings - - -public: - static TDEGlobalSettings::KMouseSettings& mouseSettings (); - static TQString desktopPath (); - static TQString autostartPath (); - static TQString trashPath (); - static TQString documentPath (); - static TQColor toolBarHighlightColor (); - static TQColor inactiveTitleColor (); - static TQColor inactiveTextColor (); - static TQColor activeTitleColor (); - static TQColor activeTextColor (); - static int contrast (); - -%If ( KDE_3_4_0 - ) - static TQColor buttonBackground (); - static TQColor buttonTextColor (); -%End - - static TQColor baseColor (); - static TQColor textColor (); - static TQColor linkColor (); - static TQColor visitedLinkColor (); - static TQColor highlightedTextColor (); - static TQColor highlightColor (); - static TQColor alternateBackgroundColor (); - static TQColor calculateAlternateBackgroundColor (const TQColor&); - -%If ( KDE_3_4_0 - ) - static bool shadeSortColumn (); -%End - - static TQFont generalFont (); - static TQFont fixedFont (); - static TQFont toolBarFont (); - static TQFont menuFont (); - static TQFont windowTitleFont (); - static TQFont taskbarFont (); - -%If ( KDE_3_1_0 - ) - static TQFont largeFont (const TQString& = TQString ::null ); -%End - - static bool isMultiHead (); - -%If ( KDE_3_1_0 - ) - static bool wheelMouseZooms (); - -%If ( KDE_3_2_0 - ) - static TQRect splashScreenDesktopGeometry (); - static TQRect desktopGeometry (const TQPoint&); - static TQRect desktopGeometry (TQWidget*); - static bool showIconsOnPushButtons (); - static bool showFilePreview (const KURL&); - static bool opaqueResize (); - -%If ( KDE_3_3_0 - ) - static int buttonLayout (); -%End - -%End - -%End - - -public: - -%If ( - KDE_3_1_0 ) - static bool insertTearOffHandle (); -%End - - -}; // class TDEGlobalSettings - diff --git a/sip/tdecore/klocale.sip b/sip/tdecore/klocale.sip deleted file mode 100644 index ee5367b..0000000 --- a/sip/tdecore/klocale.sip +++ /dev/null @@ -1,243 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDELocale -{ -%TypeHeaderCode -#include -%End - - -public: - TDELocale (const TQString&, TDEConfig* = 0); -//ig TDELocale (const TDELocale&); - TQString translate (const char*) const; - TQString translate (const char*, const char*) const; - TQString translate (const char*, const char*, ulong) const; - bool setEncoding (int); - bool setLanguage (const TQString&); - bool setLanguage (const TQStringList&); - bool setCountry (const TQString&); - - enum SignPosition - { - ParensAround, - BeforeQuantityMoney, - AfterQuantityMoney, - BeforeMoney, - AfterMoney - }; - - TQString decimalSymbol () const; - TQString thousandsSeparator () const; - TQString currencySymbol () const; - TQString monetaryDecimalSymbol () const; - TQString monetaryThousandsSeparator () const; - TQString positiveSign () const; - TQString negativeSign () const; - int fracDigits () const; - bool positivePrefixCurrencySymbol () const; - bool negativePrefixCurrencySymbol () const; - SignPosition positiveMonetarySignPosition () const; - SignPosition negativeMonetarySignPosition () const; - TQString formatMoney (double, const TQString& = TQString ::null , int = -1) const; - TQString formatNumber (double, int = -1) const; - TQString formatNumber (const TQString&) const; - -%If ( KDE_3_5_0 - ) - TQString formatNumber (const TQString&, bool, int) const; -%End - - -%If ( KDE_3_2_0 - ) - TQString formatLong (long) const; -%End - - -%If ( KDE_3_1_0 - ) - bool nounDeclension () const; -%End - - TQString formatDate (const TQDate&, bool = 0) const; - -%If ( KDE_3_1_0 - ) - bool dateMonthNamePossessive () const; - -%If ( KDE_3_3_0 - ) - TQString formatTime (const TQTime&, bool, bool) const; -%End - -%End - - TQString formatTime (const TQTime&, bool = 0) const; - bool use12Clock () const; - bool weekStartsMonday () const; - -%If ( KDE_3_1_0 - ) - int weekStartDay () const; -%End - - TQString monthName (int, bool = 0) const; - -%If ( KDE_3_1_0 - ) - TQString monthNamePossessive (int, bool = 0) const; -%End - - TQString weekDayName (int, bool = 0) const; - -%If ( KDE_3_2_0 - ) - const KCalendarSystem* calendar () const; - TQString calendarType () const; - void setCalendar (const TQString&); -%End - - TQString formatDateTime (const TQDateTime&, bool, bool = 0) const; - double readMoney (const TQString&, bool* = 0) const; - double readNumber (const TQString&, bool* = 0) const; - TQDate readDate (const TQString&, bool* = 0) const; - TQDate readDate (const TQString&, const TQString&, bool* = 0) const; - -%If ( KDE_3_2_0 - ) - - enum ReadDateFlags - { - NormalFormat, - ShortFormat - }; - - TQDate readDate (const TQString&, TDELocale::ReadDateFlags, bool* = 0) const; -%End - - TQTime readTime (const TQString&, bool* = 0) const; - -%If ( KDE_3_2_0 - ) - - enum ReadTimeFlags - { - WithSeconds, - WithoutSeconds - }; - - TQTime readTime (const TQString&, TDELocale::ReadTimeFlags, bool* = 0) const; -%End - - TQString language () const; - TQString country () const; - TQStringList languagesTwoAlpha () const; - TQStringList languageList () const; - const char* encoding () const; - int encodingMib () const; - TQTextCodec* codecForEncoding () const; - -%If ( KDE_3_2_0 - ) - int fileEncodingMib () const; -%End - - void setDateFormat (const TQString&); - void setDateFormatShort (const TQString&); - -%If ( KDE_3_1_0 - ) - void setDateMonthNamePossessive (bool); -%End - - void setTimeFormat (const TQString&); - void setWeekStartsMonday (bool); - -%If ( KDE_3_1_0 - ) - void setWeekStartDay (int); -%End - - TQString dateFormat () const; - TQString dateFormatShort () const; - TQString timeFormat () const; - void setDecimalSymbol (const TQString&); - void setThousandsSeparator (const TQString&); - void setPositiveSign (const TQString&); - void setNegativeSign (const TQString&); - void setPositiveMonetarySignPosition (TDELocale::SignPosition); - void setNegativeMonetarySignPosition (TDELocale::SignPosition); - void setPositivePrefixCurrencySymbol (bool); - void setNegativePrefixCurrencySymbol (bool); - void setFracDigits (int); - void setMonetaryThousandsSeparator (const TQString&); - void setMonetaryDecimalSymbol (const TQString&); - void setCurrencySymbol (const TQString&); - int pageSize () const; - void setPageSize (int); - - enum MeasureSystem - { - Metric, - Imperial - }; - - TDELocale::MeasureSystem measureSystem () const; - void setMeasureSystem (TDELocale::MeasureSystem); - void insertCatalogue (const TQString&); - void removeCatalogue (const TQString&); - void setActiveCatalogue (const TQString&); - TQString translateQt (const char*, const char*, const char*) const; - -%If ( KDE_3_1_0 - ) - TQStringList allLanguagesTwoAlpha () const; - TQString twoAlphaToLanguageName (const TQString&) const; - TQStringList allCountriesTwoAlpha () const; - TQString twoAlphaToCountryName (const TQString&) const; -%End - - static void splitLocale (const TQString&, TQString&, TQString&, TQString&); - static void setMainCatalogue (const char*); - static TQString langLookup (const TQString&, const char* = "html"); - static TQString defaultLanguage (); - static TQString defaultCountry (); - -%If ( KDE_3_0_1 - ) - static TQString _initLanguage (TDEConfigBase*); -%End - - TQString formatMoney (const TQString&) const; - TQString languages () const; -//ig bool setCharset (const TQString&); -//ig TQString charset () const; - -protected: -//ig static void initInstance (); -//force - -private: - TDELocale (const TDELocale&); -//end - -}; // class TDELocale - - -%ModuleCode -#include -%End - -TQString i18n (const char*); -TQString i18n (const char*, const char*); -TQString i18n (const char*, const char*, ulong); diff --git a/sip/tdecore/kstartupinfo.sip b/sip/tdecore/kstartupinfo.sip deleted file mode 100644 index 95e6e16..0000000 --- a/sip/tdecore/kstartupinfo.sip +++ /dev/null @@ -1,280 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 TDEStartupInfo : TQObject -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_2_0 - ) - static void disableAutoAppStartedSending (bool = 1); -%End - - static void appStarted (); - -%If ( KDE_3_2_0 - ) - static void appStarted (const TQCString&); - static void setNewStartupId (TQWidget*, const TQCString&); - static void silenceStartup (bool); - -%If ( KDE_3_3_0 - ) - static TQCString createNewStartupId (); -%End - -%End - - -%If ( KDE_3_1_1 - ) - - enum - { - CleanOnCantDetect, - DisableKWinModule, - AnnounceSilenceChanges - }; - -%End - - TDEStartupInfo (bool, TQObject* /TransferThis/ = 0, const char* = 0); - static bool sendStartup (const TDEStartupInfoId&, const TDEStartupInfoData&); -//ig static bool sendStartupX (Display*, const TDEStartupInfoId&, const TDEStartupInfoData&); - static bool sendChange (const TDEStartupInfoId&, const TDEStartupInfoData&); -//ig static bool sendChangeX (Display*, const TDEStartupInfoId&, const TDEStartupInfoData&); - static bool sendFinish (const TDEStartupInfoId&); -//ig static bool sendFinishX (Display*, const TDEStartupInfoId&); - static bool sendFinish (const TDEStartupInfoId&, const TDEStartupInfoData&); -//ig static bool sendFinishX (Display*, const TDEStartupInfoId&, const TDEStartupInfoData&); - static TDEStartupInfoId currentStartupIdEnv (); - static void resetStartupEnv (); - - enum startup_t - { - NoMatch, - Match, - CantDetect - }; - - TDEStartupInfo::startup_t checkStartup (WId); - TDEStartupInfo::startup_t checkStartup (WId, TDEStartupInfoId&); - TDEStartupInfo::startup_t checkStartup (WId, TDEStartupInfoData&); - TDEStartupInfo::startup_t checkStartup (WId, TDEStartupInfoId&, TDEStartupInfoData&); - void setTimeout (uint); - static void setWindowStartupId (WId, const TQCString&); - static TQCString windowStartupId (WId); - -%If ( KDE_3_2_0 - ) - static void handleAutoAppStartedSending (); -%End - - -signals: - void gotNewStartup (const TDEStartupInfoId&, const TDEStartupInfoData&); - void gotStartupChange (const TDEStartupInfoId&, const TDEStartupInfoData&); - void gotRemoveStartup (const TDEStartupInfoId&, const TDEStartupInfoData&); - -protected: - virtual void customEvent (TQCustomEvent*); - -}; // class TDEStartupInfo - - -class TDEStartupInfoId -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_1_4 - ) - bool operator == (const TDEStartupInfoId&) const; - bool operator != (const TDEStartupInfoId&) const; -%End - - bool none () const; - void initId (const TQCString& = ""); - const TQCString& id () const; - -%If ( KDE_3_3_0 - ) - ulong timestamp () const; -%End - - bool setupStartupEnv () const; - TDEStartupInfoId (); - TDEStartupInfoId (const TDEStartupInfoId&); - -%If ( KDE_3_1_4 - ) - bool operator < (const TDEStartupInfoId&) const; -%End - - -private: - TDEStartupInfoId (const TQString&); - -}; // class TDEStartupInfoId - - -class TDEStartupInfoData -{ -%TypeHeaderCode -#include -%End - - -public: - void setBin (const TQString&); - const TQString& bin () const; - void setName (const TQString&); - const TQString& findName () const; - const TQString& name () const; - -%If ( KDE_3_2_0 - ) - void setDescription (const TQString&); - const TQString& findDescription () const; - const TQString& description () const; -%End - - void setIcon (const TQString&); - const TQString& findIcon () const; - const TQString& icon () const; - void setDesktop (int); - int desktop () const; - void setWMClass (const TQCString&); - const TQCString findWMClass () const; - const TQCString& WMClass () const; - void addPid (pid_t); - const TQValueList& pids () const; - bool is_pid (pid_t) const; - void setHostname (const TQCString& = TQCString ()); - const TQCString& hostname () const; - -%If ( KDE_3_1_1 - ) - - enum TriState - { - Yes, - No, - Unknown - }; - - void setSilent (TDEStartupInfoData::TriState); - TDEStartupInfoData::TriState silent () const; - -%If ( KDE_3_2_0 - ) - void setTimestamp (ulong); - ulong timestamp () const; - int screen () const; - void setScreen (int); -%End - -%End - - void update (const TDEStartupInfoData&); - TDEStartupInfoData (); - TDEStartupInfoData (const TDEStartupInfoData&); - -private: - TDEStartupInfoData (const TQString&); - -}; // class TDEStartupInfoData - -/*%MappedType TQValueList -//converts a Python list of long -{ -%TypeHeaderCode -#include -%End - -%ConvertFromTypeCode - // Handle no list. - - if (!sipCpp) - return PyList_New(0); - - // Convert to a Python list of long. - - PyObject *l; - - // Create the list. - - if ((l = PyList_New(sipCpp -> count())) == NULL) - return NULL; - - // Get it. - - for (uint i = 0; i < sipCpp -> count(); ++i) - if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0) - { - Py_DECREF(l); - - return NULL; - } - - return l; -%End - -%ConvertToTypeCode - // Convert a Python list of long to a TQValueList on the heap. - - if (sipIsErr == NULL) - return PyList_Check(sipPy); - - if (sipPy == Py_None) - { - *sipCppPtr = NULL; - - return 0; - } - - TQValueList *qvl = new TQValueList; - - PyErr_Clear(); - - for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) - { - qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i))); - - if (PyErr_Occurred() != NULL) - { - delete qvl; - *sipIsErr = 1; - - return 0; - } - } - - *sipCppPtr = qvl; - - return 1; -%End -};*/ - - diff --git a/sip/tdecore/ktempfile.sip b/sip/tdecore/ktempfile.sip deleted file mode 100644 index 3e5efc2..0000000 --- a/sip/tdecore/ktempfile.sip +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdecore 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 KTempFile -{ -%TypeHeaderCode -#include -%End - - -public: - KTempFile (TQString = TQString ::null , TQString = TQString ::null , int = 384); - void setAutoDelete (bool); - int status (); - TQString name (); - int handle (); -//ig FILE* fstream (); - TQTextStream* textStream (); - TQDataStream* dataStream (); - TQFile* file (); - void unlink (); - -%If ( KDE_3_3_0 - ) - bool sync (); -%End - - bool close (); - -protected: - KTempFile (bool); - bool create (const TQString&, const TQString&, int); - void setError (int); - -}; // class KTempFile - diff --git a/sip/tdecore/tdeglobal.sip b/sip/tdecore/tdeglobal.sip new file mode 100644 index 0000000..948bb9d --- /dev/null +++ b/sip/tdecore/tdeglobal.sip @@ -0,0 +1,65 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEGlobal +{ +%TypeHeaderCode +#include +%End + + +public: + static TDEInstance* instance (); + static TDEStandardDirs* dirs (); + static TDEConfig* config (); + +%If ( KDE_3_2_0 - ) + static TDESharedConfig* sharedConfig (); +%End + + static TDEIconLoader* iconLoader (); + static TDELocale* locale (); + static KCharsets* charsets (); + static const TQString& staticQString (const char*); + static const TQString& staticQString (const TQString&); + static void registerStaticDeleter (KStaticDeleterBase*); + static void unregisterStaticDeleter (KStaticDeleterBase*); + static void deleteStaticDeleters (); +//ig KStringDict* _stringDict; +//ig TDEInstance* _instance; +//ig TDELocale* _locale; +//ig KCharsets* _charsets; +//ig KStaticDeleterList* _staticDeleters; + static void setActiveInstance (TDEInstance*); + static TDEInstance* activeInstance (); +//ig TDEInstance* _activeInstance; + +}; // class TDEGlobal + + +%If ( KDE_3_4_0 - ) +int kasciistricmp (const char*, const char*); +%End diff --git a/sip/tdecore/tdeglobalsettings.sip b/sip/tdecore/tdeglobalsettings.sip new file mode 100644 index 0000000..7763820 --- /dev/null +++ b/sip/tdecore/tdeglobalsettings.sip @@ -0,0 +1,157 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEGlobalSettings +{ +%TypeHeaderCode +#include +%End + + +public: + static int dndEventDelay (); + static bool singleClick (); + +%If ( KDE_3_1_0 - ) + + enum TearOffHandle + { + Disable, + ApplicationLevel, + Enable + }; + + static TDEGlobalSettings::TearOffHandle insertTearOffHandle (); +%End + + static bool changeCursorOverIcon (); + static bool visualActivate (); + static uint visualActivateSpeed (); + static int autoSelectDelay (); + static int contextMenuKey (); + static bool showContextMenusOnPress (); + + enum Completion + { + CompletionNone, + CompletionAuto, + CompletionMan, + CompletionShell, + CompletionPopup, + CompletionPopupAuto + }; + + static Completion completionMode (); + + class KMouseSettings + { + + public: + + enum + { + RightHanded, + LeftHanded + }; + + int handed; + + }; // class KMouseSettings + + +public: + static TDEGlobalSettings::KMouseSettings& mouseSettings (); + static TQString desktopPath (); + static TQString autostartPath (); + static TQString trashPath (); + static TQString documentPath (); + static TQColor toolBarHighlightColor (); + static TQColor inactiveTitleColor (); + static TQColor inactiveTextColor (); + static TQColor activeTitleColor (); + static TQColor activeTextColor (); + static int contrast (); + +%If ( KDE_3_4_0 - ) + static TQColor buttonBackground (); + static TQColor buttonTextColor (); +%End + + static TQColor baseColor (); + static TQColor textColor (); + static TQColor linkColor (); + static TQColor visitedLinkColor (); + static TQColor highlightedTextColor (); + static TQColor highlightColor (); + static TQColor alternateBackgroundColor (); + static TQColor calculateAlternateBackgroundColor (const TQColor&); + +%If ( KDE_3_4_0 - ) + static bool shadeSortColumn (); +%End + + static TQFont generalFont (); + static TQFont fixedFont (); + static TQFont toolBarFont (); + static TQFont menuFont (); + static TQFont windowTitleFont (); + static TQFont taskbarFont (); + +%If ( KDE_3_1_0 - ) + static TQFont largeFont (const TQString& = TQString ::null ); +%End + + static bool isMultiHead (); + +%If ( KDE_3_1_0 - ) + static bool wheelMouseZooms (); + +%If ( KDE_3_2_0 - ) + static TQRect splashScreenDesktopGeometry (); + static TQRect desktopGeometry (const TQPoint&); + static TQRect desktopGeometry (TQWidget*); + static bool showIconsOnPushButtons (); + static bool showFilePreview (const KURL&); + static bool opaqueResize (); + +%If ( KDE_3_3_0 - ) + static int buttonLayout (); +%End + +%End + +%End + + +public: + +%If ( - KDE_3_1_0 ) + static bool insertTearOffHandle (); +%End + + +}; // class TDEGlobalSettings + diff --git a/sip/tdecore/tdelocale.sip b/sip/tdecore/tdelocale.sip new file mode 100644 index 0000000..ee5367b --- /dev/null +++ b/sip/tdecore/tdelocale.sip @@ -0,0 +1,243 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDELocale +{ +%TypeHeaderCode +#include +%End + + +public: + TDELocale (const TQString&, TDEConfig* = 0); +//ig TDELocale (const TDELocale&); + TQString translate (const char*) const; + TQString translate (const char*, const char*) const; + TQString translate (const char*, const char*, ulong) const; + bool setEncoding (int); + bool setLanguage (const TQString&); + bool setLanguage (const TQStringList&); + bool setCountry (const TQString&); + + enum SignPosition + { + ParensAround, + BeforeQuantityMoney, + AfterQuantityMoney, + BeforeMoney, + AfterMoney + }; + + TQString decimalSymbol () const; + TQString thousandsSeparator () const; + TQString currencySymbol () const; + TQString monetaryDecimalSymbol () const; + TQString monetaryThousandsSeparator () const; + TQString positiveSign () const; + TQString negativeSign () const; + int fracDigits () const; + bool positivePrefixCurrencySymbol () const; + bool negativePrefixCurrencySymbol () const; + SignPosition positiveMonetarySignPosition () const; + SignPosition negativeMonetarySignPosition () const; + TQString formatMoney (double, const TQString& = TQString ::null , int = -1) const; + TQString formatNumber (double, int = -1) const; + TQString formatNumber (const TQString&) const; + +%If ( KDE_3_5_0 - ) + TQString formatNumber (const TQString&, bool, int) const; +%End + + +%If ( KDE_3_2_0 - ) + TQString formatLong (long) const; +%End + + +%If ( KDE_3_1_0 - ) + bool nounDeclension () const; +%End + + TQString formatDate (const TQDate&, bool = 0) const; + +%If ( KDE_3_1_0 - ) + bool dateMonthNamePossessive () const; + +%If ( KDE_3_3_0 - ) + TQString formatTime (const TQTime&, bool, bool) const; +%End + +%End + + TQString formatTime (const TQTime&, bool = 0) const; + bool use12Clock () const; + bool weekStartsMonday () const; + +%If ( KDE_3_1_0 - ) + int weekStartDay () const; +%End + + TQString monthName (int, bool = 0) const; + +%If ( KDE_3_1_0 - ) + TQString monthNamePossessive (int, bool = 0) const; +%End + + TQString weekDayName (int, bool = 0) const; + +%If ( KDE_3_2_0 - ) + const KCalendarSystem* calendar () const; + TQString calendarType () const; + void setCalendar (const TQString&); +%End + + TQString formatDateTime (const TQDateTime&, bool, bool = 0) const; + double readMoney (const TQString&, bool* = 0) const; + double readNumber (const TQString&, bool* = 0) const; + TQDate readDate (const TQString&, bool* = 0) const; + TQDate readDate (const TQString&, const TQString&, bool* = 0) const; + +%If ( KDE_3_2_0 - ) + + enum ReadDateFlags + { + NormalFormat, + ShortFormat + }; + + TQDate readDate (const TQString&, TDELocale::ReadDateFlags, bool* = 0) const; +%End + + TQTime readTime (const TQString&, bool* = 0) const; + +%If ( KDE_3_2_0 - ) + + enum ReadTimeFlags + { + WithSeconds, + WithoutSeconds + }; + + TQTime readTime (const TQString&, TDELocale::ReadTimeFlags, bool* = 0) const; +%End + + TQString language () const; + TQString country () const; + TQStringList languagesTwoAlpha () const; + TQStringList languageList () const; + const char* encoding () const; + int encodingMib () const; + TQTextCodec* codecForEncoding () const; + +%If ( KDE_3_2_0 - ) + int fileEncodingMib () const; +%End + + void setDateFormat (const TQString&); + void setDateFormatShort (const TQString&); + +%If ( KDE_3_1_0 - ) + void setDateMonthNamePossessive (bool); +%End + + void setTimeFormat (const TQString&); + void setWeekStartsMonday (bool); + +%If ( KDE_3_1_0 - ) + void setWeekStartDay (int); +%End + + TQString dateFormat () const; + TQString dateFormatShort () const; + TQString timeFormat () const; + void setDecimalSymbol (const TQString&); + void setThousandsSeparator (const TQString&); + void setPositiveSign (const TQString&); + void setNegativeSign (const TQString&); + void setPositiveMonetarySignPosition (TDELocale::SignPosition); + void setNegativeMonetarySignPosition (TDELocale::SignPosition); + void setPositivePrefixCurrencySymbol (bool); + void setNegativePrefixCurrencySymbol (bool); + void setFracDigits (int); + void setMonetaryThousandsSeparator (const TQString&); + void setMonetaryDecimalSymbol (const TQString&); + void setCurrencySymbol (const TQString&); + int pageSize () const; + void setPageSize (int); + + enum MeasureSystem + { + Metric, + Imperial + }; + + TDELocale::MeasureSystem measureSystem () const; + void setMeasureSystem (TDELocale::MeasureSystem); + void insertCatalogue (const TQString&); + void removeCatalogue (const TQString&); + void setActiveCatalogue (const TQString&); + TQString translateQt (const char*, const char*, const char*) const; + +%If ( KDE_3_1_0 - ) + TQStringList allLanguagesTwoAlpha () const; + TQString twoAlphaToLanguageName (const TQString&) const; + TQStringList allCountriesTwoAlpha () const; + TQString twoAlphaToCountryName (const TQString&) const; +%End + + static void splitLocale (const TQString&, TQString&, TQString&, TQString&); + static void setMainCatalogue (const char*); + static TQString langLookup (const TQString&, const char* = "html"); + static TQString defaultLanguage (); + static TQString defaultCountry (); + +%If ( KDE_3_0_1 - ) + static TQString _initLanguage (TDEConfigBase*); +%End + + TQString formatMoney (const TQString&) const; + TQString languages () const; +//ig bool setCharset (const TQString&); +//ig TQString charset () const; + +protected: +//ig static void initInstance (); +//force + +private: + TDELocale (const TDELocale&); +//end + +}; // class TDELocale + + +%ModuleCode +#include +%End + +TQString i18n (const char*); +TQString i18n (const char*, const char*); +TQString i18n (const char*, const char*, ulong); diff --git a/sip/tdecore/tdestartupinfo.sip b/sip/tdecore/tdestartupinfo.sip new file mode 100644 index 0000000..95e6e16 --- /dev/null +++ b/sip/tdecore/tdestartupinfo.sip @@ -0,0 +1,280 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 TDEStartupInfo : TQObject +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_2_0 - ) + static void disableAutoAppStartedSending (bool = 1); +%End + + static void appStarted (); + +%If ( KDE_3_2_0 - ) + static void appStarted (const TQCString&); + static void setNewStartupId (TQWidget*, const TQCString&); + static void silenceStartup (bool); + +%If ( KDE_3_3_0 - ) + static TQCString createNewStartupId (); +%End + +%End + + +%If ( KDE_3_1_1 - ) + + enum + { + CleanOnCantDetect, + DisableKWinModule, + AnnounceSilenceChanges + }; + +%End + + TDEStartupInfo (bool, TQObject* /TransferThis/ = 0, const char* = 0); + static bool sendStartup (const TDEStartupInfoId&, const TDEStartupInfoData&); +//ig static bool sendStartupX (Display*, const TDEStartupInfoId&, const TDEStartupInfoData&); + static bool sendChange (const TDEStartupInfoId&, const TDEStartupInfoData&); +//ig static bool sendChangeX (Display*, const TDEStartupInfoId&, const TDEStartupInfoData&); + static bool sendFinish (const TDEStartupInfoId&); +//ig static bool sendFinishX (Display*, const TDEStartupInfoId&); + static bool sendFinish (const TDEStartupInfoId&, const TDEStartupInfoData&); +//ig static bool sendFinishX (Display*, const TDEStartupInfoId&, const TDEStartupInfoData&); + static TDEStartupInfoId currentStartupIdEnv (); + static void resetStartupEnv (); + + enum startup_t + { + NoMatch, + Match, + CantDetect + }; + + TDEStartupInfo::startup_t checkStartup (WId); + TDEStartupInfo::startup_t checkStartup (WId, TDEStartupInfoId&); + TDEStartupInfo::startup_t checkStartup (WId, TDEStartupInfoData&); + TDEStartupInfo::startup_t checkStartup (WId, TDEStartupInfoId&, TDEStartupInfoData&); + void setTimeout (uint); + static void setWindowStartupId (WId, const TQCString&); + static TQCString windowStartupId (WId); + +%If ( KDE_3_2_0 - ) + static void handleAutoAppStartedSending (); +%End + + +signals: + void gotNewStartup (const TDEStartupInfoId&, const TDEStartupInfoData&); + void gotStartupChange (const TDEStartupInfoId&, const TDEStartupInfoData&); + void gotRemoveStartup (const TDEStartupInfoId&, const TDEStartupInfoData&); + +protected: + virtual void customEvent (TQCustomEvent*); + +}; // class TDEStartupInfo + + +class TDEStartupInfoId +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_4 - ) + bool operator == (const TDEStartupInfoId&) const; + bool operator != (const TDEStartupInfoId&) const; +%End + + bool none () const; + void initId (const TQCString& = ""); + const TQCString& id () const; + +%If ( KDE_3_3_0 - ) + ulong timestamp () const; +%End + + bool setupStartupEnv () const; + TDEStartupInfoId (); + TDEStartupInfoId (const TDEStartupInfoId&); + +%If ( KDE_3_1_4 - ) + bool operator < (const TDEStartupInfoId&) const; +%End + + +private: + TDEStartupInfoId (const TQString&); + +}; // class TDEStartupInfoId + + +class TDEStartupInfoData +{ +%TypeHeaderCode +#include +%End + + +public: + void setBin (const TQString&); + const TQString& bin () const; + void setName (const TQString&); + const TQString& findName () const; + const TQString& name () const; + +%If ( KDE_3_2_0 - ) + void setDescription (const TQString&); + const TQString& findDescription () const; + const TQString& description () const; +%End + + void setIcon (const TQString&); + const TQString& findIcon () const; + const TQString& icon () const; + void setDesktop (int); + int desktop () const; + void setWMClass (const TQCString&); + const TQCString findWMClass () const; + const TQCString& WMClass () const; + void addPid (pid_t); + const TQValueList& pids () const; + bool is_pid (pid_t) const; + void setHostname (const TQCString& = TQCString ()); + const TQCString& hostname () const; + +%If ( KDE_3_1_1 - ) + + enum TriState + { + Yes, + No, + Unknown + }; + + void setSilent (TDEStartupInfoData::TriState); + TDEStartupInfoData::TriState silent () const; + +%If ( KDE_3_2_0 - ) + void setTimestamp (ulong); + ulong timestamp () const; + int screen () const; + void setScreen (int); +%End + +%End + + void update (const TDEStartupInfoData&); + TDEStartupInfoData (); + TDEStartupInfoData (const TDEStartupInfoData&); + +private: + TDEStartupInfoData (const TQString&); + +}; // class TDEStartupInfoData + +/*%MappedType TQValueList +//converts a Python list of long +{ +%TypeHeaderCode +#include +%End + +%ConvertFromTypeCode + // Handle no list. + + if (!sipCpp) + return PyList_New(0); + + // Convert to a Python list of long. + + PyObject *l; + + // Create the list. + + if ((l = PyList_New(sipCpp -> count())) == NULL) + return NULL; + + // Get it. + + for (uint i = 0; i < sipCpp -> count(); ++i) + if (PyList_SetItem(l,i,PyLong_FromLong((long)(*sipCpp)[i])) < 0) + { + Py_DECREF(l); + + return NULL; + } + + return l; +%End + +%ConvertToTypeCode + // Convert a Python list of long to a TQValueList on the heap. + + if (sipIsErr == NULL) + return PyList_Check(sipPy); + + if (sipPy == Py_None) + { + *sipCppPtr = NULL; + + return 0; + } + + TQValueList *qvl = new TQValueList; + + PyErr_Clear(); + + for (int i = 0; i < PyList_GET_SIZE(sipPy); ++i) + { + qvl -> append((pid_t)PyLong_AsLong(PyList_GET_ITEM(sipPy,i))); + + if (PyErr_Occurred() != NULL) + { + delete qvl; + *sipIsErr = 1; + + return 0; + } + } + + *sipCppPtr = qvl; + + return 1; +%End +};*/ + + diff --git a/sip/tdecore/tdetempfile.sip b/sip/tdecore/tdetempfile.sip new file mode 100644 index 0000000..3e5efc2 --- /dev/null +++ b/sip/tdecore/tdetempfile.sip @@ -0,0 +1,58 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdecore 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 KTempFile +{ +%TypeHeaderCode +#include +%End + + +public: + KTempFile (TQString = TQString ::null , TQString = TQString ::null , int = 384); + void setAutoDelete (bool); + int status (); + TQString name (); + int handle (); +//ig FILE* fstream (); + TQTextStream* textStream (); + TQDataStream* dataStream (); + TQFile* file (); + void unlink (); + +%If ( KDE_3_3_0 - ) + bool sync (); +%End + + bool close (); + +protected: + KTempFile (bool); + bool create (const TQString&, const TQString&, int); + void setError (int); + +}; // class KTempFile + diff --git a/sip/tdefile/kdiroperator.sip b/sip/tdefile/kdiroperator.sip deleted file mode 100644 index 88dde85..0000000 --- a/sip/tdefile/kdiroperator.sip +++ /dev/null @@ -1,205 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdefile 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 KDirOperator : TQWidget -{ -%TypeHeaderCode -#include -%End - - -public: - -%If ( KDE_3_1_0 - ) - - enum ActionTypes - { - SortActions, - ViewActions, - NavActions, - FileActions, - AllActions - }; - -%End - - KDirOperator (const KURL& = KURL (), TQWidget* /TransferThis/ = 0, const char* = 0); - void setShowHiddenFiles (bool); - bool showHiddenFiles () const; - void close (); - -%If ( KDE_3_4_0 - ) - virtual bool close (bool); -%End - - void setNameFilter (const TQString&); - const TQString& nameFilter () const; - -%If ( KDE_3_1_2 - ) - void setMimeFilter (const TQStringList&); - TQStringList mimeFilter () const; - void clearFilter (); -%End - - KURL url () const; - void setURL (const KURL&, bool); - void setCurrentItem (const TQString&); - void setView (KFileView*); - const KFileView* view () const; - TQWidget* viewWidget () const; - void setView (KFile::FileView); - void setSorting (TQDir::SortSpec); - TQDir::SortSpec sorting () const; - bool isRoot () const; - KDirLister* dirLister () const; - KProgress* progressBar () const; - void setMode (KFile::Mode); - KFile::Mode mode () const; - void setPreviewWidget (const TQWidget*); - const KFileItemList* selectedItems () const; - bool isSelected (const KFileItem*) const; - int numDirs () const; - int numFiles () const; - TDECompletion* completionObject () const; - TDECompletion* dirCompletionObject () const; - TDEActionCollection* actionCollection () const; - -%If ( KDE_3_1_0 - ) - void setViewConfig (TDEConfig*, const TQString&); - TDEConfig* viewConfig (); - TQString viewConfigGroup () const; -%End - - virtual void readConfig (TDEConfig*, const TQString& = TQString ::null ); - virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null ); - void setOnlyDoubleClickSelectsFiles (bool); - bool onlyDoubleClickSelectsFiles () const; - bool mkdir (const TQString&, bool = 1); - TDEIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/; - -%If ( KDE_3_0_3 - ) - TDEIO::DeleteJob* del (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1) /PyName=del_/; -%End - - void clearHistory (); - void setEnableDirHighlighting (bool); - bool dirHighlighting () const; - bool dirOnlyMode () const; - static bool dirOnlyMode (uint); - -%If ( KDE_3_1_0 - ) - void setupMenu (int); - -%If ( KDE_3_2_0 - ) - virtual void setAcceptDrops (bool); - void setDropOptions (int); - -%If ( KDE_3_4_0 - ) - TDEIO::CopyJob* trash (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1); -%End - -%End - -%End - - -protected: - virtual KFileView* createView (TQWidget* /Transfer/, KFile::FileView); - void setDirLister (KDirLister*); - -%If ( KDE_3_2_0 - ) - virtual void resizeEvent (TQResizeEvent*); -%End - - void setupActions (); - void updateSortActions (); - void updateViewActions (); - void setupMenu (); - void prepareCompletionObjects (); - bool checkPreviewSupport (); - -public slots: - void back (); - void forward (); - void home (); - void cdUp (); - void updateDir (); - void rereadDir (); - void mkdir (); - void deleteSelected (); - void updateSelectionDependentActions (); - TQString makeCompletion (const TQString&); - TQString makeDirCompletion (const TQString&); - -%If ( KDE_3_4_0 - ) - void trashSelected (TDEAction::ActivationReason, TQt::ButtonState); -%End - - -protected slots: - void resetCursor (); - void pathChanged (); - void insertNewFiles (const KFileItemList&); - void itemDeleted (KFileItem*); - void selectDir (const KFileItem*); - void selectFile (const KFileItem*); - void highlightFile (const KFileItem*); - virtual void activatedMenu (const KFileItem*, const TQPoint&); - void sortByName (); - void sortBySize (); - void sortByDate (); - void sortReversed (); - void toggleDirsFirst (); - void toggleIgnoreCase (); - void slotCompletionMatch (const TQString&); - -signals: - void urlEntered (const KURL&); - void updateInformation (int, int); - void completion (const TQString&); - void finishedLoading (); - void viewChanged (KFileView*); - void fileHighlighted (const KFileItem*); - void dirActivated (const KFileItem*); - void fileSelected (const KFileItem*); - -%If ( KDE_3_2_0 - ) - void dropped (const KFileItem*, TQDropEvent*, const KURL::List&); -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -protected: - -%If ( - KDE_3_2_0 ) - void resizeEvent (TQResizeEvent*); -%End - - -}; // class KDirOperator - diff --git a/sip/tdefile/tdediroperator.sip b/sip/tdefile/tdediroperator.sip new file mode 100644 index 0000000..88dde85 --- /dev/null +++ b/sip/tdefile/tdediroperator.sip @@ -0,0 +1,205 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdefile 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 KDirOperator : TQWidget +{ +%TypeHeaderCode +#include +%End + + +public: + +%If ( KDE_3_1_0 - ) + + enum ActionTypes + { + SortActions, + ViewActions, + NavActions, + FileActions, + AllActions + }; + +%End + + KDirOperator (const KURL& = KURL (), TQWidget* /TransferThis/ = 0, const char* = 0); + void setShowHiddenFiles (bool); + bool showHiddenFiles () const; + void close (); + +%If ( KDE_3_4_0 - ) + virtual bool close (bool); +%End + + void setNameFilter (const TQString&); + const TQString& nameFilter () const; + +%If ( KDE_3_1_2 - ) + void setMimeFilter (const TQStringList&); + TQStringList mimeFilter () const; + void clearFilter (); +%End + + KURL url () const; + void setURL (const KURL&, bool); + void setCurrentItem (const TQString&); + void setView (KFileView*); + const KFileView* view () const; + TQWidget* viewWidget () const; + void setView (KFile::FileView); + void setSorting (TQDir::SortSpec); + TQDir::SortSpec sorting () const; + bool isRoot () const; + KDirLister* dirLister () const; + KProgress* progressBar () const; + void setMode (KFile::Mode); + KFile::Mode mode () const; + void setPreviewWidget (const TQWidget*); + const KFileItemList* selectedItems () const; + bool isSelected (const KFileItem*) const; + int numDirs () const; + int numFiles () const; + TDECompletion* completionObject () const; + TDECompletion* dirCompletionObject () const; + TDEActionCollection* actionCollection () const; + +%If ( KDE_3_1_0 - ) + void setViewConfig (TDEConfig*, const TQString&); + TDEConfig* viewConfig (); + TQString viewConfigGroup () const; +%End + + virtual void readConfig (TDEConfig*, const TQString& = TQString ::null ); + virtual void writeConfig (TDEConfig*, const TQString& = TQString ::null ); + void setOnlyDoubleClickSelectsFiles (bool); + bool onlyDoubleClickSelectsFiles () const; + bool mkdir (const TQString&, bool = 1); + TDEIO::DeleteJob* del (const KFileItemList&, bool = 1, bool = 1) /PyName=del_/; + +%If ( KDE_3_0_3 - ) + TDEIO::DeleteJob* del (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1) /PyName=del_/; +%End + + void clearHistory (); + void setEnableDirHighlighting (bool); + bool dirHighlighting () const; + bool dirOnlyMode () const; + static bool dirOnlyMode (uint); + +%If ( KDE_3_1_0 - ) + void setupMenu (int); + +%If ( KDE_3_2_0 - ) + virtual void setAcceptDrops (bool); + void setDropOptions (int); + +%If ( KDE_3_4_0 - ) + TDEIO::CopyJob* trash (const KFileItemList&, TQWidget* /Transfer/, bool = 1, bool = 1); +%End + +%End + +%End + + +protected: + virtual KFileView* createView (TQWidget* /Transfer/, KFile::FileView); + void setDirLister (KDirLister*); + +%If ( KDE_3_2_0 - ) + virtual void resizeEvent (TQResizeEvent*); +%End + + void setupActions (); + void updateSortActions (); + void updateViewActions (); + void setupMenu (); + void prepareCompletionObjects (); + bool checkPreviewSupport (); + +public slots: + void back (); + void forward (); + void home (); + void cdUp (); + void updateDir (); + void rereadDir (); + void mkdir (); + void deleteSelected (); + void updateSelectionDependentActions (); + TQString makeCompletion (const TQString&); + TQString makeDirCompletion (const TQString&); + +%If ( KDE_3_4_0 - ) + void trashSelected (TDEAction::ActivationReason, TQt::ButtonState); +%End + + +protected slots: + void resetCursor (); + void pathChanged (); + void insertNewFiles (const KFileItemList&); + void itemDeleted (KFileItem*); + void selectDir (const KFileItem*); + void selectFile (const KFileItem*); + void highlightFile (const KFileItem*); + virtual void activatedMenu (const KFileItem*, const TQPoint&); + void sortByName (); + void sortBySize (); + void sortByDate (); + void sortReversed (); + void toggleDirsFirst (); + void toggleIgnoreCase (); + void slotCompletionMatch (const TQString&); + +signals: + void urlEntered (const KURL&); + void updateInformation (int, int); + void completion (const TQString&); + void finishedLoading (); + void viewChanged (KFileView*); + void fileHighlighted (const KFileItem*); + void dirActivated (const KFileItem*); + void fileSelected (const KFileItem*); + +%If ( KDE_3_2_0 - ) + void dropped (const KFileItem*, TQDropEvent*, const KURL::List&); +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +protected: + +%If ( - KDE_3_2_0 ) + void resizeEvent (TQResizeEvent*); +%End + + +}; // class KDirOperator + diff --git a/sip/tdeio/kemailsettings.sip b/sip/tdeio/kemailsettings.sip deleted file mode 100644 index f63c99b..0000000 --- a/sip/tdeio/kemailsettings.sip +++ /dev/null @@ -1,84 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeio 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 KEMailSettings -{ -%TypeHeaderCode -#include -%End - - -public: - - enum Setting - { - ClientProgram, - ClientTerminal, - RealName, - EmailAddress, - ReplyToAddress, - Organization, - OutServer, - OutServerLogin, - OutServerPass, - OutServerType, - OutServerCommand, - OutServerTLS, - InServer, - InServerLogin, - InServerPass, - InServerType, - InServerMBXType, - InServerTLS - }; - - - enum Extension - { - POP3, - SMTP, - OTHER - }; - - KEMailSettings (); - TQStringList profiles () const; - TQString currentProfileName () const; - void setProfile (const TQString&); - TQString defaultProfileName () const; - void setDefault (const TQString&); - TQString getSetting (KEMailSettings::Setting); - void setSetting (KEMailSettings::Setting, const TQString&); - -public: - -%If ( - KDE_3_2_0 ) -//ig TQString getExtendedSetting (KEMailSettings::Extension, const TQString&); -//ig void setExtendedSetting (KEMailSettings::Extension, const TQString&, const TQString&); -%End - - -}; // class KEMailSettings - diff --git a/sip/tdeio/kprotocolmanager.sip b/sip/tdeio/kprotocolmanager.sip deleted file mode 100644 index 0170aa0..0000000 --- a/sip/tdeio/kprotocolmanager.sip +++ /dev/null @@ -1,99 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson -// may also apply - - -// Generated by preSip -// module tdeio 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 KProtocolManager -{ -%TypeHeaderCode -#include -%End - - -public: - static TQString defaultUserAgent (); - static TQString defaultUserAgent (const TQString&); - static TQString userAgentForHost (const TQString&); - static int readTimeout (); - static int connectTimeout (); - static int proxyConnectTimeout (); - static int responseTimeout (); - static bool useProxy (); - static bool useReverseProxy (); - - enum ProxyType - { - NoProxy, - ManualProxy, - PACProxy, - WPADProxy, - EnvVarProxy - }; - - static KProtocolManager::ProxyType proxyType (); - - enum ProxyAuthMode - { - Prompt, - Automatic - }; - - static KProtocolManager::ProxyAuthMode proxyAuthMode (); - static TQString noProxyFor (); - -%If ( KDE_3_5_1 - ) - static TQString noProxyForRaw (); -%End - - static TQString proxyFor (const TQString&); - static TQString proxyForURL (const KURL&); - static void badProxy (const TQString&); - static TQString proxyConfigScript (); - static bool useCache (); - static int maxCacheAge (); - static int maxCacheSize (); - static TQString cacheDir (); - static TDEIO::CacheControl cacheControl (); - static bool autoResume (); - static bool markPartial (); - static int minimumKeepSize (); - -%If ( KDE_3_1_0 - ) - static bool persistentProxyConnection (); -%End - - static bool persistentConnections (); - static void reparseConfiguration (); - static TQString slaveProtocol (const KURL&, TQString&); - static TDEConfig* config (); - -public: - -%If ( - KDE_3_2_0 ) -//ig static int defaultConnectTimeout (); -%End - - -}; // class KProtocolManager - diff --git a/sip/tdeio/tdeemailsettings.sip b/sip/tdeio/tdeemailsettings.sip new file mode 100644 index 0000000..f63c99b --- /dev/null +++ b/sip/tdeio/tdeemailsettings.sip @@ -0,0 +1,84 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeio 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 KEMailSettings +{ +%TypeHeaderCode +#include +%End + + +public: + + enum Setting + { + ClientProgram, + ClientTerminal, + RealName, + EmailAddress, + ReplyToAddress, + Organization, + OutServer, + OutServerLogin, + OutServerPass, + OutServerType, + OutServerCommand, + OutServerTLS, + InServer, + InServerLogin, + InServerPass, + InServerType, + InServerMBXType, + InServerTLS + }; + + + enum Extension + { + POP3, + SMTP, + OTHER + }; + + KEMailSettings (); + TQStringList profiles () const; + TQString currentProfileName () const; + void setProfile (const TQString&); + TQString defaultProfileName () const; + void setDefault (const TQString&); + TQString getSetting (KEMailSettings::Setting); + void setSetting (KEMailSettings::Setting, const TQString&); + +public: + +%If ( - KDE_3_2_0 ) +//ig TQString getExtendedSetting (KEMailSettings::Extension, const TQString&); +//ig void setExtendedSetting (KEMailSettings::Extension, const TQString&, const TQString&); +%End + + +}; // class KEMailSettings + diff --git a/sip/tdeio/tdeprotocolmanager.sip b/sip/tdeio/tdeprotocolmanager.sip new file mode 100644 index 0000000..0170aa0 --- /dev/null +++ b/sip/tdeio/tdeprotocolmanager.sip @@ -0,0 +1,99 @@ +// +// Copyright 2006 Jim Bublitz +// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson +// may also apply + + +// Generated by preSip +// module tdeio 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 KProtocolManager +{ +%TypeHeaderCode +#include +%End + + +public: + static TQString defaultUserAgent (); + static TQString defaultUserAgent (const TQString&); + static TQString userAgentForHost (const TQString&); + static int readTimeout (); + static int connectTimeout (); + static int proxyConnectTimeout (); + static int responseTimeout (); + static bool useProxy (); + static bool useReverseProxy (); + + enum ProxyType + { + NoProxy, + ManualProxy, + PACProxy, + WPADProxy, + EnvVarProxy + }; + + static KProtocolManager::ProxyType proxyType (); + + enum ProxyAuthMode + { + Prompt, + Automatic + }; + + static KProtocolManager::ProxyAuthMode proxyAuthMode (); + static TQString noProxyFor (); + +%If ( KDE_3_5_1 - ) + static TQString noProxyForRaw (); +%End + + static TQString proxyFor (const TQString&); + static TQString proxyForURL (const KURL&); + static void badProxy (const TQString&); + static TQString proxyConfigScript (); + static bool useCache (); + static int maxCacheAge (); + static int maxCacheSize (); + static TQString cacheDir (); + static TDEIO::CacheControl cacheControl (); + static bool autoResume (); + static bool markPartial (); + static int minimumKeepSize (); + +%If ( KDE_3_1_0 - ) + static bool persistentProxyConnection (); +%End + + static bool persistentConnections (); + static void reparseConfiguration (); + static TQString slaveProtocol (const KURL&, TQString&); + static TDEConfig* config (); + +public: + +%If ( - KDE_3_2_0 ) +//ig static int defaultConnectTimeout (); +%End + + +}; // class KProtocolManager + diff --git a/sip/tdeui/kmenubar.sip b/sip/tdeui/kmenubar.sip deleted file mode 100644 index 8027757..0000000 --- a/sip/tdeui/kmenubar.sip +++ /dev/null @@ -1,91 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// 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 KMenuBar : TQMenuBar -{ -%TypeHeaderCode -#include -%End - - -public: - KMenuBar (TQWidget* /TransferThis/ = 0, const char* = 0); - void setTopLevelMenu (bool = 1); - bool isTopLevelMenu () const; - -%If ( KDE_3_1_0 - ) - virtual void setGeometry (const TQRect&); -%End - - virtual void setGeometry (int, int, int, int); - -%If ( KDE_3_2_0 - ) - virtual void resize (int, int); - void resize (const TQSize&); -%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 TQSize sizeHint () const; -%End - -%End - - -protected slots: - void slotReadConfig (); - -protected: - -%If ( KDE_3_1_0 - ) - virtual void showEvent (TQShowEvent*); - virtual void resizeEvent (TQResizeEvent*); - virtual bool eventFilter (TQObject*, TQEvent*); -//ig virtual bool x11Event (XEvent*); - -%If ( KDE_3_2_3 - ) - virtual void closeEvent (TQCloseEvent*); - -%If ( KDE_3_3_0 - ) - virtual void drawContents (TQPainter*); -%End - -%End - -%End - - -protected: -//igx virtual void virtual_hook (int, void*); - -}; // class KMenuBar - diff --git a/sip/tdeui/kmessagebox.sip b/sip/tdeui/kmessagebox.sip deleted file mode 100644 index b5a75fc..0000000 --- a/sip/tdeui/kmessagebox.sip +++ /dev/null @@ -1,260 +0,0 @@ -// -// Copyright 2006 Jim Bublitz -// 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 KMessageBox -{ -%TypeHeaderCode -#include -%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 (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int questionYesNoWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); -%End - - static int questionYesNoCancel (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int questionYesNoCancelWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); -%End - - static int questionYesNoList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int questionYesNoListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); -%End - - static int warningYesNo (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningYesNoWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify |Dangerous ); - static int warningYesNoList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify |Dangerous ); - static int warningYesNoListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify |Dangerous ); -%End - - static int warningContinueCancel (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningContinueCancelWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); -%End - - -%If ( KDE_3_1_0 - ) - static int warningContinueCancelList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningContinueCancelListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); -%End - -%End - - static int warningYesNoCancel (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static int warningYesNoCancelWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - static int warningYesNoCancelList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); - static int warningYesNoCancelListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); -%End - - static void error (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void errorWId (WId, const TQString&, const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_4_0 - ) - static void errorList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , int = Notify ); - static void errorListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , int = Notify ); -%End - -%End - - static void detailedError (TQWidget* /Transfer/, const TQString&, const TQString&, const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void detailedErrorWId (WId, const TQString&, const TQString&, const TQString& = TQString ::null , int = Notify ); -%End - - static void queuedDetailedError (TQWidget* /Transfer/, const TQString&, const TQString&, const TQString& = TQString ::null ); - -%If ( KDE_3_2_0 - ) - static void queuedDetailedErrorWId (WId, const TQString&, const TQString&, const TQString& = TQString ::null ); -%End - - static void sorry (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void sorryWId (WId, const TQString&, const TQString& = TQString ::null , int = Notify ); -%End - - static void detailedSorry (TQWidget* /Transfer/, const TQString&, const TQString&, const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void detailedSorryWId (WId, const TQString&, const TQString&, const TQString& = TQString ::null , int = Notify ); -%End - - static void information (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static void informationWId (WId, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , int = Notify ); -%End - - -%If ( KDE_3_1_0 - ) - static void informationList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const TQString& = TQString ::null , int = Notify ); - -%If ( KDE_3_2_0 - ) - static void informationListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const TQString& = TQString ::null , int = Notify ); -%End - -%End - - static void enableAllMessages (); - -%If ( KDE_3_2_0 - ) - static void enableMessage (const TQString&); -%End - - static void about (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , bool = 1); - -%If ( KDE_3_2_0 - ) - static int messageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString&, const KGuiItem&, const KGuiItem&, const TQString&, int = Notify ); -%End - - static int messageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), int = Notify ); - -%If ( KDE_3_2_0 - ) - static int messageBoxWId (WId, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); -%End - - -%If ( KDE_3_1_0 - ) - static void queuedMessageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString&, int); - -%If ( KDE_3_2_0 - ) - static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const TQString&, const TQString&, int); -%End - -%End - - static void queuedMessageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null ); - -%If ( KDE_3_2_0 - ) - static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null ); - static bool shouldBeShownYesNo (const TQString&, KMessageBox::ButtonCode&); - static bool shouldBeShownContinue (const TQString&); - static void saveDontShowAgainYesNo (const TQString&, KMessageBox::ButtonCode); - static void saveDontShowAgainContinue (const TQString&); - static void setDontShowAskAgainConfig (TDEConfig*); - -%If ( KDE_3_3_0 - ) - static int createKMessageBox (KDialogBase*, TQMessageBox::Icon, const TQString&, const TQStringList&, const TQString&, bool*, int, const TQString& = TQString ::null ); - static int createKMessageBox (KDialogBase*, TQPixmap, const TQString&, const TQStringList&, const TQString&, bool*, int, const TQString& = TQString ::null , TQMessageBox::Icon = TQMessageBox ::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 (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = TQString ::null , const TQString& = TQString ::null , int = Notify ); -%End - - -%If ( KDE_3_0_3 - KDE_3_1_0 ) - static int warningContinueCancelList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KGuiItem (), const TQString& = TQString ::null , int = Notify ); -%End - - -}; // class KMessageBox - diff --git a/sip/tdeui/tdemenubar.sip b/sip/tdeui/tdemenubar.sip new file mode 100644 index 0000000..8027757 --- /dev/null +++ b/sip/tdeui/tdemenubar.sip @@ -0,0 +1,91 @@ +// +// Copyright 2006 Jim Bublitz +// 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 KMenuBar : TQMenuBar +{ +%TypeHeaderCode +#include +%End + + +public: + KMenuBar (TQWidget* /TransferThis/ = 0, const char* = 0); + void setTopLevelMenu (bool = 1); + bool isTopLevelMenu () const; + +%If ( KDE_3_1_0 - ) + virtual void setGeometry (const TQRect&); +%End + + virtual void setGeometry (int, int, int, int); + +%If ( KDE_3_2_0 - ) + virtual void resize (int, int); + void resize (const TQSize&); +%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 TQSize sizeHint () const; +%End + +%End + + +protected slots: + void slotReadConfig (); + +protected: + +%If ( KDE_3_1_0 - ) + virtual void showEvent (TQShowEvent*); + virtual void resizeEvent (TQResizeEvent*); + virtual bool eventFilter (TQObject*, TQEvent*); +//ig virtual bool x11Event (XEvent*); + +%If ( KDE_3_2_3 - ) + virtual void closeEvent (TQCloseEvent*); + +%If ( KDE_3_3_0 - ) + virtual void drawContents (TQPainter*); +%End + +%End + +%End + + +protected: +//igx virtual void virtual_hook (int, void*); + +}; // class KMenuBar + diff --git a/sip/tdeui/tdemessagebox.sip b/sip/tdeui/tdemessagebox.sip new file mode 100644 index 0000000..b5a75fc --- /dev/null +++ b/sip/tdeui/tdemessagebox.sip @@ -0,0 +1,260 @@ +// +// Copyright 2006 Jim Bublitz +// 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 KMessageBox +{ +%TypeHeaderCode +#include +%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 (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); +%End + + static int questionYesNoCancel (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoCancelWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); +%End + + static int questionYesNoList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int questionYesNoListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); +%End + + static int warningYesNo (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify |Dangerous ); + static int warningYesNoList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify |Dangerous ); + static int warningYesNoListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify |Dangerous ); +%End + + static int warningContinueCancel (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static int warningContinueCancelList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningContinueCancelListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::cont (), const TQString& = TQString ::null , int = Notify ); +%End + +%End + + static int warningYesNoCancel (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static int warningYesNoCancelWId (WId, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + static int warningYesNoCancelList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); + static int warningYesNoCancelListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); +%End + + static void error (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void errorWId (WId, const TQString&, const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_4_0 - ) + static void errorList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , int = Notify ); + static void errorListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , int = Notify ); +%End + +%End + + static void detailedError (TQWidget* /Transfer/, const TQString&, const TQString&, const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedErrorWId (WId, const TQString&, const TQString&, const TQString& = TQString ::null , int = Notify ); +%End + + static void queuedDetailedError (TQWidget* /Transfer/, const TQString&, const TQString&, const TQString& = TQString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedDetailedErrorWId (WId, const TQString&, const TQString&, const TQString& = TQString ::null ); +%End + + static void sorry (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void sorryWId (WId, const TQString&, const TQString& = TQString ::null , int = Notify ); +%End + + static void detailedSorry (TQWidget* /Transfer/, const TQString&, const TQString&, const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void detailedSorryWId (WId, const TQString&, const TQString&, const TQString& = TQString ::null , int = Notify ); +%End + + static void information (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static void informationWId (WId, const TQString&, const TQString& = TQString ::null , const TQString& = TQString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void informationList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const TQString& = TQString ::null , int = Notify ); + +%If ( KDE_3_2_0 - ) + static void informationListWId (WId, const TQString&, const TQStringList&, const TQString& = TQString ::null , const TQString& = TQString ::null , int = Notify ); +%End + +%End + + static void enableAllMessages (); + +%If ( KDE_3_2_0 - ) + static void enableMessage (const TQString&); +%End + + static void about (TQWidget* /Transfer/, const TQString&, const TQString& = TQString ::null , bool = 1); + +%If ( KDE_3_2_0 - ) + static int messageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString&, const KGuiItem&, const KGuiItem&, const TQString&, int = Notify ); +%End + + static int messageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), int = Notify ); + +%If ( KDE_3_2_0 - ) + static int messageBoxWId (WId, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null , const KGuiItem& = KStdGuiItem ::yes (), const KGuiItem& = KStdGuiItem ::no (), const TQString& = TQString ::null , int = Notify ); +%End + + +%If ( KDE_3_1_0 - ) + static void queuedMessageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString&, int); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const TQString&, const TQString&, int); +%End + +%End + + static void queuedMessageBox (TQWidget* /Transfer/, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null ); + +%If ( KDE_3_2_0 - ) + static void queuedMessageBoxWId (WId, KMessageBox::DialogType, const TQString&, const TQString& = TQString ::null ); + static bool shouldBeShownYesNo (const TQString&, KMessageBox::ButtonCode&); + static bool shouldBeShownContinue (const TQString&); + static void saveDontShowAgainYesNo (const TQString&, KMessageBox::ButtonCode); + static void saveDontShowAgainContinue (const TQString&); + static void setDontShowAskAgainConfig (TDEConfig*); + +%If ( KDE_3_3_0 - ) + static int createKMessageBox (KDialogBase*, TQMessageBox::Icon, const TQString&, const TQStringList&, const TQString&, bool*, int, const TQString& = TQString ::null ); + static int createKMessageBox (KDialogBase*, TQPixmap, const TQString&, const TQStringList&, const TQString&, bool*, int, const TQString& = TQString ::null , TQMessageBox::Icon = TQMessageBox ::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 (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = TQString ::null , const TQString& = TQString ::null , int = Notify ); +%End + + +%If ( KDE_3_0_3 - KDE_3_1_0 ) + static int warningContinueCancelList (TQWidget* /Transfer/, const TQString&, const TQStringList&, const TQString& = TQString ::null , const KGuiItem& = KGuiItem (), const TQString& = TQString ::null , int = Notify ); +%End + + +}; // class KMessageBox + -- cgit v1.2.3