Logo Search packages:      
Sourcecode: kcontrol-autostart version File versions  Download package

autostartwidgetbase.cpp

#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './autostartwidgetbase.ui'
**
** Created: Wed Dec 14 17:16:00 2005
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.5   edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "autostartwidgetbase.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qheader.h>
#include <klistview.h>
#include <kpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a AutostartWidgetBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
AutostartWidgetBase::AutostartWidgetBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
      setName( "AutostartWidgetBase" );
    AutostartWidgetBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "AutostartWidgetBaseLayout"); 

    groupBox = new QGroupBox( this, "groupBox" );
    groupBox->setColumnLayout(0, Qt::Vertical );
    groupBox->layout()->setSpacing( 6 );
    groupBox->layout()->setMargin( 11 );
    groupBoxLayout = new QGridLayout( groupBox->layout() );
    groupBoxLayout->setAlignment( Qt::AlignTop );

    layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); 

    appListView = new KListView( groupBox, "appListView" );
    layout3->addWidget( appListView );

    layout2 = new QVBoxLayout( 0, 0, 6, "layout2"); 

    layout1 = new QVBoxLayout( 0, 0, 6, "layout1"); 

    buttonAdd = new KPushButton( groupBox, "buttonAdd" );
    layout1->addWidget( buttonAdd );

    buttonRemove = new KPushButton( groupBox, "buttonRemove" );
    layout1->addWidget( buttonRemove );

    buttonEdit = new KPushButton( groupBox, "buttonEdit" );
    layout1->addWidget( buttonEdit );
    layout2->addLayout( layout1 );
    spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout2->addItem( spacer1 );
    layout3->addLayout( layout2 );

    groupBoxLayout->addLayout( layout3, 0, 0 );

    AutostartWidgetBaseLayout->addWidget( groupBox, 0, 0 );
    languageChange();
    resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonAdd, SIGNAL( clicked() ), this, SLOT( slotAdd() ) );
    connect( buttonEdit, SIGNAL( clicked() ), this, SLOT( slotEdit() ) );
    connect( buttonRemove, SIGNAL( clicked() ), this, SLOT( slotRemove() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AutostartWidgetBase::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    groupBox->setTitle( tr2i18n( "groupBox1" ) );
    buttonAdd->setText( tr2i18n( "&Add" ) );
    buttonAdd->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    buttonRemove->setText( tr2i18n( "&Remove" ) );
    buttonRemove->setAccel( QKeySequence( tr2i18n( "Alt+R" ) ) );
    buttonEdit->setText( tr2i18n( "&Edit" ) );
    buttonEdit->setAccel( QKeySequence( tr2i18n( "Alt+E" ) ) );
}

void AutostartWidgetBase::slotAdd()
{
    qWarning( "AutostartWidgetBase::slotAdd(): Not implemented yet" );
}

void AutostartWidgetBase::slotRemove()
{
    qWarning( "AutostartWidgetBase::slotRemove(): Not implemented yet" );
}

void AutostartWidgetBase::slotEdit()
{
    qWarning( "AutostartWidgetBase::slotEdit(): Not implemented yet" );
}

#include "autostartwidgetbase.moc"

Generated by  Doxygen 1.6.0   Back to index