-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgui_function.h
More file actions
40 lines (31 loc) · 794 Bytes
/
gui_function.h
File metadata and controls
40 lines (31 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef GUI_FUNCTION_H
#define GUI_FUNCTION_H
#include <QWidget>
#include "gui_functionform.h"
/*
* View class. Shows 2 buttons and up to 10 widgets, which are
* GUI_FunctionForm classes. This QWidget is used in Mainwindow.
*/
namespace Ui {
class GUI_Function;
}
class GUI_Function : public QWidget
{
Q_OBJECT
public:
explicit GUI_Function(QWidget *parent = 0);
~GUI_Function();
void hideUnit(int pos);
void hideAll();
GUI_FunctionForm* setUnitVisible();
void setLabel(QString text);
static int NoFunctions;
QList<GUI_FunctionForm*> getActiveWidgets();
QList<GUI_FunctionForm*> getAllWidgets();
private slots:
void on_addButton_clicked();
void on_removeButton_clicked();
private:
Ui::GUI_Function *ui;
};
#endif // GUI_FUNCTION_H