Subversion Repositories Scribus

Compare Revisions

Regard 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,20 → 27,12
<cstring>sectionsGroupBox</cstring>
</property>
<property name="title">
<string>Sections</string>
<string></string>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QLayoutWidget">
<property name="name">
<cstring>sectionsVBox</cstring>
</property>
<vbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
<widget class="QTable">
<column>
<property name="text">
52,7 → 44,7
</column>
<column>
<property name="text">
<string>Active</string>
<string>Shown</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
90,14 → 82,6
<pixmap></pixmap>
</property>
</column>
<column>
<property name="text">
<string>End</string>
</property>
<property name="pixmap">
<pixmap></pixmap>
</property>
</column>
<property name="name">
<cstring>sectionsTable</cstring>
</property>
105,7 → 89,7
<number>0</number>
</property>
<property name="numCols">
<number>7</number>
<number>6</number>
</property>
</widget>
<widget class="QLayoutWidget">
161,8 → 145,6
</widget>
</vbox>
</widget>
</vbox>
</widget>
<includes>
<include location="global" impldecl="in implementation">qtable.h</include>
<include location="global" impldecl="in implementation">qheader.h</include>