@ -261,56 +261,56 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
// font group
TQGroupBox * fontgroup = new TQGroupBox ( i18n ( " Font " ) , page ) ;
fontgroup - > setColumnLayout ( 0 , Qt : : Vertical ) ;
fontgroup - > tq layout( ) - > setSpacing ( 6 ) ;
fontgroup - > tq layout( ) - > setMargin ( 11 ) ;
fontgroup - > layout( ) - > setSpacing ( 6 ) ;
fontgroup - > layout( ) - > setMargin ( 11 ) ;
m_cbBold = new TQCheckBox ( i18n ( " Bold " ) , fontgroup ) ;
m_cbItalic = new TQCheckBox ( i18n ( " Italic " ) , fontgroup ) ;
TQVBoxLayout * fontgroup tq layout = new TQVBoxLayout ( fontgroup - > tq layout( ) ) ;
fontgroup tq layout- > setAlignment ( TQt : : AlignTop ) ;
fontgroup tq layout- > addWidget ( m_cbBold ) ;
fontgroup tq layout- > addWidget ( m_cbItalic ) ;
TQVBoxLayout * fontgroup layout = new TQVBoxLayout ( fontgroup - > layout( ) ) ;
fontgroup layout- > setAlignment ( TQt : : AlignTop ) ;
fontgroup layout- > addWidget ( m_cbBold ) ;
fontgroup layout- > addWidget ( m_cbItalic ) ;
// color group
TQGroupBox * colorgroup = new TQGroupBox ( i18n ( " Color " ) , page ) ;
colorgroup - > setColumnLayout ( 0 , Qt : : Vertical ) ;
colorgroup - > tq layout( ) - > setSpacing ( 6 ) ;
colorgroup - > tq layout( ) - > setMargin ( 11 ) ;
colorgroup - > layout( ) - > setSpacing ( 6 ) ;
colorgroup - > layout( ) - > setMargin ( 11 ) ;
TQLabel * label1 = new TQLabel ( i18n ( " Background: " ) , colorgroup ) ;
TQLabel * label2 = new TQLabel ( i18n ( " Textcolor: " ) , colorgroup ) ;
m_ccBgcolor = new KColorCombo ( colorgroup ) ;
m_ccTextcolor = new KColorCombo ( colorgroup ) ;
TQGridLayout * colorgroup tq layout = new TQGridLayout ( colorgroup - > tq layout( ) ) ;
colorgroup tq layout- > setAlignment ( TQt : : AlignTop ) ;
colorgroup tq layout- > addWidget ( label1 , 0 , 0 ) ;
colorgroup tq layout- > addWidget ( label2 , 1 , 0 ) ;
colorgroup tq layout- > addWidget ( m_ccBgcolor , 0 , 1 ) ;
colorgroup tq layout- > addWidget ( m_ccTextcolor , 1 , 1 ) ;
TQGridLayout * colorgroup layout = new TQGridLayout ( colorgroup - > layout( ) ) ;
colorgroup layout- > setAlignment ( TQt : : AlignTop ) ;
colorgroup layout- > addWidget ( label1 , 0 , 0 ) ;
colorgroup layout- > addWidget ( label2 , 1 , 0 ) ;
colorgroup layout- > addWidget ( m_ccBgcolor , 0 , 1 ) ;
colorgroup layout- > addWidget ( m_ccTextcolor , 1 , 1 ) ;
// alignment group
TQButtonGroup * aligngroup = new TQButtonGroup ( i18n ( " Alignment " ) , page ) ;
aligngroup - > setColumnLayout ( 0 , Qt : : Vertical ) ;
aligngroup - > tq layout( ) - > setSpacing ( 6 ) ;
aligngroup - > tq layout( ) - > setMargin ( 11 ) ;
aligngroup - > layout( ) - > setSpacing ( 6 ) ;
aligngroup - > layout( ) - > setMargin ( 11 ) ;
m_rbAlignleft = new TQRadioButton ( i18n ( " Left " ) , aligngroup ) ;
m_rbAligncenter = new TQRadioButton ( i18n ( " Center " ) , aligngroup ) ;
m_rbAlignright = new TQRadioButton ( i18n ( " Right " ) , aligngroup ) ;
TQVBoxLayout * aligngroup tq layout = new TQVBoxLayout ( aligngroup - > tq layout( ) ) ;
aligngroup tq layout- > setAlignment ( TQt : : AlignTop ) ;
aligngroup tq layout- > addWidget ( m_rbAlignleft ) ;
aligngroup tq layout- > addWidget ( m_rbAligncenter ) ;
aligngroup tq layout- > addWidget ( m_rbAlignright ) ;
TQVBoxLayout * aligngroup layout = new TQVBoxLayout ( aligngroup - > layout( ) ) ;
aligngroup layout- > setAlignment ( TQt : : AlignTop ) ;
aligngroup layout- > addWidget ( m_rbAlignleft ) ;
aligngroup layout- > addWidget ( m_rbAligncenter ) ;
aligngroup layout- > addWidget ( m_rbAlignright ) ;
// frame group
TQGroupBox * framegroup = new TQGroupBox ( i18n ( " Frame " ) , page ) ;
framegroup - > setColumnLayout ( 0 , Qt : : Vertical ) ;
framegroup - > tq layout( ) - > setSpacing ( 6 ) ;
framegroup - > tq layout( ) - > setMargin ( 11 ) ;
framegroup - > layout( ) - > setSpacing ( 6 ) ;
framegroup - > layout( ) - > setMargin ( 11 ) ;
TQLabel * label3 = new TQLabel ( i18n ( " Standard: " ) , framegroup ) ;
TQLabel * label4 = new TQLabel ( i18n ( " User defined: " ) , framegroup ) ;
@ -339,45 +339,45 @@ TabCellDialog::TabCellDialog(TQWidget *parent, TabularCell::Data *data,
borderbox - > addWidget ( m_cellframe ) ;
borderbox - > addStretch ( 1 ) ;
TQVBoxLayout * framegroup tq layout = new TQVBoxLayout ( framegroup - > tq layout( ) ) ;
framegroup tq layout- > setAlignment ( TQt : : AlignTop ) ;
framegroup tq layout- > addWidget ( label3 ) ;
framegroup tq layout- > addWidget ( lineframe ) ;
framegroup tq layout- > addSpacing ( 10 ) ;
framegroup tq layout- > addWidget ( label4 ) ;
framegroup tq layout- > addWidget ( borderframe ) ;
TQVBoxLayout * framegroup layout = new TQVBoxLayout ( framegroup - > layout( ) ) ;
framegroup layout- > setAlignment ( TQt : : AlignTop ) ;
framegroup layout- > addWidget ( label3 ) ;
framegroup layout- > addWidget ( lineframe ) ;
framegroup layout- > addSpacing ( 10 ) ;
framegroup layout- > addWidget ( label4 ) ;
framegroup layout- > addWidget ( borderframe ) ;
// preamble group
TQGroupBox * preamblegroup = new TQGroupBox ( i18n ( " Preamble " ) , page ) ;
preamblegroup - > setColumnLayout ( 0 , Qt : : Vertical ) ;
preamblegroup - > tq layout( ) - > setSpacing ( 6 ) ;
preamblegroup - > tq layout( ) - > setMargin ( 11 ) ;
preamblegroup - > layout( ) - > setSpacing ( 6 ) ;
preamblegroup - > layout( ) - > setMargin ( 11 ) ;
m_cbPre = new TQCheckBox ( i18n ( " >{decl}: insert before " ) , preamblegroup , " cb_pre " ) ;
m_cbPost = new TQCheckBox ( i18n ( " <{decl}: insert after " ) , preamblegroup , " cb_post " ) ;
m_cbAt = new TQCheckBox ( i18n ( " @{decl}: suppress space " ) , preamblegroup , " cb_at " ) ;
m_cbSep = new TQCheckBox ( i18n ( " !{decl}: do not suppress space " ) , preamblegroup , " cb_sep " ) ;
TQVBoxLayout * preamblegroup tq layout = new TQVBoxLayout ( preamblegroup - > tq layout( ) ) ;
preamblegroup tq layout- > setAlignment ( TQt : : AlignTop ) ;
preamblegroup tq layout- > addWidget ( m_cbPre ) ;
preamblegroup tq layout- > addWidget ( m_cbPost ) ;
preamblegroup tq layout- > addWidget ( m_cbAt ) ;
preamblegroup tq layout- > addWidget ( m_cbSep ) ;
TQVBoxLayout * preamblegroup layout = new TQVBoxLayout ( preamblegroup - > layout( ) ) ;
preamblegroup layout- > setAlignment ( TQt : : AlignTop ) ;
preamblegroup layout- > addWidget ( m_cbPre ) ;
preamblegroup layout- > addWidget ( m_cbPost ) ;
preamblegroup layout- > addWidget ( m_cbAt ) ;
preamblegroup layout- > addWidget ( m_cbSep ) ;
// header group
TQGroupBox * headergroup = new TQGroupBox ( i18n ( " Alignment " ) , page ) ;
headergroup - > setColumnLayout ( 0 , Qt : : Vertical ) ;
headergroup - > tq layout( ) - > setSpacing ( 6 ) ;
headergroup - > tq layout( ) - > setMargin ( 11 ) ;
headergroup - > layout( ) - > setSpacing ( 6 ) ;
headergroup - > layout( ) - > setMargin ( 11 ) ;
m_coHeader = new TQComboBox ( headergroup ) ;
TQVBoxLayout * headergroup tq layout = new TQVBoxLayout ( headergroup - > tq layout( ) ) ;
headergroup tq layout- > setAlignment ( TQt : : AlignTop ) ;
headergroup tq layout- > addStretch ( 1 ) ;
headergroup tq layout- > addWidget ( m_coHeader ) ;
headergroup tq layout- > addStretch ( 1 ) ;
TQVBoxLayout * headergroup layout = new TQVBoxLayout ( headergroup - > layout( ) ) ;
headergroup layout- > setAlignment ( TQt : : AlignTop ) ;
headergroup layout- > addStretch ( 1 ) ;
headergroup layout- > addWidget ( m_coHeader ) ;
headergroup layout- > addStretch ( 1 ) ;
// add widgets
if ( m_header )
@ -1045,7 +1045,7 @@ void TabularTable::paintCell( TQPainter *p, int row, int col,
TQPen pen ( p - > pen ( ) ) ;
TQColor gridlinecolor ;
int gridColor = tq style( ) . styleHint ( TQStyle : : SH_Table_GridLineColor , this ) ;
int gridColor = style( ) . styleHint ( TQStyle : : SH_Table_GridLineColor , this ) ;
if ( gridColor ! = - 1 )
{
const TQPalette & pal = palette ( ) ;
@ -1850,8 +1850,8 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La
// environment group
TQButtonGroup * group = new TQButtonGroup ( i18n ( " Environment " ) , page ) ;
group - > setColumnLayout ( 0 , Qt : : Vertical ) ;
group - > tq layout( ) - > setSpacing ( 4 ) ;
group - > tq layout( ) - > setMargin ( 11 ) ;
group - > layout( ) - > setSpacing ( 4 ) ;
group - > layout( ) - > setMargin ( 11 ) ;
TQLabel * label1 = new TQLabel ( i18n ( " &Name: " ) , group ) ;
TQLabel * label2 = new TQLabel ( i18n ( " &Parameter: " ) , group ) ;
@ -1867,26 +1867,26 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La
m_cbCenter = new TQCheckBox ( i18n ( " C&enter " ) , group ) ;
m_cbBullets = new TQCheckBox ( i18n ( " Insert &bullets " ) , group ) ;
TQGridLayout * group tq layout = new TQGridLayout ( group - > tq layout( ) ) ;
group tq layout- > setAlignment ( TQt : : AlignTop ) ;
group tq layout- > setColStretch ( 5 , 1 ) ;
group tq layout- > addWidget ( label1 , 0 , 0 ) ;
group tq layout- > addWidget ( label2 , 1 , 0 ) ;
group tq layout- > addWidget ( m_coEnvironment , 0 , 1 ) ;
group tq layout- > addWidget ( m_coParameter , 1 , 1 ) ;
group tq layout- > setColSpacing ( 2 , 24 ) ;
group tq layout- > addWidget ( label3 , 0 , 3 ) ;
group tq layout- > addWidget ( label4 , 1 , 3 ) ;
group tq layout- > addWidget ( m_spRows , 0 , 4 ) ;
group tq layout- > addWidget ( m_spCols , 1 , 4 ) ;
group tq layout- > setRowSpacing ( 2 , 8 ) ;
group tq layout- > addMultiCellWidget ( m_cbWarning , 3 , 3 , 0 , 4 , TQt : : AlignLeft ) ;
group tq layout- > addMultiCellWidget ( m_cbStarred , 4 , 4 , 0 , 1 , TQt : : AlignLeft ) ;
group tq layout- > addMultiCellWidget ( m_cbBooktabs , 5 , 5 , 0 , 1 , TQt : : AlignLeft ) ;
group tq layout- > addMultiCellWidget ( m_cbCenter , 4 , 4 , 3 , 4 , TQt : : AlignLeft ) ;
group tq layout- > addMultiCellWidget ( m_cbBullets , 5 , 5 , 3 , 4 , TQt : : AlignLeft ) ;
TQGridLayout * group layout = new TQGridLayout ( group - > layout( ) ) ;
group layout- > setAlignment ( TQt : : AlignTop ) ;
group layout- > setColStretch ( 5 , 1 ) ;
group layout- > addWidget ( label1 , 0 , 0 ) ;
group layout- > addWidget ( label2 , 1 , 0 ) ;
group layout- > addWidget ( m_coEnvironment , 0 , 1 ) ;
group layout- > addWidget ( m_coParameter , 1 , 1 ) ;
group layout- > setColSpacing ( 2 , 24 ) ;
group layout- > addWidget ( label3 , 0 , 3 ) ;
group layout- > addWidget ( label4 , 1 , 3 ) ;
group layout- > addWidget ( m_spRows , 0 , 4 ) ;
group layout- > addWidget ( m_spCols , 1 , 4 ) ;
group layout- > setRowSpacing ( 2 , 8 ) ;
group layout- > addMultiCellWidget ( m_cbWarning , 3 , 3 , 0 , 4 , TQt : : AlignLeft ) ;
group layout- > addMultiCellWidget ( m_cbStarred , 4 , 4 , 0 , 1 , TQt : : AlignLeft ) ;
group layout- > addMultiCellWidget ( m_cbBooktabs , 5 , 5 , 0 , 1 , TQt : : AlignLeft ) ;
group layout- > addMultiCellWidget ( m_cbCenter , 4 , 4 , 3 , 4 , TQt : : AlignLeft ) ;
group layout- > addMultiCellWidget ( m_cbBullets , 5 , 5 , 3 , 4 , TQt : : AlignLeft ) ;
// add widgets
vbox - > addWidget ( m_table ) ;
@ -1924,7 +1924,7 @@ TabularDialog::TabularDialog(TQWidget *parent, KConfig *config, KileDocument::La
connect ( m_spCols , TQT_SIGNAL ( valueChanged ( int ) ) , this , TQT_SLOT ( slotColValueChanged ( int ) ) ) ;
TQWhatsThis : : add ( m_table , i18n ( " Input data. When you press Enter, the cursor will move to the cell right of the current cell. A click with the right mouse button on a cell or a range of cells will open a popup menu, where you can edit attributes, clear attributes, delete text or define multicolumn cells. " ) ) ;
TQWhatsThis : : add ( m_table - > horizontalHeader ( ) , i18n ( " Current tq layout of the preamble. A click with the right mouse button will open a popup menu, where you can edit some attributes of all cells, which belong to the selected columns." ) ) ;
TQWhatsThis : : add ( m_table - > horizontalHeader ( ) , i18n ( " Current layout of the preamble. A click with the right mouse button will open a popup menu, where you can edit some attributes of all cells, which belong to the selected columns." ) ) ;
TQWhatsThis : : add ( m_table - > verticalHeader ( ) , i18n ( " A click with the right mouse button will open a popup menu, where you can edit some attributes of all cells, which belong to the selected rows. " ) ) ;
TQWhatsThis : : add ( m_coEnvironment , i18n ( " Choose an environment. " ) ) ;
TQWhatsThis : : add ( m_coParameter , i18n ( " Optional parameter for the chosen environment. " ) ) ;