Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 4007 → Rev 4008

/branches/Version13x/Scribus/scribus/docsections.cpp
29,6 → 29,13
{
QToolTip::add(addButton, "<qt>"+ tr("Add a page numbering section to the document. The new section will be added after the currently selected section.") + "</qt>");
QToolTip::add(deleteButton, "<qt>"+ tr("Delete the currently selected section.") + "</qt>");
QToolTip::add(sectionsTable, "<qt>"+ tr("Name: Optional name for section eg. Index<br/>"
"Shown: Select to show the page numbers in this section if there is one or more text frames setup to do so.<br/>"
"From: The page index for this section to start at.<br/>"
"To: The page index for this section to stop at.<br/>"
"Style: Select the page number style to be used.<br/>"
"Start: The index within the Style's range to star at. Eg. If Start=2 and Style=a,b,c, ..., the numbers will begin at b.<br/>"
) +"</qt>");
}
 
void DocSections::setup(const DocumentSectionMap docSections, int maxPageIndex)
69,10 → 76,11
QTableItem *item6 = new QTableItem(sectionsTable, QTableItem::WhenCurrent, QString::number((*it).sectionstartindex));
sectionsTable->setItem(row, i++, item6);
//End Page Number
/*
QTableItem *item7 = new QTableItem(sectionsTable, QTableItem::WhenCurrent, QString::number((*it).sectionstartindex + (*it).toindex - (*it).fromindex));
item7->setEnabled(false);
sectionsTable->setItem(row, i++, item7);
*/
sectionsTable->verticalHeader()->setLabel(row, QString("%1").arg(row));
row++;
}
/branches/Version13x/Scribus/scribus/docsectionsbase.ui
27,137 → 27,119
<cstring>sectionsGroupBox</cstring>
</property>
<property name="title">
<string>Sections</string>
<string></string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QTable">
<column>
<property name="text">
<string>Name</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>Shown</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>From</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>To</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>Style</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>Start</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<property name="name">
<cstring>sectionsTable</cstring>
</property>
<property name="numRows">
<number>0</number>
</property>
<property name="numCols">
<number>6</number>
</property>
</widget>
<widget class="QLayoutWidget">
<property name="name">
<cstring>sectionsVBox</cstring>
<cstring>sectionsHBox</cstring>
</property>
<vbox>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QTable">
<column>
<property name="text">
<string>Name</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>Active</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>From</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>To</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>Style</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>Start</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>End</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<spacer>
<property name="name">
<cstring>sectionsTable</cstring>
<cstring>buttonSpacer</cstring>
</property>
<property name="numRows">
<number>0</number>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="numCols">
<number>7</number>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>192</width>
<height>21</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<property name="name">
<cstring>addButton</cstring>
</property>
<property name="text">
<string>&amp;Add</string>
</property>
<property name="accel">
<string>Alt+A</string>
</property>
</widget>
<widget class="QLayoutWidget">
<widget class="QPushButton">
<property name="name">
<cstring>sectionsHBox</cstring>
<cstring>deleteButton</cstring>
</property>
<hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<spacer>
<property name="name">
<cstring>buttonSpacer</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
<width>192</width>
<height>21</height>
</size>
</property>
</spacer>
<widget class="QPushButton">
<property name="name">
<cstring>addButton</cstring>
</property>
<property name="text">
<string>&amp;Add</string>
</property>
<property name="accel">
<string>Alt+A</string>
</property>
</widget>
<widget class="QPushButton">
<property name="name">
<cstring>deleteButton</cstring>
</property>
<property name="text">
<string>&amp;Delete</string>
</property>
<property name="accel">
<string>Alt+D</string>
</property>
</widget>
</hbox>
<property name="text">
<string>&amp;Delete</string>
</property>
<property name="accel">
<string>Alt+D</string>
</property>
</widget>
</vbox>
</hbox>
</widget>
</vbox>
</widget>