|
|
|
#include <kdialog.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
/****************************************************************************
|
|
|
|
** Form implementation generated from reading ui file './sourceprefs.ui'
|
|
|
|
**
|
|
|
|
** Created: Thu Jun 21 19:16:51 2007
|
|
|
|
** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $)
|
|
|
|
**
|
|
|
|
** WARNING! All changes made in this file will be lost!
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "sourceprefs.h"
|
|
|
|
|
|
|
|
#include <tqvariant.h>
|
|
|
|
#include <tqpushbutton.h>
|
|
|
|
#include <tqlabel.h>
|
|
|
|
#include <tqlineedit.h>
|
|
|
|
#include <tqcheckbox.h>
|
|
|
|
#include <tqlayout.h>
|
|
|
|
#include <tqtooltip.h>
|
|
|
|
#include <tqwhatsthis.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Constructs a SourcePrefs as a child of 'tqparent', with the
|
|
|
|
* name 'name' and widget flags set to 'f'.
|
|
|
|
*/
|
|
|
|
SourcePrefs::SourcePrefs( TQWidget* tqparent, const char* name, WFlags fl )
|
|
|
|
: TQWidget( tqparent, name, fl )
|
|
|
|
{
|
|
|
|
if ( !name )
|
|
|
|
setName( "SourcePrefs" );
|
|
|
|
SourcePrefsLayout = new TQVBoxLayout( this, 0, 6, "SourcePrefsLayout");
|
|
|
|
|
|
|
|
descriptionLabel = new TQLabel( this, "descriptionLabel" );
|
|
|
|
SourcePrefsLayout->addWidget( descriptionLabel );
|
|
|
|
|
|
|
|
hBoxLayout = new TQHBoxLayout( 0, 0, 6, "hBoxLayout");
|
|
|
|
|
|
|
|
nameLabel = new TQLabel( this, "nameLabel" );
|
|
|
|
hBoxLayout->addWidget( nameLabel );
|
|
|
|
|
|
|
|
nameLineEdit = new TQLineEdit( this, "nameLineEdit" );
|
|
|
|
hBoxLayout->addWidget( nameLineEdit );
|
|
|
|
spacer8 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
|
|
|
|
hBoxLayout->addItem( spacer8 );
|
|
|
|
SourcePrefsLayout->addLayout( hBoxLayout );
|
|
|
|
|
|
|
|
taskbarCheckBox = new TQCheckBox( this, "taskbarCheckBox" );
|
|
|
|
SourcePrefsLayout->addWidget( taskbarCheckBox );
|
|
|
|
|
|
|
|
hBoxLayout2 = new TQHBoxLayout( 0, 0, 6, "hBoxLayout2");
|
|
|
|
spacer8_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
|
|
|
|
hBoxLayout2->addItem( spacer8_2 );
|
|
|
|
|
|
|
|
nameCheckBox = new TQCheckBox( this, "nameCheckBox" );
|
|
|
|
hBoxLayout2->addWidget( nameCheckBox );
|
|
|
|
SourcePrefsLayout->addLayout( hBoxLayout2 );
|
|
|
|
|
|
|
|
tooltipCheckBox = new TQCheckBox( this, "tooltipCheckBox" );
|
|
|
|
SourcePrefsLayout->addWidget( tooltipCheckBox );
|
|
|
|
languageChange();
|
|
|
|
resize( TQSize(203, 127).expandedTo(tqminimumSizeHint()) );
|
|
|
|
clearWState( WState_Polished );
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Destroys the object and frees any allocated resources
|
|
|
|
*/
|
|
|
|
SourcePrefs::~SourcePrefs()
|
|
|
|
{
|
|
|
|
// no need to delete child widgets, TQt does it all for us
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Sets the strings of the subwidgets using the current
|
|
|
|
* language.
|
|
|
|
*/
|
|
|
|
void SourcePrefs::languageChange()
|
|
|
|
{
|
|
|
|
setCaption( tr2i18n( "SourcePrefs" ) );
|
|
|
|
descriptionLabel->setText( tr2i18n( "description" ) );
|
|
|
|
nameLabel->setText( tr2i18n( "Name:" ) );
|
|
|
|
taskbarCheckBox->setText( tr2i18n( "Show this source in Taskbar" ) );
|
|
|
|
nameCheckBox->setText( tr2i18n( "Show name in Taskbar" ) );
|
|
|
|
tooltipCheckBox->setText( tr2i18n( "Show this source in ToolTip" ) );
|
|
|
|
}
|
|
|
|
|
|
|
|
#include "sourceprefs.moc"
|