kwin Library API Documentation

mouse.h

00001 /*
00002  * mouse.h
00003  *
00004  * Copyright (c) 1998 Matthias Ettrich <ettrich@kde.org>
00005  *
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00020  */
00021 
00022 #ifndef __KKWMMOUSECONFIG_H__
00023 #define __KKWMMOUSECONFIG_H__
00024 
00025 class KConfig;
00026 
00027 #include <qwidget.h>
00028 #include <kcmodule.h>
00029 #include <qcombobox.h>
00030 #include <qtooltip.h>
00031 
00032 
00033 class ToolTipComboBox: public QComboBox
00034 {
00035   Q_OBJECT
00036     
00037 public:
00038   ToolTipComboBox(QWidget * owner, char const * const * toolTips_)
00039     : QComboBox(owner)
00040     , toolTips(toolTips_) {}
00041 
00042 public slots:
00043   void changed() {QToolTip::add( this, i18n(toolTips[currentItem()]) );}
00044 
00045 protected:
00046   char const * const * toolTips;
00047 };
00048 
00049 
00050 
00051 class KActionsConfig : public KCModule
00052 {
00053   Q_OBJECT
00054 
00055 public:
00056 
00057   KActionsConfig( bool _standAlone, KConfig *_config, QWidget *parent=0, const char* name=0 );
00058   ~KActionsConfig( );
00059 
00060   void load();
00061   void save();
00062   void defaults();
00063 
00064 public slots:
00065     void changed() { emit KCModule::changed(true); }
00066 
00067 private:
00068   QComboBox* coTiDbl;
00069 
00070   QComboBox* coTiAct1;
00071   QComboBox* coTiAct2;
00072   QComboBox* coTiAct3;
00073   QComboBox* coTiInAct1;
00074   QComboBox* coTiInAct2;
00075   QComboBox* coTiInAct3;
00076 
00077   ToolTipComboBox * coMax[3];
00078 
00079   QComboBox* coWin1;
00080   QComboBox* coWin2;
00081   QComboBox* coWin3;
00082 
00083   QComboBox* coAllKey;
00084   QComboBox* coAll1;
00085   QComboBox* coAll2;
00086   QComboBox* coAll3;
00087 
00088   KConfig *config;
00089   bool standAlone;
00090 
00091   const char* functionTiDbl(int);
00092   const char* functionTiAc(int);
00093   const char* functionTiInAc(int);
00094   const char* functionWin(int);
00095   const char* functionAllKey(int);
00096   const char* functionAll(int);
00097   const char* functionMax(int);
00098 
00099   void setComboText(QComboBox* combo, const char* text);
00100   const char* fixup( const char* s );
00101 
00102 private slots:
00103   void paletteChanged();
00104 
00105 };
00106 
00107 #endif
00108 
KDE Logo
This file is part of the documentation for kwin Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Apr 6 02:41:06 2005 by doxygen 1.4.0 written by Dimitri van Heesch, © 1997-2003