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

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

#include "editactionbase.h"

#include <ntqvariant.h>
#include <keditlistbox.h>
#include <klineedit.h>
#include <knuminput.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqbuttongroup.h>
#include <ntqcombobox.h>
#include <ntqlabel.h>
#include <ntqradiobutton.h>
#include <ntqwidgetstack.h>
#include <ntqcheckbox.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a EditActionBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
EditActionBase::EditActionBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "EditActionBase" );
    setSizeGripEnabled( true );
    EditActionBaseLayout = new TQVBoxLayout( this, 11, 6, "EditActionBaseLayout"); 

    tabWidget3 = new TQTabWidget( this, "tabWidget3" );

    tab = new TQWidget( tabWidget3, "tab" );
    tabLayout = new TQVBoxLayout( tab, 11, 6, "tabLayout"); 

    buttonGroup3 = new TQButtonGroup( tab, "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 );

    layout40 = new TQGridLayout( 0, 1, 1, 0, 6, "layout40"); 

    theDCOPApplications = new TQComboBox( false, buttonGroup3, "theDCOPApplications" );
    theDCOPApplications->setEnabled( false );
    theDCOPApplications->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, theDCOPApplications->sizePolicy().hasHeightForWidth() ) );

    layout40->addWidget( theDCOPApplications, 2, 3 );

    textLabel4_3 = new TQLabel( buttonGroup3, "textLabel4_3" );
    textLabel4_3->setEnabled( false );

    layout40->addMultiCellWidget( textLabel4_3, 3, 3, 1, 2 );

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

    theNotJustStart = new TQRadioButton( buttonGroup5, "theNotJustStart" );
    theNotJustStart->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, theNotJustStart->sizePolicy().hasHeightForWidth() ) );
    theNotJustStart->setChecked( true );

    buttonGroup5Layout->addWidget( theNotJustStart, 0, 0 );

    theFunctions = new TQComboBox( false, buttonGroup5, "theFunctions" );
    theFunctions->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, theFunctions->sizePolicy().hasHeightForWidth() ) );

    buttonGroup5Layout->addWidget( theFunctions, 0, 1 );

    theJustStart = new TQRadioButton( buttonGroup5, "theJustStart" );

    buttonGroup5Layout->addMultiCellWidget( theJustStart, 1, 1, 0, 2 );

    layout40->addMultiCellWidget( buttonGroup5, 1, 1, 1, 3 );

    textLabel4_2 = new TQLabel( buttonGroup3, "textLabel4_2" );
    textLabel4_2->setEnabled( false );

    layout40->addMultiCellWidget( textLabel4_2, 4, 4, 1, 2 );

    textLabel5 = new TQLabel( buttonGroup3, "textLabel5" );

    layout40->addWidget( textLabel5, 0, 1 );

    theApplications = new TQComboBox( false, buttonGroup3, "theApplications" );
    theApplications->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, theApplications->sizePolicy().hasHeightForWidth() ) );

    layout40->addMultiCellWidget( theApplications, 0, 0, 2, 3 );

    theDCOPFunctions = new TQComboBox( false, buttonGroup3, "theDCOPFunctions" );
    theDCOPFunctions->setEnabled( false );

    layout40->addWidget( theDCOPFunctions, 4, 3 );

    theUseProfile = new TQRadioButton( buttonGroup3, "theUseProfile" );
    theUseProfile->setChecked( true );

    layout40->addWidget( theUseProfile, 0, 0 );

    textLabel5_2 = new TQLabel( buttonGroup3, "textLabel5_2" );
    textLabel5_2->setEnabled( false );

    layout40->addMultiCellWidget( textLabel5_2, 2, 2, 1, 2 );

    theUseDCOP = new TQRadioButton( buttonGroup3, "theUseDCOP" );

    layout40->addWidget( theUseDCOP, 2, 0 );

    theDCOPObjects = new TQComboBox( false, buttonGroup3, "theDCOPObjects" );
    theDCOPObjects->setEnabled( false );

    layout40->addWidget( theDCOPObjects, 3, 3 );
    buttonGroup3Layout->addLayout( layout40 );

    layout36 = new TQGridLayout( 0, 1, 1, 0, 6, "layout36"); 

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

    page = new TQWidget( theValue, "page" );
    pageLayout = new TQVBoxLayout( page, 0, 6, "pageLayout"); 

    theValueLineEdit = new KLineEdit( page, "theValueLineEdit" );
    theValueLineEdit->setEnabled( true );
    pageLayout->addWidget( theValueLineEdit );
    spacer35 = new TQSpacerItem( 20, 91, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout->addItem( spacer35 );
    theValue->addWidget( page, 0 );

    page_2 = new TQWidget( theValue, "page_2" );
    pageLayout_2 = new TQVBoxLayout( page_2, 0, 6, "pageLayout_2"); 

    theValueCheckBox = new TQCheckBox( page_2, "theValueCheckBox" );
    theValueCheckBox->setEnabled( true );
    pageLayout_2->addWidget( theValueCheckBox );
    spacer36 = new TQSpacerItem( 20, 101, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_2->addItem( spacer36 );
    theValue->addWidget( page_2, 1 );

    page_3 = new TQWidget( theValue, "page_3" );
    pageLayout_3 = new TQVBoxLayout( page_3, 0, 6, "pageLayout_3"); 

    theValueIntNumInput = new KIntNumInput( page_3, "theValueIntNumInput" );
    pageLayout_3->addWidget( theValueIntNumInput );
    spacer37 = new TQSpacerItem( 21, 101, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_3->addItem( spacer37 );
    theValue->addWidget( page_3, 2 );

    page_4 = new TQWidget( theValue, "page_4" );
    pageLayout_4 = new TQVBoxLayout( page_4, 0, 6, "pageLayout_4"); 

    theValueDoubleNumInput = new KDoubleNumInput( page_4, "theValueDoubleNumInput" );
    pageLayout_4->addWidget( theValueDoubleNumInput );
    spacer38 = new TQSpacerItem( 20, 101, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    pageLayout_4->addItem( spacer38 );
    theValue->addWidget( page_4, 3 );

    page_5 = new TQWidget( theValue, "page_5" );
    pageLayout_5 = new TQGridLayout( page_5, 1, 1, 0, 6, "pageLayout_5"); 

    theValueEditListBox = new KEditListBox( page_5, "theValueEditListBox" );
    theValueEditListBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)3, 0, 0, theValueEditListBox->sizePolicy().hasHeightForWidth() ) );

    pageLayout_5->addWidget( theValueEditListBox, 0, 0 );
    theValue->addWidget( page_5, 4 );

    layout36->addMultiCellWidget( theValue, 0, 1, 2, 2 );
    spacer33 = new TQSpacerItem( 21, 111, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout36->addItem( spacer33, 1, 0 );

    theArguments = new TQComboBox( false, buttonGroup3, "theArguments" );
    theArguments->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, theArguments->sizePolicy().hasHeightForWidth() ) );
    theArguments->setMinimumSize( TQSize( 106, 0 ) );

    layout36->addWidget( theArguments, 0, 1 );
    spacer34 = new TQSpacerItem( 20, 101, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout36->addItem( spacer34, 1, 1 );

    textLabel8 = new TQLabel( buttonGroup3, "textLabel8" );

    layout36->addWidget( textLabel8, 0, 0 );
    buttonGroup3Layout->addLayout( layout36 );
    spacer14 = new TQSpacerItem( 481, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    buttonGroup3Layout->addItem( spacer14 );

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

    theChangeMode = new TQRadioButton( buttonGroup3, "theChangeMode" );
    layout17->addWidget( theChangeMode );

    theModes = new TQComboBox( false, buttonGroup3, "theModes" );
    theModes->setEnabled( false );
    theModes->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)0, 0, 0, theModes->sizePolicy().hasHeightForWidth() ) );
    layout17->addWidget( theModes );
    buttonGroup3Layout->addLayout( layout17 );
    spacer15 = new TQSpacerItem( 21, 30, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    buttonGroup3Layout->addItem( spacer15 );
    tabLayout->addWidget( buttonGroup3 );
    tabWidget3->insertTab( tab, TQString::fromLatin1("") );

    tab_2 = new TQWidget( tabWidget3, "tab_2" );
    tabLayout_2 = new TQVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 

    textLabel3 = new TQLabel( tab_2, "textLabel3" );
    tabLayout_2->addWidget( textLabel3 );

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

    theRepeat = new TQCheckBox( tab_2, "theRepeat" );
    tabLayout_2->addWidget( theRepeat );

    theAutoStart = new TQCheckBox( tab_2, "theAutoStart" );
    tabLayout_2->addWidget( theAutoStart );
    spacer20 = new TQSpacerItem( 491, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer20 );

    textLabel1_2 = new TQLabel( tab_2, "textLabel1_2" );
    tabLayout_2->addWidget( textLabel1_2 );

    line2_2 = new TQFrame( tab_2, "line2_2" );
    line2_2->setFrameShape( TQFrame::HLine );
    line2_2->setFrameShadow( TQFrame::Sunken );
    line2_2->setFrameShape( TQFrame::HLine );
    tabLayout_2->addWidget( line2_2 );

    theDoBefore = new TQCheckBox( tab_2, "theDoBefore" );
    theDoBefore->setEnabled( false );
    theDoBefore->setChecked( true );
    tabLayout_2->addWidget( theDoBefore );

    theDoAfter = new TQCheckBox( tab_2, "theDoAfter" );
    theDoAfter->setEnabled( false );
    tabLayout_2->addWidget( theDoAfter );
    spacer22 = new TQSpacerItem( 670, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    tabLayout_2->addItem( spacer22 );

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

    theIMLine = new TQFrame( tab_2, "theIMLine" );
    theIMLine->setEnabled( true );
    theIMLine->setFrameShape( TQFrame::HLine );
    theIMLine->setFrameShadow( TQFrame::Sunken );
    theIMLine->setFrameShape( TQFrame::HLine );
    tabLayout_2->addWidget( theIMLine );

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

    theIMGroup = new TQButtonGroup( tab_2, "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 );
    tabLayout_2->addWidget( theIMGroup );
    spacer3 = new TQSpacerItem( 20, 150, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    tabLayout_2->addItem( spacer3 );
    tabWidget3->insertTab( tab_2, TQString::fromLatin1("") );
    EditActionBaseLayout->addWidget( tabWidget3 );

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

    buttonHelp = new TQPushButton( this, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    Layout1->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout1->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    Layout1->addWidget( buttonOk );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout1->addWidget( buttonCancel );
    EditActionBaseLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(754, 715).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theApplications, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theFunctions, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), theDCOPApplications, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), theDCOPObjects, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), theDCOPFunctions, TQ_SLOT( setEnabled(bool) ) );
    connect( theChangeMode, TQ_SIGNAL( toggled(bool) ), theModes, TQ_SLOT( setEnabled(bool) ) );
    connect( theApplications, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateFunctions() ) );
    connect( theDCOPApplications, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateDCOPObjects() ) );
    connect( theDCOPObjects, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateDCOPFunctions() ) );
    connect( theFunctions, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateArguments() ) );
    connect( theDCOPFunctions, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateArguments() ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theArguments, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), theArguments, TQ_SLOT( setEnabled(bool) ) );
    connect( theArguments, TQ_SIGNAL( activated(int) ), this, TQ_SLOT( updateArgument(int) ) );
    connect( theUseProfile, TQ_SIGNAL( clicked() ), this, TQ_SLOT( updateArguments() ) );
    connect( theUseDCOP, TQ_SIGNAL( clicked() ), this, TQ_SLOT( updateArguments() ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theAutoStart, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), theAutoStart, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theRepeat, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), theRepeat, TQ_SLOT( setEnabled(bool) ) );
    connect( theChangeMode, TQ_SIGNAL( toggled(bool) ), theDoAfter, TQ_SLOT( setEnabled(bool) ) );
    connect( theChangeMode, TQ_SIGNAL( toggled(bool) ), theDoBefore, TQ_SLOT( setEnabled(bool) ) );
    connect( theValueDoubleNumInput, TQ_SIGNAL( valueChanged(double) ), 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( theValueIntNumInput, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theValueEditListBox, TQ_SIGNAL( changed() ), this, TQ_SLOT( slotParameterChanged() ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theFunctions, TQ_SLOT( setEnabled(bool) ) );
    connect( theJustStart, TQ_SIGNAL( toggled(bool) ), theAutoStart, TQ_SLOT( setChecked(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theRepeat, TQ_SLOT( setChecked(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theAutoStart, TQ_SLOT( setEnabled(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theRepeat, TQ_SLOT( setEnabled(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theArguments, TQ_SLOT( setEnabled(bool) ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), theValue, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theNotJustStart, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theJustStart, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), theNotJustStart, TQ_SLOT( setChecked(bool) ) );
    connect( theDCOPApplications, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateOptions() ) );
    connect( theApplications, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( updateOptions() ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( updateOptions() ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( updateOptions() ) );
    connect( theChangeMode, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( updateOptions() ) );
    connect( theJustStart, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( updateOptions() ) );
    connect( theNotJustStart, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( updateOptions() ) );
    connect( theUseProfile, TQ_SIGNAL( toggled(bool) ), textLabel5, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), textLabel5_2, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), textLabel4_3, TQ_SLOT( setEnabled(bool) ) );
    connect( theUseDCOP, TQ_SIGNAL( toggled(bool) ), textLabel4_2, TQ_SLOT( setEnabled(bool) ) );
    connect( theChangeMode, TQ_SIGNAL( toggled(bool) ), textLabel8, TQ_SLOT( setDisabled(bool) ) );

    // tab order
    setTabOrder( tabWidget3, theUseProfile );
    setTabOrder( theUseProfile, theApplications );
    setTabOrder( theApplications, theFunctions );
    setTabOrder( theFunctions, theDCOPApplications );
    setTabOrder( theDCOPApplications, theDCOPObjects );
    setTabOrder( theDCOPObjects, theDCOPFunctions );
    setTabOrder( theDCOPFunctions, theModes );
    setTabOrder( theModes, theRepeat );
    setTabOrder( theRepeat, theAutoStart );
    setTabOrder( theAutoStart, buttonHelp );
    setTabOrder( buttonHelp, buttonOk );
    setTabOrder( buttonOk, buttonCancel );

    // buddies
    textLabel4_3->setBuddy( theDCOPObjects );
    textLabel4_2->setBuddy( theDCOPFunctions );
    textLabel5->setBuddy( theApplications );
    textLabel5_2->setBuddy( theDCOPApplications );
    textLabel8->setBuddy( theArguments );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void EditActionBase::languageChange()
{
    setCaption( tr2i18n( "Edit Action" ) );
    buttonGroup3->setTitle( TQString::null );
    textLabel4_3->setText( tr2i18n( "O&bject:" ) );
    buttonGroup5->setTitle( TQString::null );
    theNotJustStart->setText( tr2i18n( "&Perform function:" ) );
    theJustStart->setText( tr2i18n( "Just start application" ) );
    textLabel4_2->setText( tr2i18n( "Fu&nction:" ) );
    textLabel5->setText( tr2i18n( "&Application:" ) );
    theUseProfile->setText( tr2i18n( "&Use application:" ) );
    textLabel5_2->setText( tr2i18n( "App&lication:" ) );
    theUseDCOP->setText( tr2i18n( "Use &DCOP:" ) );
    theValueCheckBox->setText( TQString::null );
    theValueEditListBox->setTitle( TQString::null );
    textLabel8->setText( tr2i18n( "A&pplication/DCOP options:" ) );
    theChangeMode->setText( tr2i18n( "Change &mode to:" ) );
    tabWidget3->changeTab( tab, tr2i18n( "Function" ) );
    textLabel3->setText( tr2i18n( "<b>DCOP/Application Action Options</b>" ) );
    theRepeat->setText( tr2i18n( "&Action repeats if button is held down" ) );
    theAutoStart->setText( tr2i18n( "&Start program/service if not already running" ) );
    textLabel1_2->setText( tr2i18n( "<b>Mode Change 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)" ) );
    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 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 i&nstances" ) );
    tabWidget3->changeTab( tab_2, tr2i18n( "Options" ) );
    buttonHelp->setText( tr2i18n( "&Help" ) );
    buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
}

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

void EditActionBase::updateApplications()
{
    tqWarning( "EditActionBase::updateApplications(): Not implemented yet" );
}

void EditActionBase::updateDCOPApplications()
{
    tqWarning( "EditActionBase::updateDCOPApplications(): Not implemented yet" );
}

void EditActionBase::updateDCOPObjects()
{
    tqWarning( "EditActionBase::updateDCOPObjects(): Not implemented yet" );
}

void EditActionBase::updateDCOPFunctions()
{
    tqWarning( "EditActionBase::updateDCOPFunctions(): Not implemented yet" );
}

void EditActionBase::updateArguments()
{
    tqWarning( "EditActionBase::updateArguments(): Not implemented yet" );
}

void EditActionBase::updateArgument(int)
{
    tqWarning( "EditActionBase::updateArgument(int): Not implemented yet" );
}

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

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

/****************************************************************************
** EditActionBase meta object code from reading C++ file 'editactionbase.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 "editactionbase.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 *EditActionBase::className() const
{
    return "EditActionBase";
}

TQMetaObject *EditActionBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_EditActionBase( "EditActionBase", &EditActionBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* EditActionBase::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"updateFunctions", 0, 0 };
    static const TQUMethod slot_1 = {"updateApplications", 0, 0 };
    static const TQUMethod slot_2 = {"updateDCOPApplications", 0, 0 };
    static const TQUMethod slot_3 = {"updateDCOPObjects", 0, 0 };
    static const TQUMethod slot_4 = {"updateDCOPFunctions", 0, 0 };
    static const TQUMethod slot_5 = {"updateArguments", 0, 0 };
    static const TQUParameter param_slot_6[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_6 = {"updateArgument", 1, param_slot_6 };
    static const TQUMethod slot_7 = {"slotParameterChanged", 0, 0 };
    static const TQUMethod slot_8 = {"updateOptions", 0, 0 };
    static const TQUMethod slot_9 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "updateFunctions()", &slot_0, TQMetaData::Public },
	{ "updateApplications()", &slot_1, TQMetaData::Public },
	{ "updateDCOPApplications()", &slot_2, TQMetaData::Public },
	{ "updateDCOPObjects()", &slot_3, TQMetaData::Public },
	{ "updateDCOPFunctions()", &slot_4, TQMetaData::Public },
	{ "updateArguments()", &slot_5, TQMetaData::Public },
	{ "updateArgument(int)", &slot_6, TQMetaData::Public },
	{ "slotParameterChanged()", &slot_7, TQMetaData::Public },
	{ "updateOptions()", &slot_8, TQMetaData::Public },
	{ "languageChange()", &slot_9, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"EditActionBase", parentObject,
	slot_tbl, 10,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_EditActionBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool EditActionBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: updateFunctions(); break;
    case 1: updateApplications(); break;
    case 2: updateDCOPApplications(); break;
    case 3: updateDCOPObjects(); break;
    case 4: updateDCOPFunctions(); break;
    case 5: updateArguments(); break;
    case 6: updateArgument((int)static_QUType_int.get(_o+1)); break;
    case 7: slotParameterChanged(); break;
    case 8: updateOptions(); break;
    case 9: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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