summaryrefslogtreecommitdiffstats
path: root/knotes/knoteconfigdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knotes/knoteconfigdlg.cpp')
-rw-r--r--knotes/knoteconfigdlg.cpp92
1 files changed, 46 insertions, 46 deletions
diff --git a/knotes/knoteconfigdlg.cpp b/knotes/knoteconfigdlg.cpp
index 334ec37bd..a1238768b 100644
--- a/knotes/knoteconfigdlg.cpp
+++ b/knotes/knoteconfigdlg.cpp
@@ -18,12 +18,12 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*******************************************************************/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qhgroupbox.h>
-#include <qtabwidget.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqhgroupbox.h>
+#include <tqtabwidget.h>
#include <kapplication.h>
#include <kconfig.h>
@@ -41,8 +41,8 @@
#include "version.h"
-KNoteConfigDlg::KNoteConfigDlg( KNoteConfig *config, const QString& title,
- QWidget *parent, const char *name )
+KNoteConfigDlg::KNoteConfigDlg( KNoteConfig *config, const TQString& title,
+ TQWidget *parent, const char *name )
: KConfigDialog( parent, name, config ? config : KNotesGlobalConfig::self(), IconList,
config ? Default|Ok|Apply|Cancel : Default|Ok|Cancel, Ok )
{
@@ -86,32 +86,32 @@ void KNoteConfigDlg::slotUpdateCaption()
setCaption( note->name() );
}
-QWidget *KNoteConfigDlg::makeDisplayPage( bool defaults )
+TQWidget *KNoteConfigDlg::makeDisplayPage( bool defaults )
{
- QWidget *displayPage = new QWidget();
- QGridLayout *layout = new QGridLayout( displayPage, 2, 2,
+ TQWidget *displayPage = new TQWidget();
+ TQGridLayout *layout = new TQGridLayout( displayPage, 2, 2,
defaults ? marginHint() : 0, spacingHint() );
- QLabel *label_FgColor = new QLabel( i18n("&Text color:"), displayPage, "label_FgColor" );
+ TQLabel *label_FgColor = new TQLabel( i18n("&Text color:"), displayPage, "label_FgColor" );
layout->addWidget( label_FgColor, 0, 0 );
KColorButton *kcfg_FgColor = new KColorButton( displayPage, "kcfg_FgColor" );
label_FgColor->setBuddy( kcfg_FgColor );
layout->addWidget( kcfg_FgColor, 0, 1 );
- QLabel *label_BgColor = new QLabel( i18n("&Background color:"), displayPage, "label_BgColor" );
+ TQLabel *label_BgColor = new TQLabel( i18n("&Background color:"), displayPage, "label_BgColor" );
layout->addWidget( label_BgColor, 1, 0 );
KColorButton *kcfg_BgColor = new KColorButton( displayPage, "kcfg_BgColor" );
label_BgColor->setBuddy( kcfg_BgColor );
layout->addWidget( kcfg_BgColor, 1, 1 );
- QCheckBox *kcfg_ShowInTaskbar = new QCheckBox( i18n("&Show note in taskbar"),
+ TQCheckBox *kcfg_ShowInTaskbar = new TQCheckBox( i18n("&Show note in taskbar"),
displayPage, "kcfg_ShowInTaskbar" );
if ( defaults )
{
- QLabel *label_Width = new QLabel( i18n("Default &width:"), displayPage, "label_Width" );
+ TQLabel *label_Width = new TQLabel( i18n("Default &width:"), displayPage, "label_Width" );
layout->addWidget( label_Width, 2, 0 );
KIntNumInput *kcfg_Width = new KIntNumInput( displayPage, "kcfg_Width" );
@@ -119,7 +119,7 @@ QWidget *KNoteConfigDlg::makeDisplayPage( bool defaults )
kcfg_Width->setRange( 50, 2000, 10, false );
layout->addWidget( kcfg_Width, 2, 1 );
- QLabel *label_Height = new QLabel( i18n("Default &height:"), displayPage, "label_Height" );
+ TQLabel *label_Height = new TQLabel( i18n("Default &height:"), displayPage, "label_Height" );
layout->addWidget( label_Height, 3, 0 );
KIntNumInput *kcfg_Height = new KIntNumInput( displayPage, "kcfg_Height" );
@@ -135,13 +135,13 @@ QWidget *KNoteConfigDlg::makeDisplayPage( bool defaults )
return displayPage;
}
-QWidget *KNoteConfigDlg::makeEditorPage( bool defaults )
+TQWidget *KNoteConfigDlg::makeEditorPage( bool defaults )
{
- QWidget *editorPage = new QWidget();
- QGridLayout *layout = new QGridLayout( editorPage, 4, 3,
+ TQWidget *editorPage = new TQWidget();
+ TQGridLayout *layout = new TQGridLayout( editorPage, 4, 3,
defaults ? marginHint() : 0, spacingHint() );
- QLabel *label_TabSize = new QLabel( i18n( "&Tab size:" ), editorPage, "label_TabSize" );
+ TQLabel *label_TabSize = new TQLabel( i18n( "&Tab size:" ), editorPage, "label_TabSize" );
layout->addMultiCellWidget( label_TabSize, 0, 0, 0, 1 );
KIntNumInput *kcfg_TabSize = new KIntNumInput( editorPage, "kcfg_TabSize" );
@@ -149,44 +149,44 @@ QWidget *KNoteConfigDlg::makeEditorPage( bool defaults )
label_TabSize->setBuddy( kcfg_TabSize );
layout->addWidget( kcfg_TabSize, 0, 2 );
- QCheckBox *kcfg_AutoIndent = new QCheckBox( i18n("Auto &indent"), editorPage, "kcfg_AutoIndent" );
+ TQCheckBox *kcfg_AutoIndent = new TQCheckBox( i18n("Auto &indent"), editorPage, "kcfg_AutoIndent" );
layout->addMultiCellWidget( kcfg_AutoIndent, 1, 1, 0, 1 );
- QCheckBox *kcfg_RichText = new QCheckBox( i18n("&Rich text"), editorPage, "kcfg_RichText" );
+ TQCheckBox *kcfg_RichText = new TQCheckBox( i18n("&Rich text"), editorPage, "kcfg_RichText" );
layout->addWidget( kcfg_RichText, 1, 2 );
- QLabel *label_Font = new QLabel( i18n("Text font:"), editorPage, "label_Font" );
+ TQLabel *label_Font = new TQLabel( i18n("Text font:"), editorPage, "label_Font" );
layout->addWidget( label_Font, 3, 0 );
KFontRequester *kcfg_Font = new KFontRequester( editorPage, "kcfg_Font" );
- kcfg_Font->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed ) );
+ kcfg_Font->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
layout->addMultiCellWidget( kcfg_Font, 3, 3, 1, 2 );
- QLabel *label_TitleFont = new QLabel( i18n("Title font:"), editorPage, "label_TitleFont" );
+ TQLabel *label_TitleFont = new TQLabel( i18n("Title font:"), editorPage, "label_TitleFont" );
layout->addWidget( label_TitleFont, 2, 0 );
KFontRequester *kcfg_TitleFont = new KFontRequester( editorPage, "kcfg_TitleFont" );
- kcfg_TitleFont->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Fixed ) );
+ kcfg_TitleFont->setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ) );
layout->addMultiCellWidget( kcfg_TitleFont, 2, 2, 1, 2 );
return editorPage;
}
-QWidget *KNoteConfigDlg::makeDefaultsPage()
+TQWidget *KNoteConfigDlg::makeDefaultsPage()
{
- QTabWidget *defaultsPage = new QTabWidget();
+ TQTabWidget *defaultsPage = new TQTabWidget();
defaultsPage->addTab( makeDisplayPage( true ), SmallIconSet( "knotes" ), i18n("Displa&y") );
defaultsPage->addTab( makeEditorPage( true ), SmallIconSet( "edit" ), i18n("&Editor") );
return defaultsPage;
}
-QWidget *KNoteConfigDlg::makeActionsPage()
+TQWidget *KNoteConfigDlg::makeActionsPage()
{
- QWidget *actionsPage = new QWidget();
- QGridLayout *layout = new QGridLayout( actionsPage, 2, 2, 0, spacingHint() );
+ TQWidget *actionsPage = new TQWidget();
+ TQGridLayout *layout = new TQGridLayout( actionsPage, 2, 2, 0, spacingHint() );
- QLabel *label_MailAction = new QLabel( i18n("&Mail action:"), actionsPage, "label_MailAction" );
+ TQLabel *label_MailAction = new TQLabel( i18n("&Mail action:"), actionsPage, "label_MailAction" );
layout->addWidget( label_MailAction, 0, 0 );
KLineEdit *kcfg_MailAction = new KLineEdit( actionsPage, "kcfg_MailAction" );
@@ -196,24 +196,24 @@ QWidget *KNoteConfigDlg::makeActionsPage()
return actionsPage;
}
-QWidget *KNoteConfigDlg::makeNetworkPage()
+TQWidget *KNoteConfigDlg::makeNetworkPage()
{
- QWidget *networkPage = new QWidget();
- QGridLayout *layout = new QGridLayout( networkPage, 4, 2, 0, spacingHint() );
+ TQWidget *networkPage = new TQWidget();
+ TQGridLayout *layout = new TQGridLayout( networkPage, 4, 2, 0, spacingHint() );
- QGroupBox *incoming = new QHGroupBox( i18n("Incoming Notes"), networkPage );
+ TQGroupBox *incoming = new TQHGroupBox( i18n("Incoming Notes"), networkPage );
layout->addMultiCellWidget( incoming, 0, 0, 0, 1 );
- new QCheckBox( i18n("Accept incoming notes"), incoming, "kcfg_ReceiveNotes" );
+ new TQCheckBox( i18n("Accept incoming notes"), incoming, "kcfg_ReceiveNotes" );
- QGroupBox *outgoing = new QHGroupBox( i18n("Outgoing Notes"), networkPage );
+ TQGroupBox *outgoing = new TQHGroupBox( i18n("Outgoing Notes"), networkPage );
layout->addMultiCellWidget( outgoing, 1, 1, 0, 1 );
- QLabel *label_SenderID = new QLabel( i18n("&Sender ID:"), outgoing, "label_SenderID" );
+ TQLabel *label_SenderID = new TQLabel( i18n("&Sender ID:"), outgoing, "label_SenderID" );
KLineEdit *kcfg_SenderID = new KLineEdit( outgoing, "kcfg_SenderID" );
label_SenderID->setBuddy( kcfg_SenderID );
- QLabel *label_Port = new QLabel( i18n("&Port:"), networkPage, "label_Port" );
+ TQLabel *label_Port = new TQLabel( i18n("&Port:"), networkPage, "label_Port" );
layout->addWidget( label_Port, 2, 0 );
KIntNumInput *kcfg_Port = new KIntNumInput( networkPage, "kcfg_Port" );
@@ -224,16 +224,16 @@ QWidget *KNoteConfigDlg::makeNetworkPage()
return networkPage;
}
-QWidget *KNoteConfigDlg::makeStylePage()
+TQWidget *KNoteConfigDlg::makeStylePage()
{
- QWidget *stylePage = new QWidget();
- QGridLayout *layout = new QGridLayout( stylePage, 2, 2, 0, spacingHint() );
+ TQWidget *stylePage = new TQWidget();
+ TQGridLayout *layout = new TQGridLayout( stylePage, 2, 2, 0, spacingHint() );
- QLabel *label_Style = new QLabel( i18n("&Style:"), stylePage, "label_Style" );
+ TQLabel *label_Style = new TQLabel( i18n("&Style:"), stylePage, "label_Style" );
layout->addWidget( label_Style, 0, 0 );
- QComboBox *kcfg_Style = new QComboBox( stylePage, "kcfg_Style" );
- QStringList list;
+ TQComboBox *kcfg_Style = new TQComboBox( stylePage, "kcfg_Style" );
+ TQStringList list;
list << "Plain" << "Fancy";
kcfg_Style->insertStringList( list );
label_Style->setBuddy( kcfg_Style );