You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
4.4 KiB
184 lines
4.4 KiB
13 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
13 years ago
|
// module tdeui version KDE 3.5.3
|
||
13 years ago
|
|
||
|
|
||
|
// 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.
|
||
|
|
||
|
|
||
12 years ago
|
class TDECModule : TQWidget
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
12 years ago
|
#include <tdecmodule.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
|
|
||
|
enum Button
|
||
|
{
|
||
|
Help,
|
||
|
Default,
|
||
|
Apply,
|
||
|
Reset,
|
||
|
Cancel,
|
||
|
Ok,
|
||
|
SysDefault
|
||
|
};
|
||
|
|
||
12 years ago
|
TDECModule (TQWidget* /TransferThis/ = 0, const char* = 0, const TQStringList& = TQStringList ());
|
||
|
TDECModule (TDEInstance*, TQWidget* /TransferThis/ = 0, const TQStringList& = TQStringList ());
|
||
13 years ago
|
virtual void load ();
|
||
|
virtual void save ();
|
||
|
virtual void defaults ();
|
||
|
virtual void sysdefaults ();
|
||
13 years ago
|
virtual TQString quickHelp () const;
|
||
12 years ago
|
virtual const TDEAboutData* aboutData () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
12 years ago
|
void setAboutData (TDEAboutData*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
int buttons ();
|
||
13 years ago
|
TQString rootOnlyMsg () const;
|
||
13 years ago
|
bool useRootOnlyMsg () const;
|
||
12 years ago
|
TDEInstance* instance () const;
|
||
13 years ago
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
12 years ago
|
const TQPtrList<TDEConfigDialogManager>& configs () const;
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
12 years ago
|
TDEConfigDialogManager* addConfig (TDEConfigSkeleton*, TQWidget*);
|
||
13 years ago
|
void setQuickHelp (const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
signals:
|
||
|
void changed (bool);
|
||
13 years ago
|
void quickHelpChanged ();
|
||
13 years ago
|
|
||
|
protected slots:
|
||
|
|
||
|
%If ( KDE_3_3_0 - )
|
||
|
void changed ();
|
||
|
|
||
|
%If ( KDE_3_4_0 - )
|
||
|
void widgetChanged ();
|
||
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
void setButtons (int);
|
||
13 years ago
|
void setRootOnlyMsg (const TQString&);
|
||
13 years ago
|
void setUseRootOnlyMsg (bool);
|
||
|
|
||
|
%If ( KDE_3_5_0 - )
|
||
|
bool managedWidgetChangeState () const;
|
||
|
void unmanagedWidgetChangeState (bool);
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
12 years ago
|
}; // class TDECModule
|
||
13 years ago
|
|
||
|
|
||
|
|
||
|
%If (KDE_3_3_0 - )
|
||
12 years ago
|
%MappedType TQPtrList<TDEConfigDialogManager>
|
||
|
//converts a Python list of TDEConfigDialogManager
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqptrlist.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
%ConvertFromTypeCode
|
||
|
if (!sipCpp)
|
||
|
return PyList_New (0);
|
||
|
|
||
|
PyObject *pylist;
|
||
|
|
||
|
// Create the list
|
||
|
|
||
|
if ((pylist = PyList_New(0)) == NULL)
|
||
|
return NULL;
|
||
|
|
||
|
// Get it.
|
||
|
|
||
12 years ago
|
TQPtrList<TDEConfigDialogManager> *cpplist = (TQPtrList<TDEConfigDialogManager> *)sipCpp;
|
||
|
TDEConfigDialogManager *cpp;
|
||
13 years ago
|
PyObject *inst;
|
||
|
|
||
|
// the loop depends on the type of iterator the tmeplate makes available
|
||
|
for(cpp = cpplist->first (); cpp != 0; cpp = cpplist->next () )
|
||
|
{
|
||
12 years ago
|
if (((inst = sipConvertFromInstance (cpp, sipClass_TDEConfigDialogManager, sipTransferObj)) == NULL)
|
||
13 years ago
|
|| PyList_Append (pylist, inst) < 0)
|
||
|
{
|
||
|
Py_DECREF (pylist);
|
||
|
return NULL;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return pylist;
|
||
|
%End
|
||
|
|
||
|
%ConvertToTypeCode
|
||
|
if (sipIsErr == NULL)
|
||
|
return PyList_Check(sipPy);
|
||
|
|
||
12 years ago
|
TQPtrList<TDEConfigDialogManager> *cpplist = new TQPtrList<TDEConfigDialogManager>;
|
||
13 years ago
|
|
||
|
PyObject *elem;
|
||
12 years ago
|
TDEConfigDialogManager *cpp;
|
||
13 years ago
|
int iserr = 0;
|
||
|
|
||
|
for (int i = 0; i < PyList_Size (sipPy); i++)
|
||
|
{
|
||
|
elem = PyList_GET_ITEM (sipPy, i);
|
||
12 years ago
|
cpp = (TDEConfigDialogManager *)sipForceConvertToType(elem, sipType_TDEConfigDialogManager, sipTransferObj, SIP_NO_CONVERTORS, NULL, &iserr);
|
||
13 years ago
|
|
||
|
if (iserr)
|
||
|
{
|
||
|
*sipIsErr = 1;
|
||
|
delete cpplist;
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
cpplist->append (cpp);
|
||
|
}
|
||
|
|
||
|
*sipCppPtr = cpplist;
|
||
|
|
||
|
return 1;
|
||
|
%End
|
||
|
};
|
||
|
%End
|
||
|
|
||
|
|