CuteLogger
Fast and simple logging solution for Qt based applications
newprojectfolder.h
1 /*
2  * Copyright (c) 2018-2019 Meltytech, LLC
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef NEWPROJECTFOLDER_H
19 #define NEWPROJECTFOLDER_H
20 
21 #include <QWidget>
22 #include <QModelIndex>
23 #include <QStandardItemModel>
24 #include <QMenu>
25 
26 namespace Ui {
27 class NewProjectFolder;
28 }
29 
30 class QAction;
31 class QActionGroup;
32 
33 class NewProjectFolder : public QWidget
34 {
35  Q_OBJECT
36 
37 public:
38  explicit NewProjectFolder(QWidget* parent = 0);
39  ~NewProjectFolder();
40 
41 protected:
42  void showEvent(QShowEvent*);
43  void hideEvent(QHideEvent*);
44 
45 private slots:
46  void on_projectsFolderButton_clicked();
47 
48  void on_videoModeButton_clicked();
49 
50  void onProfileTriggered(QAction* action);
51 
52  void on_actionAddCustomProfile_triggered();
53 
54  void on_actionProfileRemove_triggered();
55 
56  void on_startButton_clicked();
57 
58  void on_projectNameLineEdit_textChanged(const QString& arg1);
59 
60  void on_recentListView_clicked(const QModelIndex& index);
61 
62 private:
63  Ui::NewProjectFolder *ui;
64  QActionGroup* m_profileGroup;
65  QMenu m_videoModeMenu;
66  QMenu* m_customProfileMenu;
67  QString m_profile;
68  QStandardItemModel m_model;
69  QString m_projectName;
70 };
71 
72 #endif // NEWPROJECTFOLDER_H
Definition: addencodepresetdialog.h:24