jce-manager/main/mainscreen.h

88 lines
1.9 KiB
C
Raw Normal View History

2014-06-18 23:44:46 +00:00
#ifndef MAINSCREEN_H
#define MAINSCREEN_H
#include <QMainWindow>
#include <QApplication>
#include <QString>
#include <QMessageBox>
#include <QTextEdit>
#include "./CourseTab/coursestablemanager.h"
#include "./LoginTab/loginhandler.h"
#include "./CalendarTab/CalendarManager.h"
#include "./jceWidgets/jcestatusbar.h"
2014-10-12 19:19:43 +00:00
2014-09-08 15:54:52 +00:00
2014-06-18 23:44:46 +00:00
namespace Ui {
class MainScreen;
}
class MainScreen : public QMainWindow
{
Q_OBJECT
public:
MainScreen(QWidget *parent = 0);
~MainScreen();
private slots:
2014-10-12 02:52:07 +00:00
//Login Tab slots
2014-06-18 23:44:46 +00:00
void on_loginButton_clicked();
2014-10-12 02:52:07 +00:00
void on_keepLogin_clicked();
2014-06-18 23:44:46 +00:00
void on_usrnmLineEdit_editingFinished();
2014-10-12 02:52:07 +00:00
//GPA Tab slots
void on_ratesButton_clicked();
void on_graphButton_clicked();
2014-10-13 23:45:11 +00:00
void on_revertBtn_clicked();
2014-06-18 23:44:46 +00:00
void on_clearTableButton_clicked();
void on_coursesTable_itemChanged(QTableWidgetItem *item);
void on_checkBoxCoursesInfluence_toggled(bool checked);
2014-09-08 14:29:49 +00:00
2014-10-12 02:52:07 +00:00
//Schedule Tab slots
void on_getCalendarBtn_clicked();
void on_examsBtn_clicked();
2014-09-08 15:54:52 +00:00
void on_exportToCVSBtn_clicked();
2014-10-12 02:52:07 +00:00
//Main screen general slots
void on_spinBoxCoursesFromSemester_valueChanged(int arg1);
void on_spinBoxCoursesFromYear_valueChanged(int arg1);
void on_spinBoxCoursesToYear_valueChanged(int arg1);
void on_spinBoxCoursesToSemester_valueChanged(int arg1);
void on_labelMadeBy_linkActivated(const QString &link);
2014-10-13 23:45:11 +00:00
//Setting dock
void on_langButton_clicked();
2014-10-13 02:12:00 +00:00
2014-10-13 23:45:11 +00:00
void on_creditButton_clicked();
void on_howtoButton_clicked();
2014-06-18 23:44:46 +00:00
2014-10-13 23:45:11 +00:00
private:
2014-09-09 08:20:58 +00:00
void checkLocale();
bool checkIfValidDates();
2014-10-12 22:43:08 +00:00
bool isBusy();
void lock();
void unlock();
2014-06-18 23:44:46 +00:00
Ui::MainScreen *ui;
2014-10-12 22:43:08 +00:00
bool isBlocked;
2014-09-17 22:59:42 +00:00
QPixmap iconPix;
2014-06-18 23:44:46 +00:00
user *userLoginSetting;
SaveData *data;
2014-09-17 22:59:42 +00:00
CalendarManager * calendar;
2014-06-18 23:44:46 +00:00
coursesTableManager *courseTableMgr;
2014-09-17 22:59:42 +00:00
loginHandler *loginHandel;
2014-10-12 19:19:43 +00:00
jceStatusBar *statusBar;
2014-06-18 23:44:46 +00:00
};
#endif // MAINSCREEN_H