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.
42 lines
1.1 KiB
42 lines
1.1 KiB
3 years ago
|
#ifndef ADDAPPLICATIONLAUNCHER_H
|
||
|
#define ADDAPPLICATIONLAUNCHER_H
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QFileDialog>
|
||
|
#include "applicationlaunchers.h"
|
||
|
|
||
|
namespace Ui {
|
||
|
class AddApplicationLauncher;
|
||
|
}
|
||
|
|
||
|
class AddApplicationLauncher : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
explicit AddApplicationLauncher(QWidget *parent = nullptr);
|
||
|
AddApplicationLauncher(ApplicationLaunchers* launcher, QWidget *parent = nullptr);
|
||
|
~AddApplicationLauncher();
|
||
|
ApplicationLaunchers* applicationLauncher;
|
||
|
|
||
|
void init();
|
||
|
void appendApplicationExtension(QString applicationExtensionName);
|
||
|
void removeApplicationExtension();
|
||
|
/* Setter Functions */
|
||
|
void setApplicationLauncher(ApplicationLaunchers* newLauncher);
|
||
|
/* Getter Functions */
|
||
|
ApplicationLaunchers* getApplicationLauncher();
|
||
|
private slots:
|
||
|
void on_selectApplicationLocation_clicked();
|
||
|
void on_addExtension_Button_clicked();
|
||
|
void on_removeExtension_Button_clicked();
|
||
|
|
||
|
void on_buttonBox_accepted();
|
||
|
void on_buttonBox_rejected();
|
||
|
|
||
|
private:
|
||
|
Ui::AddApplicationLauncher *ui;
|
||
|
};
|
||
|
|
||
|
#endif // ADDAPPLICATIONLAUNCHER_H
|