-
Notifications
You must be signed in to change notification settings - Fork 1
/
adminscreen.cpp
79 lines (78 loc) · 1.9 KB
/
adminscreen.cpp
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/**
* @file adminscreen.cpp
* @brief Administration window implementation
* @author mnxoid
*
* Copyright 2014 by mnxoid,
*
* This software is the confidential and proprietary information
* of mnxoid ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with mnxoid.
**/
#include "adminscreen.h"
#include "ui_adminscreen.h"
#include "windowmanager.h"
#include <QMessageBox>
/**
* @brief Window Manager instance
* @see main.cpp
**/
extern WindowManager WMgr;
/**
* @brief AdminScreen constructor
* @param [in] parent - Window parent
**/
AdminScreen::AdminScreen(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::AdminScreen)
{
ui->setupUi(this);
}
/**
* @brief AdminScreen destructor
**/
AdminScreen::~AdminScreen()
{
delete ui;
}
/**
* @brief Exit button click handler
**/
void AdminScreen::on_pushButton_clicked()
{
//Return to login screen
WMgr.ad->hide();
WMgr.mw->show();
}
/**
* @brief Add User button click handler
**/
void AdminScreen::on_pushButton_2_clicked()
{
QMessageBox* msg = new QMessageBox(this);
msg->setText("Sorry, this feature will be implemented in the near future.");
msg->setWindowTitle("Oops!");
msg->show();
}
/**
* @brief Edit User button click handler
**/
void AdminScreen::on_pushButton_3_clicked()
{
QMessageBox* msg = new QMessageBox(this);
msg->setText("Sorry, this feature will be implemented in the near future.");
msg->setWindowTitle("Oops!");
msg->show();
}
/**
* @brief Delete User button click handler
**/
void AdminScreen::on_pushButton_4_clicked()
{
QMessageBox* msg = new QMessageBox(this);
msg->setText("Sorry, this feature will be implemented in the near future.");
msg->setWindowTitle("Oops!");
msg->show();
}