/**************************************************************************** ** Form implementation generated from reading ui file './tocindexprefsbase.ui' ** ** Created: Sun Feb 25 01:08:20 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 "tocindexprefsbase.h" #include #include #include #include #include #include #include #include #include #include #include /* * Constructs a TOCIndexPrefsBase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ TOCIndexPrefsBase::TOCIndexPrefsBase( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "TOCIndexPrefsBase" ); TOCIndexPrefsBaseLayout = new QVBoxLayout( this, 0, 6, "TOCIndexPrefsBaseLayout"); tabTOCIndexWidget = new QTabWidget( this, "tabTOCIndexWidget" ); tab = new QWidget( tabTOCIndexWidget, "tab" ); tabLayout = new QHBoxLayout( tab, 0, 6, "tabLayout"); layout7 = new QVBoxLayout( 0, 0, 6, "layout7"); tocListBox = new QListBox( tab, "tocListBox" ); layout7->addWidget( tocListBox ); tocNameLineEdit = new QLineEdit( tab, "tocNameLineEdit" ); layout7->addWidget( tocNameLineEdit ); layout7_2 = new QHBoxLayout( 0, 0, 6, "layout7_2"); tocAddButton = new QPushButton( tab, "tocAddButton" ); layout7_2->addWidget( tocAddButton ); tocDeleteButton = new QPushButton( tab, "tocDeleteButton" ); layout7_2->addWidget( tocDeleteButton ); layout7->addLayout( layout7_2 ); tabLayout->addLayout( layout7 ); layout8 = new QVBoxLayout( 0, 0, 6, "layout8"); layout7_3 = new QGridLayout( 0, 1, 1, 0, 6, "layout7_3"); itemDestFrameComboBox = new QComboBox( FALSE, tab, "itemDestFrameComboBox" ); layout7_3->addWidget( itemDestFrameComboBox, 1, 1 ); tocNumberPlacementLabel = new QLabel( tab, "tocNumberPlacementLabel" ); layout7_3->addWidget( tocNumberPlacementLabel, 2, 0 ); tocItemAttrLabel = new QLabel( tab, "tocItemAttrLabel" ); layout7_3->addWidget( tocItemAttrLabel, 0, 0 ); itemAttrComboBox = new QComboBox( FALSE, tab, "itemAttrComboBox" ); layout7_3->addWidget( itemAttrComboBox, 0, 1 ); itemNumberPlacementComboBox = new QComboBox( FALSE, tab, "itemNumberPlacementComboBox" ); layout7_3->addWidget( itemNumberPlacementComboBox, 2, 1 ); itemListNonPrintingCheckBox = new QCheckBox( tab, "itemListNonPrintingCheckBox" ); layout7_3->addMultiCellWidget( itemListNonPrintingCheckBox, 4, 4, 0, 1 ); itemParagraphStyleComboBox = new QComboBox( FALSE, tab, "itemParagraphStyleComboBox" ); layout7_3->addWidget( itemParagraphStyleComboBox, 3, 1 ); tocParagraphStyleLabel = new QLabel( tab, "tocParagraphStyleLabel" ); layout7_3->addWidget( tocParagraphStyleLabel, 3, 0 ); tocDestFrameLabel = new QLabel( tab, "tocDestFrameLabel" ); layout7_3->addWidget( tocDestFrameLabel, 1, 0 ); layout8->addLayout( layout7_3 ); spacer1 = new QSpacerItem( 16, 36, QSizePolicy::Minimum, QSizePolicy::Expanding ); layout8->addItem( spacer1 ); tabLayout->addLayout( layout8 ); tabTOCIndexWidget->insertTab( tab, QString::fromLatin1("") ); TOCIndexPrefsBaseLayout->addWidget( tabTOCIndexWidget ); languageChange(); resize( QSize(444, 234).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); } /* * Destroys the object and frees any allocated resources */ TOCIndexPrefsBase::~TOCIndexPrefsBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void TOCIndexPrefsBase::languageChange() { setCaption( tr( "Table of Contents and Indexes" ) ); tocAddButton->setText( tr( "&Add" ) ); tocAddButton->setAccel( QKeySequence( tr( "Alt+A" ) ) ); tocDeleteButton->setText( tr( "&Delete" ) ); tocDeleteButton->setAccel( QKeySequence( tr( "Alt+D" ) ) ); QToolTip::add( itemDestFrameComboBox, tr( "The frame the table of contents will be placed into" ) ); tocNumberPlacementLabel->setText( tr( "Page Numbers Placed:" ) ); tocItemAttrLabel->setText( tr( "Item Attribute Name:" ) ); QToolTip::add( itemAttrComboBox, tr( "The Item Attribute that will be set on frames used as a basis for creation of the entries" ) ); QToolTip::add( itemNumberPlacementComboBox, tr( "Place page numbers of the entries at the beginning or the end of the line, or not at all" ) ); itemListNonPrintingCheckBox->setText( tr( "List Non-Printing Entries" ) ); QToolTip::add( itemListNonPrintingCheckBox, tr( "Include frames that are set to not print as well" ) ); QToolTip::add( itemParagraphStyleComboBox, tr( "The paragraph style used for the entry lines" ) ); tocParagraphStyleLabel->setText( tr( "Paragraph Style:" ) ); tocDestFrameLabel->setText( tr( "Destination Frame:" ) ); tabTOCIndexWidget->changeTab( tab, tr( "Table Of Contents" ) ); } #include "tocindexprefsbase.moc"