AntiMicroX
unixwindowinfodialog.h
Go to the documentation of this file.
1 /* antimicrox Gamepad to KB+M event mapper
2  * Copyright (C) 2015 Travis Nickles <nickles.travis@gmail.com>
3  * Copyright (C) 2020 Jagoda Górska <juliagoda.pl@protonmail>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9 
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14 
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef UNIXWINDOWINFODIALOG_H
20 #define UNIXWINDOWINFODIALOG_H
21 
22 #include <QDialog>
23 #include <QString>
24 
25 namespace Ui {
27 }
28 
29 class UnixWindowInfoDialog : public QDialog
30 {
31  Q_OBJECT
32 
33  public:
34  explicit UnixWindowInfoDialog(long window, QWidget *parent = nullptr);
36 
37  enum
38  {
39  WindowClass = (1 << 0),
40  WindowName = (1 << 1),
41  WindowPath = (1 << 2)
42  };
43  typedef int DialogWindowOption;
44 
45  QString getWindowClass() const;
46  QString getWindowName() const;
47  QString getWindowPath() const;
49 
50  private:
51  Ui::UnixWindowInfoDialog *ui;
53 
54  QString winClass;
55  QString winName;
56  QString winPath;
57 
58  private slots:
59  void populateOption();
60 };
61 
62 #endif // UNIXWINDOWINFODIALOG_H
UnixWindowInfoDialog::populateOption
void populateOption()
Definition: unixwindowinfodialog.cpp:93
UnixWindowInfoDialog::getWindowClass
QString getWindowClass() const
Definition: unixwindowinfodialog.cpp:113
UnixWindowInfoDialog::UnixWindowInfoDialog
UnixWindowInfoDialog(long window, QWidget *parent=nullptr)
Definition: unixwindowinfodialog.cpp:25
UnixWindowInfoDialog::WindowPath
@ WindowPath
Definition: unixwindowinfodialog.h:41
UnixWindowInfoDialog::getWindowName
QString getWindowName() const
Definition: unixwindowinfodialog.cpp:115
UnixWindowInfoDialog::~UnixWindowInfoDialog
~UnixWindowInfoDialog()
Definition: unixwindowinfodialog.cpp:119
UnixWindowInfoDialog::DialogWindowOption
int DialogWindowOption
Definition: unixwindowinfodialog.h:43
UnixWindowInfoDialog::getWindowPath
QString getWindowPath() const
Definition: unixwindowinfodialog.cpp:117
UnixWindowInfoDialog
Definition: unixwindowinfodialog.h:29
UnixWindowInfoDialog::selectedMatch
DialogWindowOption selectedMatch
Definition: unixwindowinfodialog.h:52
UnixWindowInfoDialog::getSelectedOptions
DialogWindowOption getSelectedOptions() const
Definition: unixwindowinfodialog.cpp:111
Ui
Definition: aboutdialog.h:26
UnixWindowInfoDialog::WindowClass
@ WindowClass
Definition: unixwindowinfodialog.h:39
UnixWindowInfoDialog::winPath
QString winPath
Definition: unixwindowinfodialog.h:56
UnixWindowInfoDialog::WindowName
@ WindowName
Definition: unixwindowinfodialog.h:40
unixwindowinfodialog.h
UnixWindowInfoDialog::winName
QString winName
Definition: unixwindowinfodialog.h:55
UnixWindowInfoDialog::ui
Ui::UnixWindowInfoDialog * ui
Definition: unixwindowinfodialog.h:51
UnixWindowInfoDialog::winClass
QString winClass
Definition: unixwindowinfodialog.h:54