PCManFM-Qt
desktopentrydialog.h
1 #ifndef FM_DESKTOPENTRYDIALOG_H
2 #define FM_DESKTOPENTRYDIALOG_H
3 
4 #include <QDialog>
5 #include "ui_desktopentrydialog.h"
6 
7 #include <libfm-qt/core/filepath.h>
8 
9 namespace PCManFM {
10 
11 class LIBFM_QT_API DesktopEntryDialog : public QDialog {
12  Q_OBJECT
13 public:
14  explicit DesktopEntryDialog(QWidget *parent = nullptr, const Fm::FilePath& dirPath = Fm::FilePath());
15 
16  virtual ~DesktopEntryDialog();
17 
18  virtual void accept() override;
19 
20 Q_SIGNALS:
21  void desktopEntryCreated(const QString& name);
22 
23 private Q_SLOTS:
24  void onChangingType(int type);
25  void onClickingIconButton();
26  void onClickingCommandButton();
27 
28 private:
29  Ui::DesktopEntryDialog ui;
30  Fm::FilePath dirPath_;
31 
32 };
33 
34 } // namespace Fm
35 #endif // FM_DESKTOPENTRYDIALOG_H
Definition: desktopentrydialog.h:11