summaryrefslogtreecommitdiffstats
path: root/twin/kcmtwin/twinoptions/mouse.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-07 21:50:33 -0600
committerTimothy Pearson <[email protected]>2011-11-07 21:50:33 -0600
commit0b6057404f65218182ab27a9483a21065ef61fca (patch)
treeb8b06dfa2deb965bebfbe131a772124e3e693a96 /twin/kcmtwin/twinoptions/mouse.h
parent43d99cc2477266cb9072e179137f0e8485370b3d (diff)
downloadtdebase-0b6057404f65218182ab27a9483a21065ef61fca.tar.gz
tdebase-0b6057404f65218182ab27a9483a21065ef61fca.zip
Rename kwin to twin (Part 2 of 2)
Diffstat (limited to 'twin/kcmtwin/twinoptions/mouse.h')
-rw-r--r--twin/kcmtwin/twinoptions/mouse.h137
1 files changed, 137 insertions, 0 deletions
diff --git a/twin/kcmtwin/twinoptions/mouse.h b/twin/kcmtwin/twinoptions/mouse.h
new file mode 100644
index 000000000..49591e5d8
--- /dev/null
+++ b/twin/kcmtwin/twinoptions/mouse.h
@@ -0,0 +1,137 @@
+/*
+ * mouse.h
+ *
+ * Copyright (c) 1998 Matthias Ettrich <[email protected]>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __KKWMMOUSECONFIG_H__
+#define __KKWMMOUSECONFIG_H__
+
+class KConfig;
+
+#include <tqwidget.h>
+#include <kcmodule.h>
+#include <tqcombobox.h>
+#include <tqtooltip.h>
+
+
+class ToolTipComboBox: public TQComboBox
+{
+ Q_OBJECT
+
+public:
+ ToolTipComboBox(TQWidget * owner, char const * const * toolTips_)
+ : TQComboBox(owner)
+ , toolTips(toolTips_) {}
+
+public slots:
+ void changed() {TQToolTip::add( this, i18n(toolTips[currentItem()]) );}
+
+protected:
+ char const * const * toolTips;
+};
+
+
+
+class KTitleBarActionsConfig : public KCModule
+{
+ Q_OBJECT
+
+public:
+
+ KTitleBarActionsConfig( bool _standAlone, KConfig *_config, TQWidget *parent=0, const char* name=0 );
+ ~KTitleBarActionsConfig( );
+
+ void load();
+ void save();
+ void defaults();
+
+public slots:
+ void changed() { emit KCModule::changed(true); }
+
+private:
+ TQComboBox* coTiDbl;
+
+ TQComboBox* coTiAct1;
+ TQComboBox* coTiAct2;
+ TQComboBox* coTiAct3;
+ TQComboBox* coTiAct4;
+ TQComboBox* coTiInAct1;
+ TQComboBox* coTiInAct2;
+ TQComboBox* coTiInAct3;
+
+ ToolTipComboBox * coMax[3];
+
+ KConfig *config;
+ bool standAlone;
+
+ const char* functionTiDbl(int);
+ const char* functionTiAc(int);
+ const char* functionTiWAc(int);
+ const char* functionTiInAc(int);
+ const char* functionMax(int);
+
+ void setComboText(TQComboBox* combo, const char* text);
+ const char* fixup( const char* s );
+
+private slots:
+ void paletteChanged();
+
+};
+
+class KWindowActionsConfig : public KCModule
+{
+ Q_OBJECT
+
+public:
+
+ KWindowActionsConfig( bool _standAlone, KConfig *_config, TQWidget *parent=0, const char* name=0 );
+ ~KWindowActionsConfig( );
+
+ void load();
+ void save();
+ void defaults();
+
+public slots:
+ void changed() { emit KCModule::changed(true); }
+
+private:
+ TQComboBox* coWin1;
+ TQComboBox* coWin2;
+ TQComboBox* coWin3;
+
+ TQComboBox* coAllKey;
+ TQComboBox* coAll1;
+ TQComboBox* coAll2;
+ TQComboBox* coAll3;
+ TQComboBox* coAllW;
+
+ KConfig *config;
+ bool standAlone;
+
+ const char* functionWin(int);
+ const char* functionAllKey(int);
+ const char* functionAll(int);
+ const char* functionAllW(int);
+
+ void setComboText(TQComboBox* combo, const char* text);
+ const char* fixup( const char* s );
+};
+
+#endif
+