ruleswidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __RULESWIDGET_H__
00021 #define __RULESWIDGET_H__
00022
00023 #include <kdialogbase.h>
00024 #include <kwin.h>
00025
00026 #include "ruleswidgetbase.h"
00027
00028 namespace KWinInternal
00029 {
00030
00031 class Rules;
00032 class DetectDialog;
00033
00034 class RulesWidget
00035 : public RulesWidgetBase
00036 {
00037 Q_OBJECT
00038 public:
00039 RulesWidget( QWidget* parent = NULL, const char* name = NULL );
00040 void setRules( Rules* r );
00041 Rules* rules() const;
00042 bool finalCheck();
00043 void prepareWindowSpecific( WId window );
00044 signals:
00045 void changed( bool state );
00046 protected slots:
00047 virtual void detectClicked();
00048 virtual void wmclassMatchChanged();
00049 virtual void roleMatchChanged();
00050 virtual void titleMatchChanged();
00051 virtual void extraMatchChanged();
00052 virtual void machineMatchChanged();
00053 private slots:
00054
00055 void updateEnableposition();
00056 void updateEnablesize();
00057 void updateEnabledesktop();
00058 void updateEnablemaximizehoriz();
00059 void updateEnablemaximizevert();
00060 void updateEnableminimize();
00061 void updateEnableshade();
00062 void updateEnablefullscreen();
00063 void updateEnableplacement();
00064
00065 void updateEnableabove();
00066 void updateEnablebelow();
00067 void updateEnablenoborder();
00068 void updateEnableskiptaskbar();
00069 void updateEnableskippager();
00070 void updateEnableacceptfocus();
00071 void updateEnablecloseable();
00072
00073 void updateEnablefsplevel();
00074 void updateEnablemoveresizemode();
00075 void updateEnabletype();
00076 void updateEnableignoreposition();
00077 void updateEnableminsize();
00078 void updateEnablemaxsize();
00079
00080 void detected( bool );
00081 private:
00082 void prefillUnusedValues( const KWin::WindowInfo& info );
00083 DetectDialog* detect_dlg;
00084 bool detect_dlg_ok;
00085 };
00086
00087 class RulesDialog
00088 : public KDialogBase
00089 {
00090 Q_OBJECT
00091 public:
00092 RulesDialog( QWidget* parent = NULL, const char* name = NULL );
00093 Rules* edit( Rules* r, WId window );
00094 protected:
00095 virtual void accept();
00096 private:
00097 RulesWidget* widget;
00098 Rules* rules;
00099 };
00100
00101 }
00102
00103 #endif
This file is part of the documentation for kwin Library Version 3.3.2.