You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.7 KiB
107 lines
3.7 KiB
#include <klocale.h>
|
|
/****************************************************************************
|
|
** Form implementation generated from reading ui file './addglobaldlg.ui'
|
|
**
|
|
** Created: Сбт Лют 8 20:51:03 2003
|
|
** by: The User Interface Compiler ($Id$)
|
|
**
|
|
** WARNING! All changes made in this file will be lost!
|
|
****************************************************************************/
|
|
|
|
#include "addglobaldlg.h"
|
|
|
|
#include <tqvariant.h>
|
|
#include <tqheader.h>
|
|
#include <tqlistview.h>
|
|
#include <tqpushbutton.h>
|
|
#include <layout.h>
|
|
#include <tqtooltip.h>
|
|
#include <tqwhatsthis.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
/*
|
|
* Constructs a AddGlobalDlg as a child of 'parent', with the
|
|
* name 'name' and widget flags set to 'f'.
|
|
*
|
|
* The dialog will by default be modeless, unless you set 'modal' to
|
|
* TRUE to construct a modal dialog.
|
|
*/
|
|
AddGlobalDlg::AddGlobalDlg( TQWidget* parent, const char* name, bool modal, WFlags fl )
|
|
: TQDialog( parent, name, modal, fl )
|
|
|
|
{
|
|
if ( !name )
|
|
setName( "AddGlobalDlg" );
|
|
setSizeGripEnabled( TRUE );
|
|
AddGlobalDlgLayout = new TQGridLayout( this, 1, 1, 11, 6, "AddGlobalDlgLayout");
|
|
|
|
Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1");
|
|
|
|
buttonHelp = new KPushButton( this, "buttonHelp" );
|
|
buttonHelp->setAutoDefault( TRUE );
|
|
Layout1->addWidget( buttonHelp );
|
|
TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
|
|
Layout1->addItem( spacer );
|
|
|
|
buttonOk = new KPushButton( this, "buttonOk" );
|
|
buttonOk->setAutoDefault( TRUE );
|
|
buttonOk->setDefault( TRUE );
|
|
Layout1->addWidget( buttonOk );
|
|
|
|
buttonCancel = new KPushButton( this, "buttonCancel" );
|
|
buttonCancel->setAutoDefault( TRUE );
|
|
Layout1->addWidget( buttonCancel );
|
|
|
|
AddGlobalDlgLayout->addLayout( Layout1, 1, 0 );
|
|
|
|
fcglobal_view = new TQListView( this, "fcglobal_view" );
|
|
fcglobal_view->addColumn( i18n( "Type Extension" ) );
|
|
fcglobal_view->addColumn( i18n( "Type Name" ) );
|
|
fcglobal_view->addColumn( i18n( "Template Location" ) );
|
|
fcglobal_view->addColumn( i18n( "Icon" ) );
|
|
fcglobal_view->addColumn( i18n( "Description" ) );
|
|
fcglobal_view->setResizePolicy( TQListView::AutoOne );
|
|
fcglobal_view->setAllColumnsShowFocus( TRUE );
|
|
fcglobal_view->setRootIsDecorated( TRUE );
|
|
fcglobal_view->setResizeMode( TQListView::AllColumns );
|
|
|
|
AddGlobalDlgLayout->addWidget( fcglobal_view, 0, 0 );
|
|
languageChange();
|
|
resize( TQSize(511, 282).expandedTo(minimumSizeHint()) );
|
|
|
|
// signals and slots connections
|
|
connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) );
|
|
connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) );
|
|
}
|
|
|
|
/*
|
|
* Destroys the object and frees any allocated resources
|
|
*/
|
|
AddGlobalDlg::~AddGlobalDlg()
|
|
{
|
|
// no need to delete child widgets, TQt does it all for us
|
|
}
|
|
|
|
/*
|
|
* Sets the strings of the subwidgets using the current
|
|
* language.
|
|
*/
|
|
void AddGlobalDlg::languageChange()
|
|
{
|
|
setCaption( i18n( "Select Global File Types" ) );
|
|
buttonHelp->setGuiItem( KStdGuiItem::help() );
|
|
buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) );
|
|
buttonOk->setGuiItem( KStdGuiItem::ok() );
|
|
buttonOk->setAccel( TQKeySequence( TQString() ) );
|
|
buttonCancel->setGuiItem( KStdGuiItem::cancel() );
|
|
buttonCancel->setAccel( TQKeySequence( TQString() ) );
|
|
fcglobal_view->header()->setLabel( 0, i18n( "Type extension:" ) );
|
|
fcglobal_view->header()->setLabel( 1, i18n( "Type name:" ) );
|
|
fcglobal_view->header()->setLabel( 2, i18n( "Template location:" ) );
|
|
fcglobal_view->header()->setLabel( 3, i18n( "Icon:" ) );
|
|
fcglobal_view->header()->setLabel( 4, i18n( "Description:" ) );
|
|
}
|
|
|
|
#include "addglobaldlg.moc"
|