/**************************************** * * theShell - Desktop Environment * Copyright (C) 2019 Victor Tran * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * * *************************************/ #ifndef RUNDIALOG_H #define RUNDIALOG_H #include #include #include #include #include #include #include #include #include #include #include #undef Status #undef Bool #undef None #undef FocusIn #undef FontChange #undef Expose #undef KeyPress #undef KeyRelease #undef FocusOut #undef CursorShape #undef Unsorted namespace Ui { class RunDialog; } class RunDialog : public QDialog { Q_OBJECT public: explicit RunDialog(QWidget *parent = 0); ~RunDialog(); void show(); void close(); void reject(); void setGeometry(int x, int y, int w, int h); void setGeometry(QRect geometry); private slots: void on_cancelButton_clicked(); void on_runButton_clicked(); void on_command_returnPressed(); private: Ui::RunDialog *ui; void paintEvent(QPaintEvent* event); void changeEvent(QEvent* event); }; #endif // RUNDIALOG_H