Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 692 → Rev 693

/branches/Version13x/Scribus/scribus/prefsdialogbase.cpp
0,0 → 1,50
#include "prefsdialogbase.h"
#include "prefsdialogbase.moc"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
extern QPixmap loadIcon(QString nam);
 
PrefsDialogBase::PrefsDialogBase( QWidget* parent ) : QDialog( parent, "PrefsDialogBase", true, 0 )
{
setName( "PrefsDialogBase" );
setIcon(loadIcon("AppIcon.png"));
setSizeGripEnabled( TRUE );
prefsLayout = new QVBoxLayout( this, 11, 6, "prefsLayout");
layout3 = new QHBoxLayout( 0, 0, 6, "layout3");
prefsSelection = new QListBox( this, "prefsSelection" );
prefsSelection->setFocusPolicy(QWidget::NoFocus);
prefsSelection->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)7, 0, 0, prefsSelection->sizePolicy().hasHeightForWidth() ) );
layout3->addWidget( prefsSelection );
prefsWidgets = new QWidgetStack( this, "prefsWidgets" );
layout3->addWidget( prefsWidgets );
prefsLayout->addLayout( layout3 );
layout4 = new QHBoxLayout( 0, 0, 6, "layout4");
QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
layout4->addItem( spacer );
buttonOk = new QPushButton( this, "buttonOk" );
buttonOk->setAutoDefault( TRUE );
buttonOk->setDefault( TRUE );
layout4->addWidget( buttonOk );
buttonCancel = new QPushButton( this, "buttonCancel" );
buttonCancel->setAutoDefault( TRUE );
layout4->addWidget( buttonCancel );
prefsLayout->addLayout( layout4 );
languageChange();
// resize( QSize(488, 320).expandedTo(minimumSizeHint()) );
// clearWState( WState_Polished );
connect(prefsSelection, SIGNAL(highlighted(int)), prefsWidgets, SLOT(raiseWidget(int)));
}
 
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void PrefsDialogBase::languageChange()
{
buttonOk->setText( tr( "&OK" ) );
buttonCancel->setText( tr( "&Cancel" ) );
}
 
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property