jce-manager/main/mainscreen.h

96 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 <string>
#include <iostream>
#include "./CourseTab/coursestablemanager.h"
#include "./LoginTab/loginhandler.h"
#include "./CalendarTab/CalendarManager.h"
2014-09-08 15:54:52 +00:00
2014-06-18 23:44:46 +00:00
#define STATUS_ICON_HEIGH 35
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:
void on_ratesButton_clicked();
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-09-08 15:54:52 +00:00
void on_getCalendarBtn_clicked();
2014-09-08 14:29:49 +00:00
void on_checkBoxCoursesInfluence_toggled(bool checked);
2014-09-08 14:29:49 +00:00
2014-09-08 15:54:52 +00:00
void on_exportToCVSBtn_clicked();
void on_actionHebrew_triggered();
void on_actionEnglish_triggered();
void on_actionOS_Default_triggered();
void on_spinBoxCoursesFromSemester_valueChanged(int arg1);
void on_spinBoxCoursesFromYear_valueChanged(int arg1);
void on_spinBoxCoursesToYear_valueChanged(int arg1);
void on_spinBoxCoursesToSemester_valueChanged(int arg1);
2014-06-18 23:44:46 +00:00
private:
void uiSetDisconnectMode();
void uiSetConnectMode();
void setLabelConnectionStatus(jceLogin::jceStatus statusDescription);
2014-09-09 08:20:58 +00:00
void checkLocale();
2014-06-18 23:44:46 +00:00
bool checkIfValidDates();
2014-06-18 23:44:46 +00:00
Ui::MainScreen *ui;
2014-09-09 08:20:58 +00:00
QLabel *ButtomStatusLabel;
QLabel *statusLabel;
2014-06-18 23:44:46 +00:00
user *userLoginSetting;
SaveData *data;
CalendarManager * calendar;
2014-06-18 23:44:46 +00:00
coursesTableManager *courseTableMgr;
loginHandler *loginHandel;
bool calendarLoaded;
2014-06-18 23:44:46 +00:00
};
#endif // MAINSCREEN_H