forked from donaloconnor/automon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
menuwidget.h
46 lines (35 loc) · 1.97 KB
/
menuwidget.h
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
41
42
43
44
45
46
#ifndef MENUWIDGET_H
#define MENUWIDGET_H
/*
==================================================================================================
| menuwidget.h |
| Part of the Automon application. |
| |
| Final Year Project - "An Embedded Automotive Monitoring Device" |
| |
| By Donal O' Connor for completion of B.Sc (Hons) Software Development and Computer Networking |
| Email: [email protected] |
| Website/Blog: http://automon.killarneyonline.eu |
| |
| Cork Institute of Technology, Cork, Ireland - http://www.cit.ie/ |
| |
| Copyright © 2009 Donal O'Connor <[email protected]> |
==================================================================================================
This class is a custom widget that displays a menu consisting of MenuItem push buttons.
It is what you see on top. It is responsible for seting up click events to the panel
*/
#include <QWidget>
#include <QList>
class QHBoxLayout;
#include "menuitem.h"
class MenuWidget : public QWidget
{
public:
MenuWidget();
~MenuWidget();
bool connectButtonToPanel(QString name, int panelID, QObject * receiverObj);
private:
QList<MenuItem *> m_buttons;
QHBoxLayout * m_layout;
};
#endif // MENUWIDGET_H