#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'addactionbase.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "addactionbase.h"

#include <ntqvariant.h>
#include <keditlistbox.h>
#include <klineedit.h>
#include <knuminput.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqwidget.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlabel.h>
#include <ntqsplitter.h>
#include <ntqwidgetstack.h>
#include <ntqcheckbox.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>


/*
 *  Constructs a AddActionBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qwizard will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qwizard.
 */
AddActionBase::AddActionBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : KWizard( parent, name, modal, fl )
{
    if ( !name )
	setName( "AddActionBase" );

    page = new TQWidget( this, "page" );
    pageLayout = new TQGridLayout( page, 1, 1, 11, 6, "pageLayout"); 

    buttonGroup1 = new TQButtonGroup( page, "buttonGroup1" );
    buttonGroup1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 1, buttonGroup1->sizePolicy().hasHeightForWidth() ) );
    buttonGroup1->setFrameShape( TQButtonGroup::NoFrame );
    buttonGroup1->setColumnLayout(0, TQt::Vertical );
    buttonGroup1->layout()->setSpacing( 6 );
    buttonGroup1->layout()->setMargin( 0 );
    buttonGroup1Layout = new TQVBoxLayout( buttonGroup1->layout() );
    buttonGroup1Layout->setAlignment( TQt::AlignTop );

    theUseProfile = new TQRadioButton( buttonGroup1, "theUseProfile" );
    theUseProfile->setChecked( true );
    buttonGroup1Layout->addWidget( theUseProfile );

    layout14 = new TQHBoxLayout( 0, 0, 6, "layout14"); 
    spacer13 = new TQSpacerItem( 81, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer13 );

    theProfiles = new TDEListView( buttonGroup1, "theProfiles" );
    theProfiles->addColumn( tr2i18n( "Applications" ) );
    theProfiles->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 3, 0, theProfiles->sizePolicy().hasHeightForWidth() ) );
    theProfiles->setFullWidth( true );
    layout14->addWidget( theProfiles );
    spacer14 = new TQSpacerItem( 101, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout14->addItem( spacer14 );
    buttonGroup1Layout->addLayout( layout14 );
    spacer11 = new TQSpacerItem( 311, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup1Layout->addItem( spacer11 );

    theUseDCOP = new TQRadioButton( buttonGroup1, "theUseDCOP" );
    buttonGroup1Layout->addWidget( theUseDCOP );
    spacer12 = new TQSpacerItem( 321, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup1Layout->addItem( spacer12 );

    theChangeMode = new TQRadioButton( buttonGroup1, "theChangeMode" );
    buttonGroup1Layout->addWidget( theChangeMode );
    spacer4 = new TQSpacerItem( 21, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    buttonGroup1Layout->addItem( spacer4 );

    pageLayout->addWidget( buttonGroup1, 0, 0 );
    addPage( page, TQString("") );

    page_2 = new TQWidget( this, "page_2" );
    pageLayout_2 = new TQVBoxLayout( page_2, 11, 6, "pageLayout_2"); 

    theButtonText = new TQLabel( page_2, "theButtonText" );
    theButtonText->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    pageLayout_2->addWidget( theButtonText );

    layout6 = new TQHBoxLayout( 0, 0, 6, "layout6"); 
    spacer12_2 = new TQSpacerItem( 110, 41, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( spacer12_2 );

    theButtons = new TDEListView( page_2, "theButtons" );
    theButtons->addColumn( tr2i18n( "Button" ) );
    theButtons->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 2, 0, theButtons->sizePolicy().hasHeightForWidth() ) );
    theButtons->setFullWidth( true );
    layout6->addWidget( theButtons );
    spacer5 = new TQSpacerItem( 110, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout6->addItem( spacer5 );
    pageLayout_2->addLayout( layout6 );
    addPage( page_2, TQString("") );

    page_3 = new TQWidget( this, "page_3" );
    pageLayout_3 = new TQVBoxLayout( page_3, 11, 6, "pageLayout_3"); 

    splitter8 = new TQSplitter( page_3, "splitter8" );
    splitter8->setOrientation( TQSplitter::Horizontal );

    theObjects = new TDEListView( splitter8, "theObjects" );
    theObjects->addColumn( tr2i18n( "Program" ) );
    theObjects->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 0, 1, theObjects->sizePolicy().hasHeightForWidth() ) );
    theObjects->setRootIsDecorated( true );
    theObjects->setFullWidth( false );

    TQWidget* privateLayoutWidget = new TQWidget( splitter8, "layout13" );
    layout13 = new TQVBoxLayout( privateLayoutWidget, 0, 6, "layout13"); 

    theFunctions = new TDEListView( privateLayoutWidget, "theFunctions" );
    theFunctions->addColumn( tr2i18n( "Function" ) );
    theFunctions->addColumn( tr2i18n( "Parameter" ) );
    theFunctions->addColumn( tr2i18n( "Prototype" ) );
    theFunctions->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)7, 0, 0, theFunctions->sizePolicy().hasHeightForWidth() ) );
    layout13->addWidget( theFunctions );
    pageLayout_3->addWidget( splitter8 );
    addPage( page_3, TQString("") );

    page_4 = new TQWidget( this, "page_4" );
    pageLayout_4 = new TQGridLayout( page_4, 1, 1, 11, 6, "pageLayout_4"); 

    buttonGroup4 = new TQButtonGroup( page_4, "buttonGroup4" );
    buttonGroup4->setFrameShape( TQButtonGroup::NoFrame );
    buttonGroup4->setColumnLayout(0, TQt::Vertical );
    buttonGroup4->layout()->setSpacing( 6 );
    buttonGroup4->layout()->setMargin( 11 );
    buttonGroup4Layout = new TQVBoxLayout( buttonGroup4->layout() );
    buttonGroup4Layout->setAlignment( TQt::AlignTop );

    theNotJustStart = new TQRadioButton( buttonGroup4, "theNotJustStart" );
    theNotJustStart->setChecked( true );
    buttonGroup4Layout->addWidget( theNotJustStart );

    layout37 = new TQHBoxLayout( 0, 0, 6, "layout37"); 
    spacer39 = new TQSpacerItem( 61, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout37->addItem( spacer39 );

    theProfileFunctions = new TDEListView( buttonGroup4, "theProfileFunctions" );
    theProfileFunctions->addColumn( tr2i18n( "Function" ) );
    theProfileFunctions->addColumn( tr2i18n( "Options" ) );
    theProfileFunctions->addColumn( tr2i18n( "Description" ) );
    theProfileFunctions->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 7, 0, theProfileFunctions->sizePolicy().hasHeightForWidth() ) );
    theProfileFunctions->setFullWidth( true );
    layout37->addWidget( theProfileFunctions );
    buttonGroup4Layout->addLayout( layout37 );

    theJustStart = new TQRadioButton( buttonGroup4, "theJustStart" );
    buttonGroup4Layout->addWidget( theJustStart );
    spacer40 = new TQSpacerItem( 21, 81, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    buttonGroup4Layout->addItem( spacer40 );

    pageLayout_4->addWidget( buttonGroup4, 0, 0 );
    addPage( page_4, TQString("") );

    page_5 = new TQWidget( this, "page_5" );
    pageLayout_5 = new TQVBoxLayout( page_5, 11, 6, "pageLayout_5"); 

    theParameters = new TDEListView( page_5, "theParameters" );
    theParameters->addColumn( tr2i18n( "Option Description" ) );
    theParameters->addColumn( tr2i18n( "Value" ) );
    theParameters->addColumn( tr2i18n( "Type" ) );
    theParameters->addColumn( tr2i18n( "Place" ) );
    pageLayout_5->addWidget( theParameters );

    layout35 = new TQHBoxLayout( 0, 0, 6, "layout35"); 

    layout34 = new TQVBoxLayout( 0, 0, 6, "layout34"); 
    spacer32 = new TQSpacerItem( 21, 111, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout34->addItem( spacer32 );

    theCurParameter = new TQLabel( page_5, "theCurParameter" );
    theCurParameter->setEnabled( false );
    theCurParameter->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)5, 0, 0, theCurParameter->sizePolicy().hasHeightForWidth() ) );
    layout34->addWidget( theCurParameter );
    layout35->addLayout( layout34 );
    spacer27 = new TQSpacerItem( 146, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout35->addItem( spacer27 );

    theValue = new TQWidgetStack( page_5, "theValue" );
    theValue->setEnabled( true );
    theValue->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)5, 0, 0, theValue->sizePolicy().hasHeightForWidth() ) );

    page_6 = new TQWidget( theValue, "page_6" );
    pageLayout_6 = new TQVBoxLayout( page_6, 0, 6, "pageLayout_6"); 
    spacer28 = new TQSpacerItem( 21, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_6->addItem( spacer28 );

    theValueLineEdit = new KLineEdit( page_6, "theValueLineEdit" );
    theValueLineEdit->setEnabled( true );
    pageLayout_6->addWidget( theValueLineEdit );
    theValue->addWidget( page_6, 0 );

    page_7 = new TQWidget( theValue, "page_7" );
    pageLayout_7 = new TQVBoxLayout( page_7, 0, 6, "pageLayout_7"); 
    spacer29 = new TQSpacerItem( 21, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_7->addItem( spacer29 );

    theValueCheckBox = new TQCheckBox( page_7, "theValueCheckBox" );
    theValueCheckBox->setEnabled( true );
    pageLayout_7->addWidget( theValueCheckBox );
    theValue->addWidget( page_7, 1 );

    page_8 = new TQWidget( theValue, "page_8" );
    pageLayout_8 = new TQVBoxLayout( page_8, 0, 6, "pageLayout_8"); 
    spacer30 = new TQSpacerItem( 20, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_8->addItem( spacer30 );

    theValueIntNumInput = new KIntNumInput( page_8, "theValueIntNumInput" );
    pageLayout_8->addWidget( theValueIntNumInput );
    theValue->addWidget( page_8, 2 );

    page_9 = new TQWidget( theValue, "page_9" );
    pageLayout_9 = new TQVBoxLayout( page_9, 0, 6, "pageLayout_9"); 
    spacer31 = new TQSpacerItem( 21, 51, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_9->addItem( spacer31 );

    theValueDoubleNumInput = new KDoubleNumInput( page_9, "theValueDoubleNumInput" );
    pageLayout_9->addWidget( theValueDoubleNumInput );
    theValue->addWidget( page_9, 3 );

    page_10 = new TQWidget( theValue, "page_10" );
    pageLayout_10 = new TQGridLayout( page_10, 1, 1, 0, 6, "pageLayout_10"); 

    theValueEditListBox = new KEditListBox( page_10, "theValueEditListBox" );

    pageLayout_10->addWidget( theValueEditListBox, 0, 0 );
    theValue->addWidget( page_10, 4 );
    layout35->addWidget( theValue );
    spacer26 = new TQSpacerItem( 147, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout35->addItem( spacer26 );
    pageLayout_5->addLayout( layout35 );
    addPage( page_5, TQString("") );

    page_11 = new TQWidget( this, "page_11" );
    pageLayout_11 = new TQVBoxLayout( page_11, 11, 6, "pageLayout_11"); 

    textLabel1 = new TQLabel( page_11, "textLabel1" );
    TQFont textLabel1_font(  textLabel1->font() );
    textLabel1_font.setBold( true );
    textLabel1->setFont( textLabel1_font ); 
    pageLayout_11->addWidget( textLabel1 );

    line1_2 = new TQFrame( page_11, "line1_2" );
    line1_2->setFrameShape( TQFrame::HLine );
    line1_2->setFrameShadow( TQFrame::Sunken );
    line1_2->setFrameShape( TQFrame::HLine );
    pageLayout_11->addWidget( line1_2 );

    theRepeat = new TQCheckBox( page_11, "theRepeat" );
    pageLayout_11->addWidget( theRepeat );

    theAutoStart = new TQCheckBox( page_11, "theAutoStart" );
    theAutoStart->setChecked( true );
    pageLayout_11->addWidget( theAutoStart );
    spacer22 = new TQSpacerItem( 670, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    pageLayout_11->addItem( spacer22 );

    theIMTop = new TQLabel( page_11, "theIMTop" );
    theIMTop->setEnabled( false );
    TQFont theIMTop_font(  theIMTop->font() );
    theIMTop_font.setBold( true );
    theIMTop->setFont( theIMTop_font ); 
    pageLayout_11->addWidget( theIMTop );

    theIMLine = new TQFrame( page_11, "theIMLine" );
    theIMLine->setEnabled( false );
    theIMLine->setFrameShape( TQFrame::HLine );
    theIMLine->setFrameShadow( TQFrame::Sunken );
    theIMLine->setFrameShape( TQFrame::HLine );
    pageLayout_11->addWidget( theIMLine );

    theIMLabel = new TQLabel( page_11, "theIMLabel" );
    theIMLabel->setEnabled( false );
    theIMLabel->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
    pageLayout_11->addWidget( theIMLabel );

    theIMGroup = new TQButtonGroup( page_11, "theIMGroup" );
    theIMGroup->setEnabled( false );
    theIMGroup->setFrameShape( TQButtonGroup::NoFrame );
    theIMGroup->setLineWidth( 0 );
    theIMGroup->setColumnLayout(0, TQt::Vertical );
    theIMGroup->layout()->setSpacing( 6 );
    theIMGroup->layout()->setMargin( 0 );
    theIMGroupLayout = new TQVBoxLayout( theIMGroup->layout() );
    theIMGroupLayout->setAlignment( TQt::AlignTop );

    theDontSend = new TQRadioButton( theIMGroup, "theDontSend" );
    theDontSend->setEnabled( false );
    theDontSend->setChecked( true );
    theIMGroupLayout->addWidget( theDontSend );

    theSendToTop = new TQRadioButton( theIMGroup, "theSendToTop" );
    theSendToTop->setEnabled( false );
    theIMGroupLayout->addWidget( theSendToTop );

    theSendToBottom = new TQRadioButton( theIMGroup, "theSendToBottom" );
    theSendToBottom->setEnabled( false );
    theIMGroupLayout->addWidget( theSendToBottom );

    theSendToAll = new TQRadioButton( theIMGroup, "theSendToAll" );
    theSendToAll->setEnabled( false );
    theIMGroupLayout->addWidget( theSendToAll );
    pageLayout_11->addWidget( theIMGroup );
    spacer1 = new TQSpacerItem( 20, 170, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_11->addItem( spacer1 );
    addPage( page_11, TQString("") );

    page_12 = new TQWidget( this, "page_12" );
    pageLayout_12 = new TQGridLayout( page_12, 1, 1, 11, 6, "pageLayout_12"); 

    buttonGroup3 = new TQButtonGroup( page_12, "buttonGroup3" );
    buttonGroup3->setFrameShape( TQButtonGroup::NoFrame );
    buttonGroup3->setColumnLayout(0, TQt::Vertical );
    buttonGroup3->layout()->setSpacing( 6 );
    buttonGroup3->layout()->setMargin( 0 );
    buttonGroup3Layout = new TQVBoxLayout( buttonGroup3->layout() );
    buttonGroup3Layout->setAlignment( TQt::AlignTop );

    theSwitchMode = new TQRadioButton( buttonGroup3, "theSwitchMode" );
    buttonGroup3Layout->addWidget( theSwitchMode );

    layout13_2 = new TQHBoxLayout( 0, 0, 6, "layout13_2"); 
    spacer8 = new TQSpacerItem( 131, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13_2->addItem( spacer8 );

    theModes = new TDEListView( buttonGroup3, "theModes" );
    theModes->addColumn( tr2i18n( "Mode" ) );
    theModes->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)7, 3, 0, theModes->sizePolicy().hasHeightForWidth() ) );
    theModes->setFullWidth( true );
    layout13_2->addWidget( theModes );
    spacer9 = new TQSpacerItem( 131, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13_2->addItem( spacer9 );
    buttonGroup3Layout->addLayout( layout13_2 );

    theExitMode = new TQRadioButton( buttonGroup3, "theExitMode" );
    theExitMode->setChecked( true );
    buttonGroup3Layout->addWidget( theExitMode );
    spacer15_2 = new TQSpacerItem( 551, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup3Layout->addItem( spacer15_2 );

    textLabel1_2 = new TQLabel( buttonGroup3, "textLabel1_2" );
    buttonGroup3Layout->addWidget( textLabel1_2 );

    line2 = new TQFrame( buttonGroup3, "line2" );
    line2->setFrameShape( TQFrame::HLine );
    line2->setFrameShadow( TQFrame::Sunken );
    line2->setFrameShape( TQFrame::HLine );
    buttonGroup3Layout->addWidget( line2 );

    theDoBefore = new TQCheckBox( buttonGroup3, "theDoBefore" );
    theDoBefore->setChecked( true );
    buttonGroup3Layout->addWidget( theDoBefore );

    theDoAfter = new TQCheckBox( buttonGroup3, "theDoAfter" );
    buttonGroup3Layout->addWidget( theDoAfter );
    spacer10 = new TQSpacerItem( 21, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    buttonGroup3Layout->addItem( spacer10 );

    pageLayout_12->addWidget( buttonGroup3, 0, 0 );
    addPage( page_12, TQString("") );
    languageChange();
    resize( TQSize(723, 593).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( theObjects, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateFunctions() ) );
    connect( theParameters, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateParameter() ) );
    connect( theFunctions, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theSwitchMode, TQ_SIGNAL( stateChanged(int) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theExitMode, TQ_SIGNAL( stateChanged(int) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theChangeMode, TQ_SIGNAL( stateChanged(int) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theUseDCOP, TQ_SIGNAL( stateChanged(int) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theUseProfile, TQ_SIGNAL( stateChanged(int) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theProfiles, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theModes, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateButtonStates() ) );
    connect( theModes, TQ_SIGNAL( clicked(TQListViewItem*) ), this, TQ_SLOT( slotModeSelected() ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theProfiles, TQ_SLOT( setEnabled(bool) ) );
    connect( theValueDoubleNumInput, TQ_SIGNAL( valueChanged(double) ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theValueIntNumInput, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theValueLineEdit, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theValueCheckBox, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theProfileFunctions, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateParameters() ) );
    connect( theFunctions, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateParameters() ) );
    connect( theProfiles, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateProfileFunctions() ) );
    connect( theValueEditListBox, TQ_SIGNAL( changed() ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theProfileFunctions, TQ_SLOT( setEnabled(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theAutoStart, TQ_SLOT( setEnabled(bool) ) );
    connect( theJustStart, TQ_SIGNAL( toggled(bool) ), theAutoStart, TQ_SLOT( setChecked(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theRepeat, TQ_SLOT( setEnabled(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theRepeat, TQ_SLOT( setChecked(bool) ) );
    connect( theProfileFunctions, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateOptions() ) );
    connect( theFunctions, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( updateOptions() ) );
    connect( theProfiles, TQ_SIGNAL( doubleClicked(TQListViewItem*) ), this, TQ_SLOT( next() ) );
    connect( theButtons, TQ_SIGNAL( doubleClicked(TQListViewItem*) ), this, TQ_SLOT( next() ) );
    connect( theFunctions, TQ_SIGNAL( doubleClicked(TQListViewItem*) ), this, TQ_SLOT( next() ) );
    connect( theProfileFunctions, TQ_SIGNAL( doubleClicked(TQListViewItem*) ), this, TQ_SLOT( next() ) );
    connect( theModes, TQ_SIGNAL( doubleClicked(TQListViewItem*) ), this, TQ_SLOT( accept() ) );
}

/*
 *  Destroys the object and frees any allocated resources
 */
AddActionBase::~AddActionBase()
{
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AddActionBase::languageChange()
{
    setCaption( tr2i18n( "Add Action" ) );
    buttonGroup1->setTitle( TQString::null );
    theUseProfile->setText( tr2i18n( "I wish to select an &application below for usage:" ) );
    theProfiles->header()->setLabel( 0, tr2i18n( "Applications" ) );
    theUseDCOP->setText( tr2i18n( "I wish to manually select a &function from a running program" ) );
    theChangeMode->setText( tr2i18n( "I wish to change the remote control's &mode" ) );
    setTitle( page, tr2i18n( "Select Action to Carry Out on Button Press" ) );
    theButtonText->setText( tr2i18n( "You are attempting to configure an action for a button on [remote] (in mode [mode]). Press a button on this remote control or select from the list." ) );
    theButtons->header()->setLabel( 0, tr2i18n( "Button" ) );
    setTitle( page_2, tr2i18n( "Select Button to Configure" ) );
    theObjects->header()->setLabel( 0, tr2i18n( "Program" ) );
    theObjects->clear();
    TQListViewItem * item = new TQListViewItem( theObjects, 0 );
    item->setText( 0, tr2i18n( "IR Kick" ) );

    item = new TQListViewItem( theObjects, item );
    item->setText( 0, tr2i18n( "Xine" ) );

    TQListViewItem * item_2 = new TQListViewItem( theObjects, item );
    item_2->setOpen( true );
    item = new TQListViewItem( item_2, item );
    item->setText( 0, tr2i18n( "kicker" ) );
    item_2->setText( 0, tr2i18n( "kicker" ) );

    TQListViewItem * item_3 = new TQListViewItem( theObjects, item_2 );
    item_3->setOpen( true );
    item = new TQListViewItem( item_3, item_2 );
    item->setText( 0, tr2i18n( "Marquis" ) );
    item_3->setOpen( true );
    item = new TQListViewItem( item_3, item );
    item->setText( 0, tr2i18n( "Noatun" ) );
    item_3->setOpen( true );
    item = new TQListViewItem( item_3, item );
    item->setText( 0, tr2i18n( "noatun" ) );
    item_3->setText( 0, tr2i18n( "noatun" ) );

    theFunctions->header()->setLabel( 0, tr2i18n( "Function" ) );
    theFunctions->header()->setLabel( 1, tr2i18n( "Parameter" ) );
    theFunctions->header()->setLabel( 2, tr2i18n( "Prototype" ) );
    setTitle( page_3, tr2i18n( "Select Program Function" ) );
    buttonGroup4->setTitle( TQString::null );
    theNotJustStart->setText( tr2i18n( "&Perform a function in the application:" ) );
    theProfileFunctions->header()->setLabel( 0, tr2i18n( "Function" ) );
    theProfileFunctions->header()->setLabel( 1, tr2i18n( "Options" ) );
    theProfileFunctions->header()->setLabel( 2, tr2i18n( "Description" ) );
    theJustStart->setText( tr2i18n( "&Just start the application. Do not do anything else." ) );
    setTitle( page_4, tr2i18n( "Select Program Function" ) );
    theParameters->header()->setLabel( 0, tr2i18n( "Option Description" ) );
    theParameters->header()->setLabel( 1, tr2i18n( "Value" ) );
    theParameters->header()->setLabel( 2, tr2i18n( "Type" ) );
    theParameters->header()->setLabel( 3, tr2i18n( "Place" ) );
    theCurParameter->setText( tr2i18n( "Parameter:" ) );
    theValueCheckBox->setText( TQString::null );
    theValueEditListBox->setTitle( TQString::null );
    setTitle( page_5, tr2i18n( "Populate Parameters" ) );
    textLabel1->setText( tr2i18n( "Miscellaneous Options" ) );
    theRepeat->setText( tr2i18n( "This action is &repeatable if the button is held down" ) );
    theAutoStart->setText( tr2i18n( "This action causes the application to &start if not already running" ) );
    theIMTop->setText( tr2i18n( "Multiple Instances" ) );
    theIMLabel->setText( tr2i18n( "This application may have multiple instances. In the case of having multiple instances at once when this action should be executed, choose a course of action:" ) );
    theIMGroup->setTitle( TQString::null );
    theDontSend->setText( tr2i18n( "&Ignore the action" ) );
    theSendToTop->setText( tr2i18n( "Send the action to the instance hi&ghest in the window stacking order" ) );
    theSendToBottom->setText( tr2i18n( "Send the action to the instance &lowest in window stacking order" ) );
    theSendToAll->setText( tr2i18n( "Send the action to &all instances" ) );
    setTitle( page_11, tr2i18n( "Finishing Up" ) );
    buttonGroup3->setTitle( TQString::null );
    theSwitchMode->setText( tr2i18n( "&Switch to mode:" ) );
    theModes->header()->setLabel( 0, tr2i18n( "Mode" ) );
    theExitMode->setText( tr2i18n( "&Exit current mode" ) );
    textLabel1_2->setText( tr2i18n( "<b>Options</b>" ) );
    theDoBefore->setText( tr2i18n( "E&xecute all other actions before mode change (in original mode)" ) );
    theDoAfter->setText( tr2i18n( "Exec&ute all actions after mode change (in new mode)" ) );
    setTitle( page_12, tr2i18n( "Select Required Mode Change" ) );
}

void AddActionBase::updateFunctions()
{
    tqWarning( "AddActionBase::updateFunctions(): Not implemented yet" );
}

void AddActionBase::updateParameter()
{
    tqWarning( "AddActionBase::updateParameter(): Not implemented yet" );
}

void AddActionBase::updateParameters()
{
    tqWarning( "AddActionBase::updateParameters(): Not implemented yet" );
}

void AddActionBase::updateButtonStates()
{
    tqWarning( "AddActionBase::updateButtonStates(): Not implemented yet" );
}

void AddActionBase::updateCurrentParam(const TQString&)
{
    tqWarning( "AddActionBase::updateCurrentParam(const TQString&): Not implemented yet" );
}

void AddActionBase::slotNextParam()
{
    tqWarning( "AddActionBase::slotNextParam(): Not implemented yet" );
}

void AddActionBase::slotCorrectPage()
{
    tqWarning( "AddActionBase::slotCorrectPage(): Not implemented yet" );
}

void AddActionBase::slotModeSelected()
{
    tqWarning( "AddActionBase::slotModeSelected(): Not implemented yet" );
}

void AddActionBase::updateProfileFunctions()
{
    tqWarning( "AddActionBase::updateProfileFunctions(): Not implemented yet" );
}

void AddActionBase::updateForPageChange()
{
    tqWarning( "AddActionBase::updateForPageChange(): Not implemented yet" );
}

void AddActionBase::slotParameterChanged()
{
    tqWarning( "AddActionBase::slotParameterChanged(): Not implemented yet" );
}

void AddActionBase::updateOptions()
{
    tqWarning( "AddActionBase::updateOptions(): Not implemented yet" );
}

/****************************************************************************
** AddActionBase meta object code from reading C++ file 'addactionbase.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "addactionbase.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *AddActionBase::className() const
{
    return "AddActionBase";
}

TQMetaObject *AddActionBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_AddActionBase( "AddActionBase", &AddActionBase::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString AddActionBase::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "AddActionBase", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString AddActionBase::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "AddActionBase", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* AddActionBase::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = KWizard::staticMetaObject();
    static const TQUMethod slot_0 = {"updateFunctions", 0, 0 };
    static const TQUMethod slot_1 = {"updateParameter", 0, 0 };
    static const TQUMethod slot_2 = {"updateParameters", 0, 0 };
    static const TQUMethod slot_3 = {"updateButtonStates", 0, 0 };
    static const TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"updateCurrentParam", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"slotNextParam", 0, 0 };
    static const TQUMethod slot_6 = {"slotCorrectPage", 0, 0 };
    static const TQUMethod slot_7 = {"slotModeSelected", 0, 0 };
    static const TQUMethod slot_8 = {"updateProfileFunctions", 0, 0 };
    static const TQUMethod slot_9 = {"updateForPageChange", 0, 0 };
    static const TQUMethod slot_10 = {"slotParameterChanged", 0, 0 };
    static const TQUMethod slot_11 = {"updateOptions", 0, 0 };
    static const TQUMethod slot_12 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "updateFunctions()", &slot_0, TQMetaData::Public },
	{ "updateParameter()", &slot_1, TQMetaData::Public },
	{ "updateParameters()", &slot_2, TQMetaData::Public },
	{ "updateButtonStates()", &slot_3, TQMetaData::Public },
	{ "updateCurrentParam(const TQString&)", &slot_4, TQMetaData::Public },
	{ "slotNextParam()", &slot_5, TQMetaData::Public },
	{ "slotCorrectPage()", &slot_6, TQMetaData::Public },
	{ "slotModeSelected()", &slot_7, TQMetaData::Public },
	{ "updateProfileFunctions()", &slot_8, TQMetaData::Public },
	{ "updateForPageChange()", &slot_9, TQMetaData::Public },
	{ "slotParameterChanged()", &slot_10, TQMetaData::Public },
	{ "updateOptions()", &slot_11, TQMetaData::Public },
	{ "languageChange()", &slot_12, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"AddActionBase", parentObject,
	slot_tbl, 13,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_AddActionBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* AddActionBase::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "AddActionBase" ) )
	return this;
    return KWizard::tqt_cast( clname );
}

bool AddActionBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: updateFunctions(); break;
    case 1: updateParameter(); break;
    case 2: updateParameters(); break;
    case 3: updateButtonStates(); break;
    case 4: updateCurrentParam((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 5: slotNextParam(); break;
    case 6: slotCorrectPage(); break;
    case 7: slotModeSelected(); break;
    case 8: updateProfileFunctions(); break;
    case 9: updateForPageChange(); break;
    case 10: slotParameterChanged(); break;
    case 11: updateOptions(); break;
    case 12: languageChange(); break;
    default:
	return KWizard::tqt_invoke( _id, _o );
    }
    return true;
}

bool AddActionBase::tqt_emit( int _id, TQUObject* _o )
{
    return KWizard::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool AddActionBase::tqt_property( int id, int f, TQVariant* v)
{
    return KWizard::tqt_property( id, f, v);
}

bool AddActionBase::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
