@ -81,7 +81,7 @@ static TQSize sizeHintForWidget(const TQWidget* widget)
//
//
// The size is computed by adding the sizeHint().height() of all
// The size is computed by adding the sizeHint().height() of all
// widget children and taking the width of the widest child and adding
// widget children and taking the width of the widest child and adding
// tq layout()->margin() and tq layout()->spacing()
// layout()->margin() and layout()->spacing()
//
//
TQSize size ;
TQSize size ;
@ -110,7 +110,7 @@ static TQSize sizeHintForWidget(const TQWidget* widget)
if ( numChild > 0 )
if ( numChild > 0 )
{
{
size . setHeight ( size . height ( ) + widget - > tqlayout ( ) - > spacing ( ) * ( numChild - 1 ) ) ;
size . setHeight ( size . height ( ) + widget - > tqlayout ( ) - > spacing ( ) * ( numChild - 1 ) ) ;
size + = TQSize ( widget - > tq layout( ) - > margin ( ) * 2 , widget - > tq layout( ) - > margin ( ) * 2 + 1 ) ;
size + = TQSize ( widget - > layout( ) - > margin ( ) * 2 , widget - > layout( ) - > margin ( ) * 2 + 1 ) ;
}
}
else
else
{
{
@ -127,12 +127,12 @@ SavePreferences::SavePreferences(TQWidget *parent)
: KTabCtl ( parent )
: KTabCtl ( parent )
{
{
TQWidget * page = new TQWidget ( this ) ;
TQWidget * page = new TQWidget ( this ) ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
_updateButton = new TQCheckBox ( i18n ( " &Update header when saving " ) , box , " kcfg_AutoUpdate " ) ;
_updateButton = new TQCheckBox ( i18n ( " &Update header when saving " ) , box , " kcfg_AutoUpdate " ) ;
@ -141,7 +141,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
_saveObsoleteButton = new TQCheckBox ( i18n ( " Save &obsolete entries " ) , box , " kcfg_SaveObsolete " ) ;
_saveObsoleteButton = new TQCheckBox ( i18n ( " Save &obsolete entries " ) , box , " kcfg_SaveObsolete " ) ;
TQGroupBox * descBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " De&scription " ) , page ) ;
TQGroupBox * descBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " De&scription " ) , page ) ;
tq layout- > addWidget ( descBox ) ;
layout- > addWidget ( descBox ) ;
descBox - > setMargin ( KDialog : : marginHint ( ) ) ;
descBox - > setMargin ( KDialog : : marginHint ( ) ) ;
_descriptionEdit = new TQLineEdit ( descBox , " kcfg_DescriptionString " ) ;
_descriptionEdit = new TQLineEdit ( descBox , " kcfg_DescriptionString " ) ;
@ -149,7 +149,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
TQGroupBox * encodingBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Encoding " )
TQGroupBox * encodingBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Encoding " )
, page ) ;
, page ) ;
encodingBox - > setMargin ( KDialog : : marginHint ( ) ) ;
encodingBox - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( encodingBox ) ;
layout- > addWidget ( encodingBox ) ;
TQHBox * b = new TQHBox ( encodingBox ) ;
TQHBox * b = new TQHBox ( encodingBox ) ;
TQLabel * tempLabel = new TQLabel ( i18n ( " Default: " ) , b ) ;
TQLabel * tempLabel = new TQLabel ( i18n ( " Default: " ) , b ) ;
@ -177,23 +177,23 @@ SavePreferences::SavePreferences(TQWidget *parent)
_autoSaveBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Automatic Saving " ) , page ) ;
_autoSaveBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Automatic Saving " ) , page ) ;
_autoSaveBox - > setMargin ( KDialog : : marginHint ( ) ) ;
_autoSaveBox - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( _autoSaveBox ) ;
layout- > addWidget ( _autoSaveBox ) ;
_autoSaveDelay = new KIntNumInput ( _autoSaveBox , " kcfg_AutoSaveDelay " ) ;
_autoSaveDelay = new KIntNumInput ( _autoSaveBox , " kcfg_AutoSaveDelay " ) ;
_autoSaveDelay - > setRange ( 0 , 60 ) ;
_autoSaveDelay - > setRange ( 0 , 60 ) ;
_autoSaveDelay - > setSuffix ( i18n ( " Short for minutes " , " min " ) ) ;
_autoSaveDelay - > setSuffix ( i18n ( " Short for minutes " , " min " ) ) ;
_autoSaveDelay - > setSpecialValueText ( i18n ( " No autosave " ) ) ;
_autoSaveDelay - > setSpecialValueText ( i18n ( " No autosave " ) ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
addTab ( page , i18n ( " &General " ) ) ;
addTab ( page , i18n ( " &General " ) ) ;
page = new TQWidget ( this ) ;
page = new TQWidget ( this ) ;
tq layout= new TQVBoxLayout ( page ) ;
layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * gridBox = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Fields to Update " ) , page ) ;
TQGroupBox * gridBox = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Fields to Update " ) , page ) ;
tq layout- > addWidget ( gridBox ) ;
layout- > addWidget ( gridBox ) ;
gridBox - > setMargin ( KDialog : : marginHint ( ) ) ;
gridBox - > setMargin ( KDialog : : marginHint ( ) ) ;
_revisionButton = new TQCheckBox ( i18n ( " Re&vision-Date " ) , gridBox , " kcfg_UpdateRevisionDate " ) ;
_revisionButton = new TQCheckBox ( i18n ( " Re&vision-Date " ) , gridBox , " kcfg_UpdateRevisionDate " ) ;
@ -204,7 +204,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
_projectButton = new TQCheckBox ( i18n ( " Pro&ject " ) , gridBox , " kcfg_UpdateProject " ) ;
_projectButton = new TQCheckBox ( i18n ( " Pro&ject " ) , gridBox , " kcfg_UpdateProject " ) ;
TQButtonGroup * dateBox = new TQButtonGroup ( 2 , Qt : : Horizontal , i18n ( " Format of Revision-Date " ) , page , " kcfg_DateFormat " ) ;
TQButtonGroup * dateBox = new TQButtonGroup ( 2 , Qt : : Horizontal , i18n ( " Format of Revision-Date " ) , page , " kcfg_DateFormat " ) ;
tq layout- > addWidget ( dateBox ) ;
layout- > addWidget ( dateBox ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
// we remove/insert default date button to correctly map TQt::DateFormat to our Ids
// we remove/insert default date button to correctly map TQt::DateFormat to our Ids
@ -225,7 +225,7 @@ SavePreferences::SavePreferences(TQWidget *parent)
TQGroupBox * projectBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Project String " )
TQGroupBox * projectBox = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Project String " )
, page ) ;
, page ) ;
projectBox - > setMargin ( KDialog : : marginHint ( ) ) ;
projectBox - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( projectBox ) ;
layout- > addWidget ( projectBox ) ;
b = new TQHBox ( projectBox ) ;
b = new TQHBox ( projectBox ) ;
tempLabel = new TQLabel ( i18n ( " Project-Id: " ) , b ) ;
tempLabel = new TQLabel ( i18n ( " Project-Id: " ) , b ) ;
@ -234,31 +234,31 @@ SavePreferences::SavePreferences(TQWidget *parent)
b - > setSpacing ( KDialog : : spacingHint ( ) ) ;
b - > setSpacing ( KDialog : : spacingHint ( ) ) ;
tempLabel - > setBuddy ( _projectEdit ) ;
tempLabel - > setBuddy ( _projectEdit ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
addTab ( page , i18n ( " &Header " ) ) ;
addTab ( page , i18n ( " &Header " ) ) ;
page = new TQWidget ( this ) ;
page = new TQWidget ( this ) ;
tq layout= new TQVBoxLayout ( page ) ;
layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * translatorCopyrightBox = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
TQGroupBox * translatorCopyrightBox = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
translatorCopyrightBox - > setMargin ( KDialog : : marginHint ( ) ) ;
translatorCopyrightBox - > setMargin ( KDialog : : marginHint ( ) ) ;
_translatorCopyrightButton =
_translatorCopyrightButton =
new TQCheckBox ( i18n ( " Update &translator copyright " )
new TQCheckBox ( i18n ( " Update &translator copyright " )
, translatorCopyrightBox , " kcfg_UpdateTranslatorCopyright " ) ;
, translatorCopyrightBox , " kcfg_UpdateTranslatorCopyright " ) ;
tq layout- > addWidget ( translatorCopyrightBox ) ;
layout- > addWidget ( translatorCopyrightBox ) ;
TQGroupBox * fsfBox = new TQButtonGroup ( 1 , Qt : : Horizontal , i18n ( " Free Software Foundation Copyright " ) , page , " kcfg_FSFCopyright " ) ;
TQGroupBox * fsfBox = new TQButtonGroup ( 1 , Qt : : Horizontal , i18n ( " Free Software Foundation Copyright " ) , page , " kcfg_FSFCopyright " ) ;
tq layout- > addWidget ( fsfBox ) ;
layout- > addWidget ( fsfBox ) ;
fsfBox - > setMargin ( KDialog : : marginHint ( ) ) ;
fsfBox - > setMargin ( KDialog : : marginHint ( ) ) ;
_removeFSFButton = new TQRadioButton ( i18n ( " &Remove copyright if empty " ) , fsfBox ) ;
_removeFSFButton = new TQRadioButton ( i18n ( " &Remove copyright if empty " ) , fsfBox ) ;
_updateFSFButton = new TQRadioButton ( i18n ( " &Update copyright " ) , fsfBox ) ;
_updateFSFButton = new TQRadioButton ( i18n ( " &Update copyright " ) , fsfBox ) ;
_nochangeFSFButton = new TQRadioButton ( i18n ( " Do ¬ change " ) , fsfBox ) ;
_nochangeFSFButton = new TQRadioButton ( i18n ( " Do ¬ change " ) , fsfBox ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
addTab ( page , i18n ( " Cop&yright " ) ) ;
addTab ( page , i18n ( " Cop&yright " ) ) ;
@ -402,18 +402,18 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
: TQWidget ( parent )
: TQWidget ( parent )
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
if ( ! project . isEmpty ( ) )
if ( ! project . isEmpty ( ) )
{
{
// show the project name in the widget at the top
// show the project name in the widget at the top
tq layout- > addWidget ( new TQLabel ( i18n ( " <font size= \" +1 \" >Project: %1</font> " ) . arg ( project ) , page ) ) ;
layout- > addWidget ( new TQLabel ( i18n ( " <font size= \" +1 \" >Project: %1</font> " ) . arg ( project ) , page ) ) ;
}
}
TQGroupBox * group = new TQGroupBox ( 2 , Qt : : Horizontal , page ) ;
TQGroupBox * group = new TQGroupBox ( 2 , Qt : : Horizontal , page ) ;
tq layout- > addWidget ( group ) ;
layout- > addWidget ( group ) ;
group - > setMargin ( KDialog : : marginHint ( ) ) ;
group - > setMargin ( KDialog : : marginHint ( ) ) ;
TQLabel * tempLabel = new TQLabel ( i18n ( " &Name: " ) , group ) ;
TQLabel * tempLabel = new TQLabel ( i18n ( " &Name: " ) , group ) ;
@ -462,7 +462,7 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
group = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
group = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
tq layout- > addWidget ( group ) ;
layout- > addWidget ( group ) ;
group - > setMargin ( KDialog : : marginHint ( ) ) ;
group - > setMargin ( KDialog : : marginHint ( ) ) ;
hbox = new TQHBox ( group ) ;
hbox = new TQHBox ( group ) ;
@ -534,7 +534,7 @@ IdentityPreferences::IdentityPreferences(TQWidget* parent, const TQString& proje
" GNU gettext tools for currently set language; just press the <b>Lookup</b> "
" GNU gettext tools for currently set language; just press the <b>Lookup</b> "
" button.</p></qt> " ) ) ;
" button.</p></qt> " ) ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
@ -663,13 +663,13 @@ MiscPreferences::MiscPreferences(TQWidget *parent)
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
TQHBox * hbox = new TQHBox ( box ) ;
TQHBox * hbox = new TQHBox ( box ) ;
hbox - > setSpacing ( KDialog : : spacingHint ( ) ) ;
hbox - > setSpacing ( KDialog : : spacingHint ( ) ) ;
@ -715,7 +715,7 @@ MiscPreferences::MiscPreferences(TQWidget *parent)
vbgroup - > setTitle ( i18n ( " Compression Method for Mail Attachments " ) ) ;
vbgroup - > setTitle ( i18n ( " Compression Method for Mail Attachments " ) ) ;
vbgroup - > setRadioButtonExclusive ( true ) ;
vbgroup - > setRadioButtonExclusive ( true ) ;
vbgroup - > setMargin ( KDialog : : marginHint ( ) ) ;
vbgroup - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( vbgroup ) ;
layout- > addWidget ( vbgroup ) ;
bzipButton = new TQRadioButton ( i18n ( " tar/&bzip2 " ) , vbgroup , " kcfg_BZipCompression " ) ;
bzipButton = new TQRadioButton ( i18n ( " tar/&bzip2 " ) , vbgroup , " kcfg_BZipCompression " ) ;
gzipButton = new TQRadioButton ( i18n ( " tar/&gzip " ) , vbgroup ) ;
gzipButton = new TQRadioButton ( i18n ( " tar/&gzip " ) , vbgroup ) ;
@ -723,7 +723,7 @@ MiscPreferences::MiscPreferences(TQWidget *parent)
compressSingle = new TQCheckBox ( i18n ( " &Use compression when sending "
compressSingle = new TQCheckBox ( i18n ( " &Use compression when sending "
" a single file " ) , vbgroup , " kcfg_CompressSingleFile " ) ;
" a single file " ) , vbgroup , " kcfg_CompressSingleFile " ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
}
}
@ -794,30 +794,30 @@ SpellPreferences::SpellPreferences(TQWidget* parent)
: TQWidget ( parent )
: TQWidget ( parent )
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
onFlyBtn = new TQCheckBox ( i18n ( " On the &fly spellchecking " ) , page , " kcfg_OnFlySpellCheck " ) ;
onFlyBtn = new TQCheckBox ( i18n ( " On the &fly spellchecking " ) , page , " kcfg_OnFlySpellCheck " ) ;
tq layout- > addWidget ( onFlyBtn ) ;
layout- > addWidget ( onFlyBtn ) ;
TQWhatsThis : : add ( onFlyBtn , i18n ( " <qt><p><b>On the fly spellchecking</b></p> "
TQWhatsThis : : add ( onFlyBtn , i18n ( " <qt><p><b>On the fly spellchecking</b></p> "
" <p>Activate this to let KBabel spell check the text "
" <p>Activate this to let KBabel spell check the text "
" as you type. Mispelled words will be colored by the error color.</p></qt> " ) ) ;
" as you type. Mispelled words will be colored by the error color.</p></qt> " ) ) ;
spellConfig = new KSpellConfig ( page , " spellConfigWidget " , 0 , false ) ;
spellConfig = new KSpellConfig ( page , " spellConfigWidget " , 0 , false ) ;
tq layout- > addWidget ( spellConfig ) ;
layout- > addWidget ( spellConfig ) ;
remIgnoredBtn = new TQCheckBox ( i18n ( " &Remember ignored words " ) , page , " kcfg_RememberIgnored " ) ;
remIgnoredBtn = new TQCheckBox ( i18n ( " &Remember ignored words " ) , page , " kcfg_RememberIgnored " ) ;
tq layout- > addWidget ( remIgnoredBtn ) ;
layout- > addWidget ( remIgnoredBtn ) ;
connect ( spellConfig , TQT_SIGNAL ( configChanged ( ) )
connect ( spellConfig , TQT_SIGNAL ( configChanged ( ) )
, this , TQT_SIGNAL ( settingsChanged ( ) ) ) ;
, this , TQT_SIGNAL ( settingsChanged ( ) ) ) ;
TQLabel * tempLabel = new TQLabel ( i18n ( " F&ile to store ignored words: " ) , page ) ;
TQLabel * tempLabel = new TQLabel ( i18n ( " F&ile to store ignored words: " ) , page ) ;
tq layout- > addWidget ( tempLabel ) ;
layout- > addWidget ( tempLabel ) ;
ignoreURLEdit = new KURLRequester ( page , " kcfg_IgnoreURL " ) ;
ignoreURLEdit = new KURLRequester ( page , " kcfg_IgnoreURL " ) ;
tq layout- > addWidget ( ignoreURLEdit ) ;
layout- > addWidget ( ignoreURLEdit ) ;
tempLabel - > setBuddy ( ignoreURLEdit ) ;
tempLabel - > setBuddy ( ignoreURLEdit ) ;
connect ( remIgnoredBtn , TQT_SIGNAL ( toggled ( bool ) ) , ignoreURLEdit
connect ( remIgnoredBtn , TQT_SIGNAL ( toggled ( bool ) ) , ignoreURLEdit
@ -833,7 +833,7 @@ SpellPreferences::SpellPreferences(TQWidget* parent)
TQWhatsThis : : add ( tempLabel , msg ) ;
TQWhatsThis : : add ( tempLabel , msg ) ;
TQWhatsThis : : add ( ignoreURLEdit , msg ) ;
TQWhatsThis : : add ( ignoreURLEdit , msg ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
@ -879,13 +879,13 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent)
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
TQLabel * label = new TQLabel ( i18n ( " &Base folder of PO files: " ) , box ) ;
TQLabel * label = new TQLabel ( i18n ( " &Base folder of PO files: " ) , box ) ;
TQHBox * hbox = new TQHBox ( box ) ;
TQHBox * hbox = new TQHBox ( box ) ;
@ -919,7 +919,7 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent)
box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
box = new TQGroupBox ( 1 , Qt : : Horizontal , page ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
_openWindowButton = new TQCheckBox ( i18n ( " O&pen files in new window " ) , box , " kcfg_OpenWindow " ) ;
_openWindowButton = new TQCheckBox ( i18n ( " O&pen files in new window " ) , box , " kcfg_OpenWindow " ) ;
@ -956,7 +956,7 @@ CatmanPreferences::CatmanPreferences(TQWidget* parent)
" so invalid PO files could be shown as good ones, "
" so invalid PO files could be shown as good ones, "
" even if Gettext tools would reject such files.</p></qt> " ) ) ;
" even if Gettext tools would reject such files.</p></qt> " ) ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
@ -981,13 +981,13 @@ DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent)
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Commands for Folders " ) , page ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Commands for Folders " ) , page ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
_dirCmdEdit = new CmdEdit ( box ) ;
_dirCmdEdit = new CmdEdit ( box ) ;
new TQLabel ( i18n ( " Replaceables: \n @PACKAGE@, @PODIR@, @POTDIR@ \n "
new TQLabel ( i18n ( " Replaceables: \n @PACKAGE@, @PODIR@, @POTDIR@ \n "
@ -1010,7 +1010,7 @@ DirCommandsPreferences::DirCommandsPreferences(TQWidget* parent)
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
setMinimumSize ( sizeHint ( ) ) ;
setMinimumSize ( sizeHint ( ) ) ;
@ -1044,13 +1044,13 @@ FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent)
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Commands for Files " ) , page ) ;
TQGroupBox * box = new TQGroupBox ( 1 , Qt : : Horizontal , i18n ( " Commands for Files " ) , page ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
_fileCmdEdit = new CmdEdit ( box ) ;
_fileCmdEdit = new CmdEdit ( box ) ;
new TQLabel ( i18n ( " Replaceables: \n "
new TQLabel ( i18n ( " Replaceables: \n "
@ -1074,7 +1074,7 @@ FileCommandsPreferences::FileCommandsPreferences(TQWidget* parent)
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
setMinimumSize ( sizeHint ( ) ) ;
setMinimumSize ( sizeHint ( ) ) ;
@ -1107,13 +1107,13 @@ ViewPreferences::ViewPreferences(TQWidget* parent)
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQGroupBox * box = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Shown Columns " ) , page ) ;
TQGroupBox * box = new TQGroupBox ( 2 , Qt : : Horizontal , i18n ( " Shown Columns " ) , page ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
box - > setMargin ( KDialog : : marginHint ( ) ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
_flagColumnCheckbox = new TQCheckBox ( i18n ( " Fla&g " ) , box , " kcfg_ShowFlagColumn " ) ;
_flagColumnCheckbox = new TQCheckBox ( i18n ( " Fla&g " ) , box , " kcfg_ShowFlagColumn " ) ;
_fuzzyColumnCheckbox = new TQCheckBox ( i18n ( " &Fuzzy " ) , box , " kcfg_ShowFuzzyColumn " ) ;
_fuzzyColumnCheckbox = new TQCheckBox ( i18n ( " &Fuzzy " ) , box , " kcfg_ShowFuzzyColumn " ) ;
@ -1126,7 +1126,7 @@ ViewPreferences::ViewPreferences(TQWidget* parent)
TQWhatsThis : : add ( box , i18n ( " <qt><p><b>Shown columns</b></p> \n "
TQWhatsThis : : add ( box , i18n ( " <qt><p><b>Shown columns</b></p> \n "
" <p></p></qt> " ) ) ;
" <p></p></qt> " ) ) ;
tq layout- > addStretch ( 1 ) ;
layout- > addStretch ( 1 ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
page - > setMinimumSize ( sizeHintForWidget ( page ) ) ;
@ -1148,9 +1148,9 @@ void ViewPreferences::defaults(const CatManSettings& _settings)
SourceContextPreferences : : SourceContextPreferences ( TQWidget * parent ) : TQWidget ( parent )
SourceContextPreferences : : SourceContextPreferences ( TQWidget * parent ) : TQWidget ( parent )
{
{
TQWidget * page = this ;
TQWidget * page = this ;
TQVBoxLayout * tq layout= new TQVBoxLayout ( page ) ;
TQVBoxLayout * layout= new TQVBoxLayout ( page ) ;
tq layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
layout- > setSpacing ( KDialog : : spacingHint ( ) ) ;
tq layout- > setMargin ( KDialog : : marginHint ( ) ) ;
layout- > setMargin ( KDialog : : marginHint ( ) ) ;
TQHBox * box = new TQHBox ( page ) ;
TQHBox * box = new TQHBox ( page ) ;
box - > setSpacing ( KDialog : : spacingHint ( ) ) ;
box - > setSpacing ( KDialog : : spacingHint ( ) ) ;
@ -1161,12 +1161,12 @@ SourceContextPreferences::SourceContextPreferences(TQWidget* parent): TQWidget(p
_coderootEdit - > setMode ( mode ) ;
_coderootEdit - > setMode ( mode ) ;
_coderootEdit - > setMinimumSize ( 250 , _coderootEdit - > sizeHint ( ) . height ( ) ) ;
_coderootEdit - > setMinimumSize ( 250 , _coderootEdit - > sizeHint ( ) . height ( ) ) ;
tempLabel - > setBuddy ( _coderootEdit ) ;
tempLabel - > setBuddy ( _coderootEdit ) ;
tq layout- > addWidget ( box ) ;
layout- > addWidget ( box ) ;
// FIXME: use KConfigXT
// FIXME: use KConfigXT
_pathsEditor = new KListEditor ( page ) ;
_pathsEditor = new KListEditor ( page ) ;
_pathsEditor - > setTitle ( i18n ( " Path Patterns " ) ) ;
_pathsEditor - > setTitle ( i18n ( " Path Patterns " ) ) ;
tq layout- > addWidget ( _pathsEditor ) ;
layout- > addWidget ( _pathsEditor ) ;
connect ( _pathsEditor , TQT_SIGNAL ( itemsChanged ( ) )
connect ( _pathsEditor , TQT_SIGNAL ( itemsChanged ( ) )
, this , TQT_SIGNAL ( itemsChanged ( ) ) ) ;
, this , TQT_SIGNAL ( itemsChanged ( ) ) ) ;