|
|
@ -56,20 +56,20 @@ extern "C"
|
|
|
|
|
|
|
|
|
|
|
|
LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
|
|
|
|
LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQVBoxLayout* tqlayout = new TQVBoxLayout(this, 0, 0);
|
|
|
|
TQVBoxLayout* layout = new TQVBoxLayout(this, 0, 0);
|
|
|
|
TQGridLayout* tabLayout = new TQGridLayout(this, 2, 1, 10);
|
|
|
|
TQGridLayout* tabLayout = new TQGridLayout(this, 2, 1, 10);
|
|
|
|
|
|
|
|
|
|
|
|
KGlobal::locale()->insertCatalogue("kstyle_lipstik_config");
|
|
|
|
KGlobal::locale()->insertCatalogue("kstyle_lipstik_config");
|
|
|
|
|
|
|
|
|
|
|
|
///Init tabs
|
|
|
|
///Init tabs
|
|
|
|
TQTabWidget *tabWidget = new TQTabWidget(this);
|
|
|
|
TQTabWidget *tabWidget = new TQTabWidget(this);
|
|
|
|
tqlayout->addWidget(tabWidget);
|
|
|
|
layout->addWidget(tabWidget);
|
|
|
|
|
|
|
|
|
|
|
|
///Init tab1
|
|
|
|
///Init tab1
|
|
|
|
TQWidget *page1 = new TQWidget(tabWidget);
|
|
|
|
TQWidget *page1 = new TQWidget(tabWidget);
|
|
|
|
tqlayout = new TQVBoxLayout(page1);
|
|
|
|
layout = new TQVBoxLayout(page1);
|
|
|
|
tabWidget->insertTab(page1, i18n("Configuration"));
|
|
|
|
tabWidget->insertTab(page1, i18n("Configuration"));
|
|
|
|
tqlayout->addLayout(tabLayout);
|
|
|
|
layout->addLayout(tabLayout);
|
|
|
|
|
|
|
|
|
|
|
|
///General group
|
|
|
|
///General group
|
|
|
|
TQVGroupBox *generalGrp = new TQVGroupBox(i18n("General"), page1);
|
|
|
|
TQVGroupBox *generalGrp = new TQVGroupBox(i18n("General"), page1);
|
|
|
@ -110,7 +110,7 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
|
|
|
|
flatStripe = new TQCheckBox(i18n("Flatten Stripe"), menusGrp);
|
|
|
|
flatStripe = new TQCheckBox(i18n("Flatten Stripe"), menusGrp);
|
|
|
|
customMenuStripeColor = new TQCheckBox(i18n("Custom Stripe color :"), menusGrp);
|
|
|
|
customMenuStripeColor = new TQCheckBox(i18n("Custom Stripe color :"), menusGrp);
|
|
|
|
TQHBox *menuColorBox = new TQHBox(menusGrp);
|
|
|
|
TQHBox *menuColorBox = new TQHBox(menusGrp);
|
|
|
|
menuColorBox->tqlayout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
menuColorBox->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
|
|
|
|
|
|
|
|
menuStripeColor = new KColorButton(menuColorBox);
|
|
|
|
menuStripeColor = new KColorButton(menuColorBox);
|
|
|
|
|
|
|
|
|
|
|
@ -171,22 +171,22 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
|
|
|
|
|
|
|
|
|
|
|
|
customFocusHighlightColor = new TQCheckBox(i18n("Input fields highlight :"), otherGrp);
|
|
|
|
customFocusHighlightColor = new TQCheckBox(i18n("Input fields highlight :"), otherGrp);
|
|
|
|
TQHBox *hbox1 = new TQHBox(otherGrp);
|
|
|
|
TQHBox *hbox1 = new TQHBox(otherGrp);
|
|
|
|
hbox1->tqlayout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
hbox1->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
focusHighlightColor = new KColorButton(hbox1);
|
|
|
|
focusHighlightColor = new KColorButton(hbox1);
|
|
|
|
|
|
|
|
|
|
|
|
customOverHighlightColor = new TQCheckBox(i18n("Mouse hover highlight :"), otherGrp);
|
|
|
|
customOverHighlightColor = new TQCheckBox(i18n("Mouse hover highlight :"), otherGrp);
|
|
|
|
TQHBox *hbox2 = new TQHBox(otherGrp);
|
|
|
|
TQHBox *hbox2 = new TQHBox(otherGrp);
|
|
|
|
hbox2->tqlayout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
hbox2->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
overHighlightColor = new KColorButton(hbox2);
|
|
|
|
overHighlightColor = new KColorButton(hbox2);
|
|
|
|
|
|
|
|
|
|
|
|
customCheckMarkColor = new TQCheckBox(i18n("Checkmark/Radiobuttons :"), otherGrp);
|
|
|
|
customCheckMarkColor = new TQCheckBox(i18n("Checkmark/Radiobuttons :"), otherGrp);
|
|
|
|
TQHBox *hbox3 = new TQHBox(otherGrp);
|
|
|
|
TQHBox *hbox3 = new TQHBox(otherGrp);
|
|
|
|
hbox3->tqlayout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
hbox3->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
checkMarkColor = new KColorButton(hbox3);
|
|
|
|
checkMarkColor = new KColorButton(hbox3);
|
|
|
|
|
|
|
|
|
|
|
|
customTabHighlightColor = new TQCheckBox(i18n("Active tab highlight :"), otherGrp);
|
|
|
|
customTabHighlightColor = new TQCheckBox(i18n("Active tab highlight :"), otherGrp);
|
|
|
|
TQHBox *hbox4 = new TQHBox(otherGrp);
|
|
|
|
TQHBox *hbox4 = new TQHBox(otherGrp);
|
|
|
|
hbox4->tqlayout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
hbox4->layout()->addItem(new TQSpacerItem(20, 0, TQSizePolicy::Fixed, TQSizePolicy::Minimum) );
|
|
|
|
tabHighlightColor = new KColorButton(hbox4);
|
|
|
|
tabHighlightColor = new KColorButton(hbox4);
|
|
|
|
|
|
|
|
|
|
|
|
tabLayout->addWidget(otherGrp,1,2,0);
|
|
|
|
tabLayout->addWidget(otherGrp,1,2,0);
|
|
|
@ -211,7 +211,7 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
|
|
|
|
TQLabel* pcbsdLabel;
|
|
|
|
TQLabel* pcbsdLabel;
|
|
|
|
TQLabel* othersLabel;
|
|
|
|
TQLabel* othersLabel;
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout = new TQVBoxLayout(page2, 10, -1);
|
|
|
|
layout = new TQVBoxLayout(page2, 10, -1);
|
|
|
|
|
|
|
|
|
|
|
|
tabWidget->insertTab(page2, i18n("About"));
|
|
|
|
tabWidget->insertTab(page2, i18n("About"));
|
|
|
|
|
|
|
|
|
|
|
@ -267,29 +267,29 @@ LipstikStyleConfig::LipstikStyleConfig(TQWidget* parent): TQWidget(parent)
|
|
|
|
othersLabel = new TQLabel(page2);
|
|
|
|
othersLabel = new TQLabel(page2);
|
|
|
|
othersLabel->setText(i18n("Special thanks to Dominique and all the kde-look.org users."));
|
|
|
|
othersLabel->setText(i18n("Special thanks to Dominique and all the kde-look.org users."));
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->add(lipstikLabel);
|
|
|
|
layout->add(lipstikLabel);
|
|
|
|
tqlayout->add(authorLabel);
|
|
|
|
layout->add(authorLabel);
|
|
|
|
tqlayout->add(authorAddressLabel);
|
|
|
|
layout->add(authorAddressLabel);
|
|
|
|
tqlayout->add(authorWebLabel);
|
|
|
|
layout->add(authorWebLabel);
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->addSpacing(10);
|
|
|
|
layout->addSpacing(10);
|
|
|
|
tqlayout->add(plastikLabel);
|
|
|
|
layout->add(plastikLabel);
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->addSpacing(10);
|
|
|
|
layout->addSpacing(10);
|
|
|
|
tqlayout->add(alsoLabel);
|
|
|
|
layout->add(alsoLabel);
|
|
|
|
tqlayout->add(cuLabel);
|
|
|
|
layout->add(cuLabel);
|
|
|
|
tqlayout->add(dnLabel);
|
|
|
|
layout->add(dnLabel);
|
|
|
|
tqlayout->add(pqLabel);
|
|
|
|
layout->add(pqLabel);
|
|
|
|
tqlayout->add(cxLabel);
|
|
|
|
layout->add(cxLabel);
|
|
|
|
tqlayout->add(kpLabel);
|
|
|
|
layout->add(kpLabel);
|
|
|
|
tqlayout->add(blLabel);
|
|
|
|
layout->add(blLabel);
|
|
|
|
tqlayout->add(ksLabel);
|
|
|
|
layout->add(ksLabel);
|
|
|
|
tqlayout->add(peLabel);
|
|
|
|
layout->add(peLabel);
|
|
|
|
|
|
|
|
|
|
|
|
tqlayout->addSpacing(10);
|
|
|
|
layout->addSpacing(10);
|
|
|
|
tqlayout->add(bastianLabel);
|
|
|
|
layout->add(bastianLabel);
|
|
|
|
tqlayout->add(pcbsdLabel);
|
|
|
|
layout->add(pcbsdLabel);
|
|
|
|
tqlayout->add(othersLabel);
|
|
|
|
layout->add(othersLabel);
|
|
|
|
|
|
|
|
|
|
|
|
///Populate!
|
|
|
|
///Populate!
|
|
|
|
TQSettings s;
|
|
|
|
TQSettings s;
|
|
|
|