-
Notifications
You must be signed in to change notification settings - Fork 4
/
editappointmentdialog.h
69 lines (64 loc) · 2.18 KB
/
editappointmentdialog.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef EDITAPPOINTMENTDIALOG_H
#define EDITAPPOINTMENTDIALOG_H
#include <QDialog>
#include <QItemSelection>
#include <QDate>
#include <QModelIndex>
#include "globalconfig.h"
class QSqlTableModel;
class QDataWidgetMapper;
#include <QDialog>
namespace Ui {
class EditAppointmentDialog;
}
class EditAppointmentDialog : public QDialog
{
Q_OBJECT
public:
explicit EditAppointmentDialog(QWidget *parent = 0);
~EditAppointmentDialog();
void editApptbyID(int id);
private slots:
void beginEditing();
void endEditing();
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
void searchTextChanged(QString text);
void on_save_pushButton_3_clicked();
void combobox_text_changed(QString text);
void searchDateChanged(QDate date);
void setRange(QTime beginTime);
void updateEndTime();
void updateDuration();
private:
Ui::EditAppointmentDialog *ui;
GlobalConfig global_config;
QDataWidgetMapper *appointment_mapper;
QSqlTableModel *appt_assoc_names_model;
bool exactlyMatch;
//Helper variables for Filtering
QString filter;
QSqlTableModel *stylist_model,*service_model,*customer_model;
//Save/Load User Preferences members
/**
* @brief Saves user preferences.
*
* Saves user preferences such as window position, window size, user modified fields. This function is called always\n
* that this windows is closed using the Ok button. For more information about how it works see the QSettings documentation.
*/
void saveUserPreferences();
/**
* @brief Loads user preferences.
*
* Loads user preferences such as window position, window size, user modified fields. This function is called always\n
* that this windows is closed using the Ok button. For more information about how it works see the QSettings documentation.
*/
void loadUerPreferences();
/**
* @brief Window close event.
*
* This Event is called always that this windows is closed. This function is used to perform saving of user preferences.
* @param event QCloseEvent object.
*/
void closeEvent(QCloseEvent *event);
};
#endif // EDITAPPOINTMENTDIALOG_H