Mark most ctors as explicit as reported by Krazy2 checker
This commit is contained in:
parent
a084d34ccb
commit
533d57da60
61 changed files with 93 additions and 93 deletions
2
bridge.h
2
bridge.h
|
@ -31,7 +31,7 @@ class Client;
|
||||||
class Bridge : public KDecorationBridgeUnstable
|
class Bridge : public KDecorationBridgeUnstable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Bridge(Client* cl);
|
explicit Bridge(Client* cl);
|
||||||
virtual bool isActive() const;
|
virtual bool isActive() const;
|
||||||
virtual bool isCloseable() const;
|
virtual bool isCloseable() const;
|
||||||
virtual bool isMaximizable() const;
|
virtual bool isMaximizable() const;
|
||||||
|
|
4
client.h
4
client.h
|
@ -281,7 +281,7 @@ class Client
|
||||||
**/
|
**/
|
||||||
Q_PROPERTY(bool decorationHasAlpha READ decorationHasAlpha)
|
Q_PROPERTY(bool decorationHasAlpha READ decorationHasAlpha)
|
||||||
public:
|
public:
|
||||||
Client(Workspace* ws);
|
explicit Client(Workspace* ws);
|
||||||
Window wrapperId() const;
|
Window wrapperId() const;
|
||||||
Window decorationId() const;
|
Window decorationId() const;
|
||||||
Window inputId() const { return input_window; }
|
Window inputId() const { return input_window; }
|
||||||
|
@ -1002,7 +1002,7 @@ private:
|
||||||
class GeometryUpdatesBlocker
|
class GeometryUpdatesBlocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GeometryUpdatesBlocker(Client* c)
|
explicit GeometryUpdatesBlocker(Client* c)
|
||||||
: cl(c) {
|
: cl(c) {
|
||||||
cl->blockGeometryUpdates(true);
|
cl->blockGeometryUpdates(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ class ColorHelper : public QObject
|
||||||
**/
|
**/
|
||||||
Q_PROPERTY(qreal contrast READ contrast CONSTANT)
|
Q_PROPERTY(qreal contrast READ contrast CONSTANT)
|
||||||
public:
|
public:
|
||||||
ColorHelper(QObject *parent = 0);
|
explicit ColorHelper(QObject *parent = 0);
|
||||||
~ColorHelper();
|
~ColorHelper();
|
||||||
/**
|
/**
|
||||||
* This enumeration describes the color shade being selected from the given
|
* This enumeration describes the color shade being selected from the given
|
||||||
|
|
|
@ -110,7 +110,7 @@ class /*LIBAURORAE_EXPORT*/ AuroraeTheme : public QObject
|
||||||
Q_PROPERTY(QString defaultButtonsLeft READ defaultButtonsLeft NOTIFY themeChanged)
|
Q_PROPERTY(QString defaultButtonsLeft READ defaultButtonsLeft NOTIFY themeChanged)
|
||||||
Q_PROPERTY(QString defaultButtonsRight READ defaultButtonsRight NOTIFY themeChanged)
|
Q_PROPERTY(QString defaultButtonsRight READ defaultButtonsRight NOTIFY themeChanged)
|
||||||
public:
|
public:
|
||||||
AuroraeTheme(QObject* parent = 0);
|
explicit AuroraeTheme(QObject* parent = 0);
|
||||||
virtual ~AuroraeTheme();
|
virtual ~AuroraeTheme();
|
||||||
// TODO: KSharedConfigPtr
|
// TODO: KSharedConfigPtr
|
||||||
void loadTheme(const QString &name, const KConfig &config);
|
void loadTheme(const QString &name, const KConfig &config);
|
||||||
|
|
|
@ -87,7 +87,7 @@ class B2Titlebar : public QWidget
|
||||||
{
|
{
|
||||||
friend class B2Client;
|
friend class B2Client;
|
||||||
public:
|
public:
|
||||||
B2Titlebar(B2Client *parent);
|
explicit B2Titlebar(B2Client *parent);
|
||||||
~B2Titlebar(){;}
|
~B2Titlebar(){;}
|
||||||
bool isFullyObscured() const {return isfullyobscured;}
|
bool isFullyObscured() const {return isfullyobscured;}
|
||||||
void recalcBuffer();
|
void recalcBuffer();
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace Oxygen
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
ConfigurationUi( QWidget* );
|
explicit ConfigurationUi( QWidget* );
|
||||||
|
|
||||||
//! destructor
|
//! destructor
|
||||||
virtual ~ConfigurationUi( void )
|
virtual ~ConfigurationUi( void )
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace Oxygen
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
DetectDialog( QWidget* );
|
explicit DetectDialog( QWidget* );
|
||||||
|
|
||||||
//! read window properties or select one from mouse grab
|
//! read window properties or select one from mouse grab
|
||||||
void detect( WId window );
|
void detect( WId window );
|
||||||
|
|
|
@ -49,7 +49,7 @@ namespace Oxygen
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
ExceptionDialog( QWidget* parent );
|
explicit ExceptionDialog( QWidget* parent );
|
||||||
|
|
||||||
//! set exception
|
//! set exception
|
||||||
void setException( Exception );
|
void setException( Exception );
|
||||||
|
|
|
@ -40,7 +40,7 @@ namespace Oxygen
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
ShadowConfigurationUi( QWidget* );
|
explicit ShadowConfigurationUi( QWidget* );
|
||||||
Ui_ShadowConfiguraionUI ui;
|
Ui_ShadowConfiguraionUI ui;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
|
|
@ -109,7 +109,7 @@ namespace Oxygen
|
||||||
enum { NoItem = -1 };
|
enum { NoItem = -1 };
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
ClientGroupItemDataList( Client* parent );
|
explicit ClientGroupItemDataList( Client* parent );
|
||||||
|
|
||||||
//! dirty state
|
//! dirty state
|
||||||
void setDirty( const bool& value )
|
void setDirty( const bool& value )
|
||||||
|
|
|
@ -130,7 +130,7 @@ namespace Oxygen
|
||||||
Configuration( void );
|
Configuration( void );
|
||||||
|
|
||||||
//! constructor from KConfig
|
//! constructor from KConfig
|
||||||
Configuration( KConfigGroup );
|
explicit Configuration( KConfigGroup );
|
||||||
|
|
||||||
//! destructor
|
//! destructor
|
||||||
virtual ~Configuration( void )
|
virtual ~Configuration( void )
|
||||||
|
|
|
@ -34,7 +34,7 @@ namespace Oxygen
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
DecoHelper(const QByteArray &componentName);
|
explicit DecoHelper(const QByteArray &componentName);
|
||||||
|
|
||||||
//! destructor
|
//! destructor
|
||||||
virtual ~DecoHelper()
|
virtual ~DecoHelper()
|
||||||
|
|
|
@ -78,7 +78,7 @@ namespace Oxygen
|
||||||
{}
|
{}
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
Exception( KConfigGroup );
|
explicit Exception( KConfigGroup );
|
||||||
|
|
||||||
//! destructor
|
//! destructor
|
||||||
virtual ~Exception( void )
|
virtual ~Exception( void )
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace Oxygen
|
||||||
{}
|
{}
|
||||||
|
|
||||||
//! default constructor
|
//! default constructor
|
||||||
ExceptionList( const KConfig& config )
|
explicit ExceptionList( const KConfig& config )
|
||||||
{ read( config ); }
|
{ read( config ); }
|
||||||
|
|
||||||
//! read from KConfig
|
//! read from KConfig
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace Oxygen
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
SizeGrip( Client* );
|
explicit SizeGrip( Client* );
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
virtual ~SizeGrip( void );
|
virtual ~SizeGrip( void );
|
||||||
|
|
|
@ -53,7 +53,7 @@ namespace Oxygen
|
||||||
typedef QWeakPointer<TitleAnimationData> Pointer;
|
typedef QWeakPointer<TitleAnimationData> Pointer;
|
||||||
|
|
||||||
//! constructor
|
//! constructor
|
||||||
TitleAnimationData( QObject* );
|
explicit TitleAnimationData( QObject* );
|
||||||
|
|
||||||
//! reset
|
//! reset
|
||||||
void reset( void )
|
void reset( void )
|
||||||
|
|
|
@ -53,7 +53,7 @@ class DBusInterface: public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_CLASSINFO("D-Bus Interface", "org.kde.KWin")
|
Q_CLASSINFO("D-Bus Interface", "org.kde.KWin")
|
||||||
public:
|
public:
|
||||||
DBusInterface(QObject *parent);
|
explicit DBusInterface(QObject *parent);
|
||||||
virtual ~DBusInterface();
|
virtual ~DBusInterface();
|
||||||
|
|
||||||
public: // PROPERTIES
|
public: // PROPERTIES
|
||||||
|
|
|
@ -243,7 +243,7 @@ class EffectWindowImpl : public EffectWindow
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
EffectWindowImpl(Toplevel *toplevel);
|
explicit EffectWindowImpl(Toplevel *toplevel);
|
||||||
virtual ~EffectWindowImpl();
|
virtual ~EffectWindowImpl();
|
||||||
|
|
||||||
virtual void enablePainting(int reason);
|
virtual void enablePainting(int reason);
|
||||||
|
@ -295,7 +295,7 @@ class EffectWindowGroupImpl
|
||||||
: public EffectWindowGroup
|
: public EffectWindowGroup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
EffectWindowGroupImpl(Group* g);
|
explicit EffectWindowGroupImpl(Group* g);
|
||||||
virtual EffectWindowList members() const;
|
virtual EffectWindowList members() const;
|
||||||
private:
|
private:
|
||||||
Group* group;
|
Group* group;
|
||||||
|
|
|
@ -31,7 +31,7 @@ class BoxSwitchEffect;
|
||||||
class BoxSwitchEffectProxy
|
class BoxSwitchEffectProxy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BoxSwitchEffectProxy(BoxSwitchEffect* effect);
|
explicit BoxSwitchEffectProxy(BoxSwitchEffect* effect);
|
||||||
~BoxSwitchEffectProxy();
|
~BoxSwitchEffectProxy();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -30,7 +30,7 @@ class CubeInsideEffect;
|
||||||
class CubeEffectProxy
|
class CubeEffectProxy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CubeEffectProxy(CubeEffect* effect);
|
explicit CubeEffectProxy(CubeEffect* effect);
|
||||||
~CubeEffectProxy();
|
~CubeEffectProxy();
|
||||||
|
|
||||||
void registerCubeInsideEffect(CubeInsideEffect* effect);
|
void registerCubeInsideEffect(CubeInsideEffect* effect);
|
||||||
|
|
|
@ -43,7 +43,7 @@ class DesktopButtonsView : public QGraphicsView
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DesktopButtonsView(QWidget* parent = 0);
|
explicit DesktopButtonsView(QWidget* parent = 0);
|
||||||
void windowInputMouseEvent(QMouseEvent* e);
|
void windowInputMouseEvent(QMouseEvent* e);
|
||||||
void setAddDesktopEnabled(bool enable);
|
void setAddDesktopEnabled(bool enable);
|
||||||
void setRemoveDesktopEnabled(bool enable);
|
void setRemoveDesktopEnabled(bool enable);
|
||||||
|
|
|
@ -42,7 +42,7 @@ class CloseWindowView : public QGraphicsView
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
CloseWindowView(QWidget* parent = 0);
|
explicit CloseWindowView(QWidget* parent = 0);
|
||||||
void windowInputMouseEvent(QMouseEvent* e);
|
void windowInputMouseEvent(QMouseEvent* e);
|
||||||
virtual void drawBackground(QPainter* painter, const QRectF& rect);
|
virtual void drawBackground(QPainter* painter, const QRectF& rect);
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class PresentWindowsEffect;
|
||||||
class PresentWindowsEffectProxy
|
class PresentWindowsEffectProxy
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PresentWindowsEffectProxy(PresentWindowsEffect* effect);
|
explicit PresentWindowsEffectProxy(PresentWindowsEffect* effect);
|
||||||
~PresentWindowsEffectProxy();
|
~PresentWindowsEffectProxy();
|
||||||
|
|
||||||
void calculateWindowTransformations(EffectWindowList windows, int screen, WindowMotionManager& manager);
|
void calculateWindowTransformations(EffectWindowList windows, int screen, WindowMotionManager& manager);
|
||||||
|
|
|
@ -61,7 +61,7 @@ public:
|
||||||
class ButtonDrag : public QMimeData
|
class ButtonDrag : public QMimeData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ButtonDrag(Button btn);
|
explicit ButtonDrag(Button btn);
|
||||||
~ButtonDrag() {}
|
~ButtonDrag() {}
|
||||||
|
|
||||||
static bool canDecode(QDropEvent* e);
|
static bool canDecode(QDropEvent* e);
|
||||||
|
@ -74,7 +74,7 @@ public:
|
||||||
class ButtonDropSiteItem
|
class ButtonDropSiteItem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ButtonDropSiteItem(const Button& btn);
|
explicit ButtonDropSiteItem(const Button& btn);
|
||||||
~ButtonDropSiteItem();
|
~ButtonDropSiteItem();
|
||||||
|
|
||||||
Button button();
|
Button button();
|
||||||
|
@ -112,7 +112,7 @@ class ButtonSource : public QListWidget
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ButtonSource(QWidget *parent = 0);
|
explicit ButtonSource(QWidget *parent = 0);
|
||||||
virtual ~ButtonSource();
|
virtual ~ButtonSource();
|
||||||
|
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const;
|
||||||
|
|
|
@ -90,7 +90,7 @@ public:
|
||||||
QmlMainScriptRole = Qt::UserRole + 14,
|
QmlMainScriptRole = Qt::UserRole + 14,
|
||||||
CloseOnDblClickRole = Qt::UserRole + 15
|
CloseOnDblClickRole = Qt::UserRole + 15
|
||||||
};
|
};
|
||||||
DecorationModel(KSharedConfigPtr config, QObject* parent = 0);
|
explicit DecorationModel(KSharedConfigPtr config, QObject* parent = 0);
|
||||||
~DecorationModel();
|
~DecorationModel();
|
||||||
|
|
||||||
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
// and an inactive window.
|
// and an inactive window.
|
||||||
enum Windows { Inactive = 0, Active, NumWindows };
|
enum Windows { Inactive = 0, Active, NumWindows };
|
||||||
|
|
||||||
KDecorationPreview(QWidget* parent = NULL);
|
explicit KDecorationPreview(QWidget* parent = NULL);
|
||||||
virtual ~KDecorationPreview();
|
virtual ~KDecorationPreview();
|
||||||
bool recreateDecoration(KDecorationPlugins* plugin);
|
bool recreateDecoration(KDecorationPlugins* plugin);
|
||||||
void enablePreview();
|
void enablePreview();
|
||||||
|
@ -166,7 +166,7 @@ class KDecorationPreviewPlugins
|
||||||
: public KDecorationPlugins
|
: public KDecorationPlugins
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
KDecorationPreviewPlugins(const KSharedConfigPtr &cfg);
|
explicit KDecorationPreviewPlugins(const KSharedConfigPtr &cfg);
|
||||||
virtual bool provides(Requirement);
|
virtual bool provides(Requirement);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ class DesktopNamesWidget : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DesktopNamesWidget(QWidget *parent);
|
explicit DesktopNamesWidget(QWidget *parent);
|
||||||
~DesktopNamesWidget();
|
~DesktopNamesWidget();
|
||||||
QString name(int desktop);
|
QString name(int desktop);
|
||||||
void setName(int desktop, QString desktopName);
|
void setName(int desktop, QString desktopName);
|
||||||
|
|
|
@ -32,7 +32,7 @@ class KCMRulesList
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
KCMRulesList(QWidget* parent = NULL);
|
explicit KCMRulesList(QWidget* parent = NULL);
|
||||||
virtual ~KCMRulesList();
|
virtual ~KCMRulesList();
|
||||||
void load();
|
void load();
|
||||||
void save();
|
void save();
|
||||||
|
|
|
@ -38,7 +38,7 @@ class RulesWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
RulesWidget(QWidget* parent = NULL);
|
explicit RulesWidget(QWidget* parent = NULL);
|
||||||
void setRules(Rules* r);
|
void setRules(Rules* r);
|
||||||
Rules* rules() const;
|
Rules* rules() const;
|
||||||
bool finalCheck();
|
bool finalCheck();
|
||||||
|
@ -125,7 +125,7 @@ class EditShortcut
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
EditShortcut(QWidget* parent = NULL);
|
explicit EditShortcut(QWidget* parent = NULL);
|
||||||
protected slots:
|
protected slots:
|
||||||
void editShortcut();
|
void editShortcut();
|
||||||
void clearShortcut();
|
void clearShortcut();
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
class YesNoBox : public QWidget {
|
class YesNoBox : public QWidget {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
YesNoBox( QWidget *parent ) : QWidget(parent)
|
explicit YesNoBox( QWidget *parent ) : QWidget(parent)
|
||||||
{
|
{
|
||||||
QHBoxLayout *l = new QHBoxLayout(this);
|
QHBoxLayout *l = new QHBoxLayout(this);
|
||||||
l->setContentsMargins(0, 0, 0, 0);
|
l->setContentsMargins(0, 0, 0, 0);
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Monitor
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Monitor(QWidget* parent);
|
explicit Monitor(QWidget* parent);
|
||||||
void setEdge(int edge, bool set);
|
void setEdge(int edge, bool set);
|
||||||
bool edge(int edge) const;
|
bool edge(int edge) const;
|
||||||
void setEdgeHidden(int edge, bool set);
|
void setEdgeHidden(int edge, bool set);
|
||||||
|
|
|
@ -37,7 +37,7 @@ public:
|
||||||
* @param parent Parent widget of the module
|
* @param parent Parent widget of the module
|
||||||
* @param args Arguments for the module
|
* @param args Arguments for the module
|
||||||
*/
|
*/
|
||||||
Module(QWidget *parent, const QVariantList &args = QVariantList());
|
explicit Module(QWidget *parent, const QVariantList &args = QVariantList());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor.
|
* Destructor.
|
||||||
|
|
|
@ -34,7 +34,7 @@ class LayoutPreview : public QDeclarativeView
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
LayoutPreview(QWidget *parent = NULL);
|
explicit LayoutPreview(QWidget *parent = NULL);
|
||||||
virtual ~LayoutPreview();
|
virtual ~LayoutPreview();
|
||||||
|
|
||||||
void setLayout(const QString &path, const QString &name);
|
void setLayout(const QString &path, const QString &name);
|
||||||
|
@ -43,7 +43,7 @@ public:
|
||||||
class TabBoxImageProvider : public QDeclarativeImageProvider
|
class TabBoxImageProvider : public QDeclarativeImageProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabBoxImageProvider(QAbstractListModel *model);
|
explicit TabBoxImageProvider(QAbstractListModel *model);
|
||||||
virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
|
virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
|
||||||
private:
|
private:
|
||||||
QAbstractListModel *m_model;
|
QAbstractListModel *m_model;
|
||||||
|
@ -53,7 +53,7 @@ class ExampleClientModel : public QAbstractListModel
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ExampleClientModel(QObject *parent = NULL);
|
explicit ExampleClientModel(QObject *parent = NULL);
|
||||||
virtual ~ExampleClientModel();
|
virtual ~ExampleClientModel();
|
||||||
|
|
||||||
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||||
|
|
|
@ -31,7 +31,7 @@ class ThumbnailItem : public QDeclarativeItem
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY(qulonglong wId READ wId WRITE setWId NOTIFY wIdChanged SCRIPTABLE true)
|
Q_PROPERTY(qulonglong wId READ wId WRITE setWId NOTIFY wIdChanged SCRIPTABLE true)
|
||||||
public:
|
public:
|
||||||
ThumbnailItem(QDeclarativeItem *parent = 0);
|
explicit ThumbnailItem(QDeclarativeItem *parent = 0);
|
||||||
virtual ~ThumbnailItem();
|
virtual ~ThumbnailItem();
|
||||||
|
|
||||||
qulonglong wId() const {
|
qulonglong wId() const {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class LanczosFilter
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LanczosFilter(QObject* parent = 0);
|
explicit LanczosFilter(QObject* parent = 0);
|
||||||
~LanczosFilter();
|
~LanczosFilter();
|
||||||
void performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data);
|
void performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data);
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class KWIN_EXPORT KDecorationPlugins
|
||||||
: public KDecorationProvides
|
: public KDecorationProvides
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
KDecorationPlugins(const KSharedConfigPtr &cfg);
|
explicit KDecorationPlugins(const KSharedConfigPtr &cfg);
|
||||||
virtual ~KDecorationPlugins();
|
virtual ~KDecorationPlugins();
|
||||||
/** Whether the plugin with @p name can be loaded
|
/** Whether the plugin with @p name can be loaded
|
||||||
* if @p loadedLib is passed, the library is NOT unloaded and freed
|
* if @p loadedLib is passed, the library is NOT unloaded and freed
|
||||||
|
|
|
@ -33,7 +33,7 @@ public:
|
||||||
AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to,
|
AniData(AnimationEffect::Attribute a, int meta, int ms, const FPx2 &to,
|
||||||
QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource );
|
QEasingCurve curve, int delay, const FPx2 &from, bool waitAtSource );
|
||||||
AniData(const AniData &other);
|
AniData(const AniData &other);
|
||||||
AniData(const QString &str);
|
explicit AniData(const QString &str);
|
||||||
inline void addTime(int t) { time += t; }
|
inline void addTime(int t) { time += t; }
|
||||||
inline bool isOneDimensional() const {
|
inline bool isOneDimensional() const {
|
||||||
return from[0] == from[1] && to[0] == to[1];
|
return from[0] == from[1] && to[0] == to[1];
|
||||||
|
|
|
@ -33,13 +33,13 @@ namespace KWin
|
||||||
class KWIN_EXPORT FPx2 {
|
class KWIN_EXPORT FPx2 {
|
||||||
public:
|
public:
|
||||||
FPx2() { f[0] = f[1] = 0.0; valid = false; }
|
FPx2() { f[0] = f[1] = 0.0; valid = false; }
|
||||||
FPx2(float v) { f[0] = f[1] = v; valid = true; }
|
explicit FPx2(float v) { f[0] = f[1] = v; valid = true; }
|
||||||
FPx2(float v1, float v2) { f[0] = v1; f[1] = v2; valid = true; }
|
FPx2(float v1, float v2) { f[0] = v1; f[1] = v2; valid = true; }
|
||||||
FPx2(const FPx2 &other) { f[0] = other.f[0]; f[1] = other.f[1]; valid = other.valid; }
|
FPx2(const FPx2 &other) { f[0] = other.f[0]; f[1] = other.f[1]; valid = other.valid; }
|
||||||
FPx2(const QPoint &other) { f[0] = other.x(); f[1] = other.y(); valid = true; }
|
explicit FPx2(const QPoint &other) { f[0] = other.x(); f[1] = other.y(); valid = true; }
|
||||||
FPx2(const QPointF &other) { f[0] = other.x(); f[1] = other.y(); valid = true; }
|
explicit FPx2(const QPointF &other) { f[0] = other.x(); f[1] = other.y(); valid = true; }
|
||||||
FPx2(const QSize &other) { f[0] = other.width(); f[1] = other.height(); valid = true; }
|
explicit FPx2(const QSize &other) { f[0] = other.width(); f[1] = other.height(); valid = true; }
|
||||||
FPx2(const QSizeF &other) { f[0] = other.width(); f[1] = other.height(); valid = true; }
|
explicit FPx2(const QSizeF &other) { f[0] = other.width(); f[1] = other.height(); valid = true; }
|
||||||
inline void invalidate() { valid = false; }
|
inline void invalidate() { valid = false; }
|
||||||
inline bool isValid() const { return valid; }
|
inline bool isValid() const { return valid; }
|
||||||
inline float operator[](int n) const { return f[n]; }
|
inline float operator[](int n) const { return f[n]; }
|
||||||
|
|
|
@ -618,7 +618,7 @@ class KWIN_EXPORT EffectsHandler : public QObject
|
||||||
Q_PROPERTY(QPoint cursorPos READ cursorPos)
|
Q_PROPERTY(QPoint cursorPos READ cursorPos)
|
||||||
friend class Effect;
|
friend class Effect;
|
||||||
public:
|
public:
|
||||||
EffectsHandler(CompositingType type);
|
explicit EffectsHandler(CompositingType type);
|
||||||
virtual ~EffectsHandler();
|
virtual ~EffectsHandler();
|
||||||
// for use by effects
|
// for use by effects
|
||||||
virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0;
|
virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0;
|
||||||
|
@ -1348,7 +1348,7 @@ public:
|
||||||
PAINT_DISABLED_BY_ACTIVITY = 1 << 5
|
PAINT_DISABLED_BY_ACTIVITY = 1 << 5
|
||||||
};
|
};
|
||||||
|
|
||||||
EffectWindow(QObject *parent = NULL);
|
explicit EffectWindow(QObject *parent = NULL);
|
||||||
virtual ~EffectWindow();
|
virtual ~EffectWindow();
|
||||||
|
|
||||||
virtual void enablePainting(int reason) = 0;
|
virtual void enablePainting(int reason) = 0;
|
||||||
|
@ -1565,7 +1565,7 @@ public:
|
||||||
class KWIN_EXPORT GlobalShortcutsEditor : public KShortcutsEditor
|
class KWIN_EXPORT GlobalShortcutsEditor : public KShortcutsEditor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GlobalShortcutsEditor(QWidget *parent);
|
explicit GlobalShortcutsEditor(QWidget *parent);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1834,7 +1834,7 @@ private:
|
||||||
class KWIN_EXPORT WindowPaintData : public PaintData
|
class KWIN_EXPORT WindowPaintData : public PaintData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WindowPaintData(EffectWindow* w);
|
explicit WindowPaintData(EffectWindow* w);
|
||||||
WindowPaintData(const WindowPaintData &other);
|
WindowPaintData(const WindowPaintData &other);
|
||||||
virtual ~WindowPaintData();
|
virtual ~WindowPaintData();
|
||||||
/**
|
/**
|
||||||
|
@ -2047,7 +2047,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Calls push().
|
* Calls push().
|
||||||
*/
|
*/
|
||||||
PaintClipper(const QRegion& allowed_area);
|
explicit PaintClipper(const QRegion& allowed_area);
|
||||||
/**
|
/**
|
||||||
* Calls pop().
|
* Calls pop().
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -47,7 +47,7 @@ public:
|
||||||
GLTexture(const GLTexture& tex);
|
GLTexture(const GLTexture& tex);
|
||||||
explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D);
|
explicit GLTexture(const QImage& image, GLenum target = GL_TEXTURE_2D);
|
||||||
explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D);
|
explicit GLTexture(const QPixmap& pixmap, GLenum target = GL_TEXTURE_2D);
|
||||||
GLTexture(const QString& fileName);
|
explicit GLTexture(const QString& fileName);
|
||||||
GLTexture(int width, int height);
|
GLTexture(int width, int height);
|
||||||
virtual ~GLTexture();
|
virtual ~GLTexture();
|
||||||
|
|
||||||
|
|
|
@ -424,14 +424,14 @@ public:
|
||||||
* @param reset Whether all uniforms should be reset to their default values. Defaults to false.
|
* @param reset Whether all uniforms should be reset to their default values. Defaults to false.
|
||||||
* @see ShaderManager::pushShader
|
* @see ShaderManager::pushShader
|
||||||
**/
|
**/
|
||||||
ShaderBinder(ShaderManager::ShaderType type, bool reset = false);
|
explicit ShaderBinder(ShaderManager::ShaderType type, bool reset = false);
|
||||||
/**
|
/**
|
||||||
* @brief Pushes the given @p shader to the ShaderManager's stack.
|
* @brief Pushes the given @p shader to the ShaderManager's stack.
|
||||||
*
|
*
|
||||||
* @param shader The Shader to push on the stack
|
* @param shader The Shader to push on the stack
|
||||||
* @see ShaderManager::pushShader
|
* @see ShaderManager::pushShader
|
||||||
**/
|
**/
|
||||||
ShaderBinder(GLShader *shader);
|
explicit ShaderBinder(GLShader *shader);
|
||||||
~ShaderBinder();
|
~ShaderBinder();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -499,7 +499,7 @@ public:
|
||||||
* Constructs a GLRenderTarget
|
* Constructs a GLRenderTarget
|
||||||
* @param color texture where the scene will be rendered onto
|
* @param color texture where the scene will be rendered onto
|
||||||
**/
|
**/
|
||||||
GLRenderTarget(const GLTexture& color);
|
explicit GLRenderTarget(const GLTexture& color);
|
||||||
~GLRenderTarget();
|
~GLRenderTarget();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -596,7 +596,7 @@ public:
|
||||||
Stream ///< Data only used once for rendering, updated very frequently
|
Stream ///< Data only used once for rendering, updated very frequently
|
||||||
};
|
};
|
||||||
|
|
||||||
GLVertexBuffer(UsageHint hint);
|
explicit GLVertexBuffer(UsageHint hint);
|
||||||
~GLVertexBuffer();
|
~GLVertexBuffer();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -84,7 +84,7 @@ XRenderPicture xRenderFill(const QColor &c)
|
||||||
return xRenderFill(&xc);
|
return xRenderFill(&xc);
|
||||||
}
|
}
|
||||||
|
|
||||||
static XRenderPicture _blendPicture = X::None;
|
static XRenderPicture _blendPicture(X::None);
|
||||||
static XRenderColor _blendColor;
|
static XRenderColor _blendColor;
|
||||||
XRenderPicture xRenderBlendPicture(double opacity)
|
XRenderPicture xRenderBlendPicture(double opacity)
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,7 +58,7 @@ class KWIN_EXPORT XRenderPictureData
|
||||||
: public QSharedData
|
: public QSharedData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XRenderPictureData(Picture pic = None);
|
explicit XRenderPictureData(Picture pic = None);
|
||||||
~XRenderPictureData();
|
~XRenderPictureData();
|
||||||
Picture value();
|
Picture value();
|
||||||
private:
|
private:
|
||||||
|
@ -76,8 +76,8 @@ private:
|
||||||
class KWIN_EXPORT XRenderPicture
|
class KWIN_EXPORT XRenderPicture
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
XRenderPicture(Picture pic = None);
|
explicit XRenderPicture(Picture pic = None);
|
||||||
XRenderPicture(QPixmap pix);
|
explicit XRenderPicture(QPixmap pix);
|
||||||
XRenderPicture(Pixmap pix, int depth);
|
XRenderPicture(Pixmap pix, int depth);
|
||||||
operator Picture();
|
operator Picture();
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -206,7 +206,7 @@ class Options : public QObject, public KDecorationOptions
|
||||||
Q_PROPERTY(bool glLegacy READ isGlLegacy WRITE setGlLegacy NOTIFY glLegacyChanged)
|
Q_PROPERTY(bool glLegacy READ isGlLegacy WRITE setGlLegacy NOTIFY glLegacyChanged)
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Options(QObject *parent = NULL);
|
explicit Options(QObject *parent = NULL);
|
||||||
~Options();
|
~Options();
|
||||||
|
|
||||||
virtual unsigned long updateSettings();
|
virtual unsigned long updateSettings();
|
||||||
|
|
4
rules.h
4
rules.h
|
@ -46,7 +46,7 @@ class WindowRules
|
||||||
: public KDecorationDefines
|
: public KDecorationDefines
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
WindowRules(const QVector< Rules* >& rules);
|
explicit WindowRules(const QVector< Rules* >& rules);
|
||||||
WindowRules();
|
WindowRules();
|
||||||
void update(Client*, int selection);
|
void update(Client*, int selection);
|
||||||
void discardTemporary();
|
void discardTemporary();
|
||||||
|
@ -99,7 +99,7 @@ class Rules
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Rules();
|
Rules();
|
||||||
Rules(const KConfigGroup&);
|
explicit Rules(const KConfigGroup&);
|
||||||
Rules(const QString&, bool temporary);
|
Rules(const QString&, bool temporary);
|
||||||
enum Type {
|
enum Type {
|
||||||
Position = 1<<0, Size = 1<<1, Desktop = 1<<2,
|
Position = 1<<0, Size = 1<<1, Desktop = 1<<2,
|
||||||
|
|
2
scene.h
2
scene.h
|
@ -40,7 +40,7 @@ class Scene : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Scene(Workspace* ws);
|
explicit Scene(Workspace* ws);
|
||||||
virtual ~Scene() = 0;
|
virtual ~Scene() = 0;
|
||||||
class EffectFrame;
|
class EffectFrame;
|
||||||
class Window;
|
class Window;
|
||||||
|
|
|
@ -88,7 +88,7 @@ class SceneOpenGL2 : public SceneOpenGL
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SceneOpenGL2(OpenGLBackend *backend);
|
explicit SceneOpenGL2(OpenGLBackend *backend);
|
||||||
virtual ~SceneOpenGL2();
|
virtual ~SceneOpenGL2();
|
||||||
virtual CompositingType compositingType() const {
|
virtual CompositingType compositingType() const {
|
||||||
return OpenGL2Compositing;
|
return OpenGL2Compositing;
|
||||||
|
@ -119,7 +119,7 @@ private:
|
||||||
class SceneOpenGL1 : public SceneOpenGL
|
class SceneOpenGL1 : public SceneOpenGL
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SceneOpenGL1(OpenGLBackend *backend);
|
explicit SceneOpenGL1(OpenGLBackend *backend);
|
||||||
virtual ~SceneOpenGL1();
|
virtual ~SceneOpenGL1();
|
||||||
virtual void screenGeometryChanged(const QSize &size);
|
virtual void screenGeometryChanged(const QSize &size);
|
||||||
virtual int paint(QRegion damage, ToplevelList windows);
|
virtual int paint(QRegion damage, ToplevelList windows);
|
||||||
|
@ -280,7 +280,7 @@ private:
|
||||||
class SceneOpenGL2Window : public SceneOpenGL::Window
|
class SceneOpenGL2Window : public SceneOpenGL::Window
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SceneOpenGL2Window(Toplevel *c);
|
explicit SceneOpenGL2Window(Toplevel *c);
|
||||||
virtual ~SceneOpenGL2Window();
|
virtual ~SceneOpenGL2Window();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -300,7 +300,7 @@ private:
|
||||||
class SceneOpenGL1Window : public SceneOpenGL::Window
|
class SceneOpenGL1Window : public SceneOpenGL::Window
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SceneOpenGL1Window(Toplevel *c);
|
explicit SceneOpenGL1Window(Toplevel *c);
|
||||||
virtual ~SceneOpenGL1Window();
|
virtual ~SceneOpenGL1Window();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -359,7 +359,7 @@ class SceneOpenGLShadow
|
||||||
: public Shadow
|
: public Shadow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SceneOpenGLShadow(Toplevel *toplevel);
|
explicit SceneOpenGLShadow(Toplevel *toplevel);
|
||||||
virtual ~SceneOpenGLShadow();
|
virtual ~SceneOpenGLShadow();
|
||||||
|
|
||||||
GLTexture *shadowTexture() {
|
GLTexture *shadowTexture() {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class SceneXrender
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
class EffectFrame;
|
class EffectFrame;
|
||||||
SceneXrender(Workspace* ws);
|
explicit SceneXrender(Workspace* ws);
|
||||||
virtual ~SceneXrender();
|
virtual ~SceneXrender();
|
||||||
virtual bool initFailed() const;
|
virtual bool initFailed() const;
|
||||||
virtual CompositingType compositingType() const {
|
virtual CompositingType compositingType() const {
|
||||||
|
@ -153,7 +153,7 @@ class SceneXRenderShadow
|
||||||
: public Shadow
|
: public Shadow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
SceneXRenderShadow(Toplevel *toplevel);
|
explicit SceneXRenderShadow(Toplevel *toplevel);
|
||||||
using Shadow::ShadowElements;
|
using Shadow::ShadowElements;
|
||||||
using Shadow::ShadowElementTop;
|
using Shadow::ShadowElementTop;
|
||||||
using Shadow::ShadowElementTopRight;
|
using Shadow::ShadowElementTopRight;
|
||||||
|
|
|
@ -257,7 +257,7 @@ private:
|
||||||
class ScriptUnloaderAgent : public QScriptEngineAgent
|
class ScriptUnloaderAgent : public QScriptEngineAgent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScriptUnloaderAgent(Script *script);
|
explicit ScriptUnloaderAgent(Script *script);
|
||||||
virtual void scriptUnload(qint64 id);
|
virtual void scriptUnload(qint64 id);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -298,7 +298,7 @@ private:
|
||||||
void runScripts();
|
void runScripts();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Scripting(QObject *parent = NULL);
|
explicit Scripting(QObject *parent = NULL);
|
||||||
~Scripting();
|
~Scripting();
|
||||||
Q_SCRIPTABLE Q_INVOKABLE int loadScript(const QString &filePath, const QString &pluginName = QString());
|
Q_SCRIPTABLE Q_INVOKABLE int loadScript(const QString &filePath, const QString &pluginName = QString());
|
||||||
Q_SCRIPTABLE Q_INVOKABLE int loadDeclarativeScript(const QString &filePath, const QString &pluginName = QString());
|
Q_SCRIPTABLE Q_INVOKABLE int loadDeclarativeScript(const QString &filePath, const QString &pluginName = QString());
|
||||||
|
|
|
@ -163,7 +163,7 @@ public:
|
||||||
ElectricNone
|
ElectricNone
|
||||||
};
|
};
|
||||||
|
|
||||||
WorkspaceWrapper(QObject* parent = 0);
|
explicit WorkspaceWrapper(QObject* parent = 0);
|
||||||
#define GETTERSETTERDEF( rettype, getter, setter ) \
|
#define GETTERSETTERDEF( rettype, getter, setter ) \
|
||||||
rettype getter() const; \
|
rettype getter() const; \
|
||||||
void setter( rettype val );
|
void setter( rettype val );
|
||||||
|
|
|
@ -57,7 +57,7 @@ public:
|
||||||
MinimizedRole = Qt::UserRole + 6, ///< TabBoxClient is minimized
|
MinimizedRole = Qt::UserRole + 6, ///< TabBoxClient is minimized
|
||||||
CloseableRole = Qt::UserRole + 7 ///< TabBoxClient can be closed
|
CloseableRole = Qt::UserRole + 7 ///< TabBoxClient can be closed
|
||||||
};
|
};
|
||||||
ClientModel(QObject* parent = 0);
|
explicit ClientModel(QObject* parent = 0);
|
||||||
~ClientModel();
|
~ClientModel();
|
||||||
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
||||||
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
|
||||||
|
|
|
@ -42,7 +42,7 @@ namespace TabBox
|
||||||
class ImageProvider : public QDeclarativeImageProvider
|
class ImageProvider : public QDeclarativeImageProvider
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ImageProvider(QAbstractItemModel *model);
|
explicit ImageProvider(QAbstractItemModel *model);
|
||||||
virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
|
virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -51,7 +51,7 @@ public:
|
||||||
DesktopNameRole = Qt::UserRole + 1, ///< Desktop name
|
DesktopNameRole = Qt::UserRole + 1, ///< Desktop name
|
||||||
ClientModelRole = Qt::UserRole + 2 ///< Clients on this desktop
|
ClientModelRole = Qt::UserRole + 2 ///< Clients on this desktop
|
||||||
};
|
};
|
||||||
DesktopModel(QObject* parent = 0);
|
explicit DesktopModel(QObject* parent = 0);
|
||||||
~DesktopModel();
|
~DesktopModel();
|
||||||
|
|
||||||
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
|
||||||
|
|
|
@ -42,7 +42,7 @@ class TabBox;
|
||||||
class TabBoxHandlerImpl : public TabBoxHandler
|
class TabBoxHandlerImpl : public TabBoxHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabBoxHandlerImpl(TabBox* tabBox);
|
explicit TabBoxHandlerImpl(TabBox* tabBox);
|
||||||
virtual ~TabBoxHandlerImpl();
|
virtual ~TabBoxHandlerImpl();
|
||||||
|
|
||||||
virtual int activeScreen() const;
|
virtual int activeScreen() const;
|
||||||
|
@ -79,7 +79,7 @@ private:
|
||||||
class TabBoxClientImpl : public TabBoxClient
|
class TabBoxClientImpl : public TabBoxClient
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
TabBoxClientImpl(Client *client);
|
explicit TabBoxClientImpl(Client *client);
|
||||||
virtual ~TabBoxClientImpl();
|
virtual ~TabBoxClientImpl();
|
||||||
|
|
||||||
virtual QString caption() const;
|
virtual QString caption() const;
|
||||||
|
@ -107,7 +107,7 @@ class TabBox : public QObject
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_CLASSINFO("D-Bus Interface", "org.kde.kwin")
|
Q_CLASSINFO("D-Bus Interface", "org.kde.kwin")
|
||||||
public:
|
public:
|
||||||
TabBox(QObject *parent = NULL);
|
explicit TabBox(QObject *parent = NULL);
|
||||||
~TabBox();
|
~TabBox();
|
||||||
|
|
||||||
Client* currentClient();
|
Client* currentClient();
|
||||||
|
|
|
@ -53,7 +53,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Creates a new group containing \p c.
|
* Creates a new group containing \p c.
|
||||||
*/
|
*/
|
||||||
TabGroup(Client* c);
|
explicit TabGroup(Client* c);
|
||||||
~TabGroup();
|
~TabGroup();
|
||||||
|
|
||||||
enum State {
|
enum State {
|
||||||
|
|
|
@ -37,7 +37,7 @@ class ThumbnailItem : public QDeclarativeItem
|
||||||
Q_PROPERTY(bool clip READ isClip WRITE setClip NOTIFY clipChanged SCRIPTABLE true)
|
Q_PROPERTY(bool clip READ isClip WRITE setClip NOTIFY clipChanged SCRIPTABLE true)
|
||||||
Q_PROPERTY(qulonglong parentWindow READ parentWindow WRITE setParentWindow)
|
Q_PROPERTY(qulonglong parentWindow READ parentWindow WRITE setParentWindow)
|
||||||
public:
|
public:
|
||||||
ThumbnailItem(QDeclarativeItem *parent = 0);
|
explicit ThumbnailItem(QDeclarativeItem *parent = 0);
|
||||||
virtual ~ThumbnailItem();
|
virtual ~ThumbnailItem();
|
||||||
|
|
||||||
qulonglong wId() const {
|
qulonglong wId() const {
|
||||||
|
|
|
@ -123,7 +123,7 @@ class KDecorationPreviewPlugins
|
||||||
: public KDecorationPlugins
|
: public KDecorationPlugins
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
KDecorationPreviewPlugins(KConfig* cfg);
|
explicit KDecorationPreviewPlugins(KConfig* cfg);
|
||||||
virtual bool provides(Requirement);
|
virtual bool provides(Requirement);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -165,7 +165,7 @@ class Toplevel
|
||||||
**/
|
**/
|
||||||
Q_PROPERTY(bool shaped READ shape NOTIFY shapedChanged)
|
Q_PROPERTY(bool shaped READ shape NOTIFY shapedChanged)
|
||||||
public:
|
public:
|
||||||
Toplevel(Workspace *ws);
|
explicit Toplevel(Workspace *ws);
|
||||||
Window frameId() const;
|
Window frameId() const;
|
||||||
Window window() const;
|
Window window() const;
|
||||||
Workspace* workspace() const;
|
Workspace* workspace() const;
|
||||||
|
|
|
@ -33,7 +33,7 @@ class Unmanaged
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Unmanaged(Workspace *ws);
|
explicit Unmanaged(Workspace *ws);
|
||||||
bool windowEvent(XEvent* e);
|
bool windowEvent(XEvent* e);
|
||||||
void release(bool on_shutdown = false);
|
void release(bool on_shutdown = false);
|
||||||
bool track(Window w);
|
bool track(Window w);
|
||||||
|
|
4
utils.h
4
utils.h
|
@ -215,7 +215,7 @@ class KWinSelectionOwner
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
KWinSelectionOwner(int screen);
|
explicit KWinSelectionOwner(int screen);
|
||||||
protected:
|
protected:
|
||||||
virtual bool genericReply(Atom target, Atom property, Window requestor);
|
virtual bool genericReply(Atom target, Atom property, Window requestor);
|
||||||
virtual void replyTargets(Atom property, Window requestor);
|
virtual void replyTargets(Atom property, Window requestor);
|
||||||
|
@ -383,7 +383,7 @@ class ShortcutDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
ShortcutDialog(const QKeySequence& cut);
|
explicit ShortcutDialog(const QKeySequence& cut);
|
||||||
virtual void accept();
|
virtual void accept();
|
||||||
QKeySequence shortcut() const;
|
QKeySequence shortcut() const;
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
|
|
@ -83,7 +83,7 @@ class Workspace : public QObject, public KDecorationDefines
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
Workspace(bool restore = false);
|
explicit Workspace(bool restore = false);
|
||||||
virtual ~Workspace();
|
virtual ~Workspace();
|
||||||
|
|
||||||
static Workspace* self() {
|
static Workspace* self() {
|
||||||
|
@ -860,7 +860,7 @@ private:
|
||||||
class StackingUpdatesBlocker
|
class StackingUpdatesBlocker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
StackingUpdatesBlocker(Workspace* w)
|
explicit StackingUpdatesBlocker(Workspace* w)
|
||||||
: ws(w) {
|
: ws(w) {
|
||||||
ws->blockStackingUpdates(true);
|
ws->blockStackingUpdates(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue