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.
 
 
 
 

46 lines
1021 B

#ifndef breezedetectwidget_h
#define breezedetectwidget_h
//////////////////////////////////////////////////////////////////////////////
// breezedetectwidget.h
// Note: this class is a stripped down version of
// /kdebase/workspace/kwin/kcmkwin/kwinrules/detectwidget.h
// SPDX-FileCopyrightText: 2004 Lubos Lunak <l.lunak@kde.org>
// -------------------
//
// SPDX-FileCopyrightText: 2009 Hugo Pereira Da Costa <hugo.pereira@free.fr>
//
// SPDX-License-Identifier: MIT
//////////////////////////////////////////////////////////////////////////////
#include <QObject>
#include <QVariantMap>
namespace Breeze
{
class DetectDialog : public QObject
{
Q_OBJECT
public:
//* constructor
explicit DetectDialog(QObject *parent = nullptr);
//* read window properties or select one from mouse grab
void detect();
//* window properties
QVariantMap properties() const;
Q_SIGNALS:
void detectionDone(bool);
private:
//* properties
QVariantMap m_properties;
};
} // namespace
#endif