You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
2.9 KiB
138 lines
2.9 KiB
15 years ago
|
/*
|
||
|
* mouse.h
|
||
|
*
|
||
|
* Copyright (c) 1998 Matthias Ettrich <ettrich@kde.org>
|
||
|
*
|
||
|
*
|
||
|
* 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;
|
||
|
|
||
15 years ago
|
#include <tqwidget.h>
|
||
15 years ago
|
#include <kcmodule.h>
|
||
15 years ago
|
#include <tqcombobox.h>
|
||
|
#include <tqtooltip.h>
|
||
15 years ago
|
|
||
|
|
||
14 years ago
|
class ToolTipComboBox: public TQComboBox
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
15 years ago
|
ToolTipComboBox(TQWidget * owner, char const * const * toolTips_)
|
||
|
: TQComboBox(owner)
|
||
15 years ago
|
, toolTips(toolTips_) {}
|
||
|
|
||
|
public slots:
|
||
15 years ago
|
void changed() {TQToolTip::add( this, i18n(toolTips[currentItem()]) );}
|
||
15 years ago
|
|
||
|
protected:
|
||
|
char const * const * toolTips;
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
class KTitleBarActionsConfig : public KCModule
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
15 years ago
|
KTitleBarActionsConfig( bool _standAlone, KConfig *_config, TQWidget *parent=0, const char* name=0 );
|
||
15 years ago
|
~KTitleBarActionsConfig( );
|
||
|
|
||
|
void load();
|
||
|
void save();
|
||
|
void defaults();
|
||
|
|
||
|
public slots:
|
||
|
void changed() { emit KCModule::changed(true); }
|
||
|
|
||
|
private:
|
||
15 years ago
|
TQComboBox* coTiDbl;
|
||
15 years ago
|
|
||
15 years ago
|
TQComboBox* coTiAct1;
|
||
|
TQComboBox* coTiAct2;
|
||
|
TQComboBox* coTiAct3;
|
||
|
TQComboBox* coTiAct4;
|
||
|
TQComboBox* coTiInAct1;
|
||
|
TQComboBox* coTiInAct2;
|
||
|
TQComboBox* coTiInAct3;
|
||
15 years ago
|
|
||
|
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);
|
||
|
|
||
15 years ago
|
void setComboText(TQComboBox* combo, const char* text);
|
||
15 years ago
|
const char* fixup( const char* s );
|
||
|
|
||
|
private slots:
|
||
|
void paletteChanged();
|
||
|
|
||
|
};
|
||
|
|
||
|
class KWindowActionsConfig : public KCModule
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
|
||
15 years ago
|
KWindowActionsConfig( bool _standAlone, KConfig *_config, TQWidget *parent=0, const char* name=0 );
|
||
15 years ago
|
~KWindowActionsConfig( );
|
||
|
|
||
|
void load();
|
||
|
void save();
|
||
|
void defaults();
|
||
|
|
||
|
public slots:
|
||
|
void changed() { emit KCModule::changed(true); }
|
||
|
|
||
|
private:
|
||
15 years ago
|
TQComboBox* coWin1;
|
||
|
TQComboBox* coWin2;
|
||
|
TQComboBox* coWin3;
|
||
15 years ago
|
|
||
15 years ago
|
TQComboBox* coAllKey;
|
||
|
TQComboBox* coAll1;
|
||
|
TQComboBox* coAll2;
|
||
|
TQComboBox* coAll3;
|
||
|
TQComboBox* coAllW;
|
||
15 years ago
|
|
||
|
KConfig *config;
|
||
|
bool standAlone;
|
||
|
|
||
|
const char* functionWin(int);
|
||
|
const char* functionAllKey(int);
|
||
|
const char* functionAll(int);
|
||
|
const char* functionAllW(int);
|
||
|
|
||
15 years ago
|
void setComboText(TQComboBox* combo, const char* text);
|
||
15 years ago
|
const char* fixup( const char* s );
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|