@ -72,16 +72,16 @@
extern " C "
extern " C "
{
{
KDE_EXPORT KCModule * create_kpilotconfig ( TQWidget * tq parent, const char * )
KDE_EXPORT KCModule * create_kpilotconfig ( TQWidget * parent, const char * )
{
{
FUNCTIONSETUP ;
FUNCTIONSETUP ;
return new ConduitConfigWidget ( tq parent, " kcmkpilotconfig " ) ;
return new ConduitConfigWidget ( parent, " kcmkpilotconfig " ) ;
}
}
KDE_EXPORT ConfigWizard * create_wizard ( TQWidget * tq parent, int m )
KDE_EXPORT ConfigWizard * create_wizard ( TQWidget * parent, int m )
{
{
FUNCTIONSETUP ;
FUNCTIONSETUP ;
return new ConfigWizard ( tq parent, " Wizard " , m ) ;
return new ConfigWizard ( parent, " Wizard " , m ) ;
}
}
}
}
@ -89,7 +89,7 @@ extern "C"
class ConduitTip : public TQToolTip
class ConduitTip : public TQToolTip
{
{
public :
public :
ConduitTip ( TQListView * tq parent) ;
ConduitTip ( TQListView * parent) ;
virtual ~ ConduitTip ( ) ;
virtual ~ ConduitTip ( ) ;
protected :
protected :
@ -148,7 +148,7 @@ ConduitTip::~ConduitTip()
class KPilotCheckListItem : public TQCheckListItem
class KPilotCheckListItem : public TQCheckListItem
{
{
public :
public :
KPilotCheckListItem ( TQListViewItem * tq parent, const TQString & text , Type tt = RadioButtonController ) : TQCheckListItem ( tq parent, text , tt ) , mOriginalState ( false ) { }
KPilotCheckListItem ( TQListViewItem * parent, const TQString & text , Type tt = RadioButtonController ) : TQCheckListItem ( parent, text , tt ) , mOriginalState ( false ) { }
~ KPilotCheckListItem ( ) { }
~ KPilotCheckListItem ( ) { }
void setOriginalState ( bool state ) { mOriginalState = state ; setOn ( state ) ; }
void setOriginalState ( bool state ) { mOriginalState = state ; setOn ( state ) ; }
@ -171,20 +171,20 @@ protected:
/*
/*
* * Create a page in the widget stack @ p tq parent on page @ p pageno ,
* * Create a page in the widget stack @ p parent on page @ p pageno ,
* * bearing the given @ p text . The remainder of the parameters are
* * bearing the given @ p text . The remainder of the parameters are
* * for esoteric things like :
* * for esoteric things like :
* * @ p buttons set to non - null to include ( and return ) a TQHBox suitable
* * @ p buttons set to non - null to include ( and return ) a TQHBox suitable
* * for displaying a row of buttons in on the page .
* * for displaying a row of buttons in on the page .
* * @ p label set to non - null to return the TQLabel used to display @ p text .
* * @ p label set to non - null to return the TQLabel used to display @ p text .
*/
*/
static void addDescriptionPage ( TQWidgetStack * tq parent,
static void addDescriptionPage ( TQWidgetStack * parent,
int pageno ,
int pageno ,
const TQString & text ,
const TQString & text ,
TQHBox * * buttons = 0L ,
TQHBox * * buttons = 0L ,
TQLabel * * label = 0L )
TQLabel * * label = 0L )
{
{
TQVBox * v = new TQVBox ( tq parent) ;
TQVBox * v = new TQVBox ( parent) ;
TQLabel * l = 0L ;
TQLabel * l = 0L ;
v - > setFrameShape ( TQLabel : : NoFrame ) ;
v - > setFrameShape ( TQLabel : : NoFrame ) ;
@ -202,12 +202,12 @@ static void addDescriptionPage(TQWidgetStack *tqparent,
l = new TQLabel ( v ) ;
l = new TQLabel ( v ) ;
}
}
tq parent- > addWidget ( v , pageno ) ;
parent- > addWidget ( v , pageno ) ;
}
}
ConduitConfigWidgetBase : : ConduitConfigWidgetBase ( TQWidget * tq parent, const char * n ) :
ConduitConfigWidgetBase : : ConduitConfigWidgetBase ( TQWidget * parent, const char * n ) :
KCModule ( tq parent, n ) ,
KCModule ( parent, n ) ,
fConduitList ( 0L ) ,
fConduitList ( 0L ) ,
fStack ( 0L ) ,
fStack ( 0L ) ,
fConfigureButton ( 0L ) ,
fConfigureButton ( 0L ) ,
@ -300,9 +300,9 @@ ConduitConfigWidgetBase::ConduitConfigWidgetBase(TQWidget *tqparent, const char
fStack - > addWidget ( ConduitConfigBase : : aboutPage ( fStack , 0L ) , GENERAL_ABOUT ) ;
fStack - > addWidget ( ConduitConfigBase : : aboutPage ( fStack , 0L ) , GENERAL_ABOUT ) ;
}
}
ConduitConfigWidget : : ConduitConfigWidget ( TQWidget * tq parent, const char * n ,
ConduitConfigWidget : : ConduitConfigWidget ( TQWidget * parent, const char * n ,
bool ) :
bool ) :
ConduitConfigWidgetBase ( tq parent, n ) ,
ConduitConfigWidgetBase ( parent, n ) ,
fConfigure ( 0L ) ,
fConfigure ( 0L ) ,
fCurrentConduit ( 0L ) ,
fCurrentConduit ( 0L ) ,
fGeneralPage ( 0L ) ,
fGeneralPage ( 0L ) ,
@ -716,7 +716,7 @@ void ConduitConfigWidget::selected(TQListViewItem *p)
# endif
# endif
// set the dialog title to the selected item
// set the dialog title to the selected item
TQListViewItem * pParent = p - > tq parent( ) ;
TQListViewItem * pParent = p - > parent( ) ;
TQString title ;
TQString title ;
title = pParent ? pParent - > text ( CONDUIT_NAME ) + CSL1 ( " - " ) : TQString ( ) ;
title = pParent ? pParent - > text ( CONDUIT_NAME ) + CSL1 ( " - " ) : TQString ( ) ;
title + = p ? p - > text ( CONDUIT_NAME ) : i18n ( " KPilot Setup " ) ;
title + = p ? p - > text ( CONDUIT_NAME ) : i18n ( " KPilot Setup " ) ;