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 <string>
|
|
|
|
#include <iostream>
|
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
#include "./CourseTab/coursestablemanager.h"
|
|
|
|
#include "./LoginTab/loginhandler.h"
|
|
|
|
#include "./CalendarTab/CalendarManager.h"
|
2014-06-18 23:44:46 +00:00
|
|
|
|
|
|
|
#define StatusIconHeight 35
|
|
|
|
namespace Ui {
|
|
|
|
class MainScreen;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainScreen : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainScreen(QWidget *parent = 0);
|
|
|
|
~MainScreen();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void on_ratesButton_clicked();
|
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
void on_spinBoxCoursesFromYear_editingFinished();
|
2014-06-18 23:44:46 +00:00
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
void on_spinBoxCoursesFromSemester_editingFinished();
|
2014-06-18 23:44:46 +00:00
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
void on_spinBoxCoursesToYear_editingFinished();
|
2014-06-18 23:44:46 +00:00
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
void on_spinBoxCoursesToSemester_editingFinished();
|
2014-06-18 23:44:46 +00:00
|
|
|
|
|
|
|
void on_loginButton_clicked();
|
|
|
|
|
|
|
|
void on_usrnmLineEdit_editingFinished();
|
|
|
|
|
|
|
|
void on_actionCredits_triggered();
|
|
|
|
|
|
|
|
void on_clearTableButton_clicked();
|
|
|
|
|
|
|
|
void on_actionExit_triggered();
|
|
|
|
|
|
|
|
void on_coursesTable_itemChanged(QTableWidgetItem *item);
|
|
|
|
|
|
|
|
void on_keepLogin_clicked();
|
|
|
|
|
2014-06-22 12:43:31 +00:00
|
|
|
void on_actionHow_To_triggered();
|
2014-08-31 09:33:27 +00:00
|
|
|
|
|
|
|
void on_pushButton_clicked();
|
|
|
|
|
|
|
|
void on_checkBoxCoursesInfluence_toggled(bool checked);
|
|
|
|
|
2014-06-18 23:44:46 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
void uiSetDisconnectMode();
|
|
|
|
void uiSetConnectMode();
|
|
|
|
void setLabelConnectionStatus(jceLogin::jceStatus statusDescription);
|
|
|
|
|
|
|
|
Ui::MainScreen *ui;
|
|
|
|
|
|
|
|
user *userLoginSetting;
|
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
CalendarManager * calendar;
|
2014-06-18 23:44:46 +00:00
|
|
|
coursesTableManager *courseTableMgr;
|
|
|
|
loginHandler *loginHandel;
|
|
|
|
|
|
|
|
QLabel *ButtomStatusLabel;
|
|
|
|
QLabel *statusLabel;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINSCREEN_H
|