2014-06-18 23:44:46 +00:00
|
|
|
#ifndef MAINSCREEN_H
|
|
|
|
#define MAINSCREEN_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
|
|
|
#include <QApplication>
|
|
|
|
#include <QString>
|
|
|
|
#include <QMessageBox>
|
|
|
|
#include <QTextEdit>
|
|
|
|
|
2014-08-31 09:33:27 +00:00
|
|
|
#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
|
|
|
|
2014-09-17 01:08:38 +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-08-31 09:33:27 +00:00
|
|
|
|
2014-09-08 15:54:52 +00:00
|
|
|
void on_getCalendarBtn_clicked();
|
2014-09-08 14:29:49 +00:00
|
|
|
|
2014-09-08 14:30:18 +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();
|
2014-09-07 19:57:01 +00:00
|
|
|
|
2014-09-08 17:07:42 +00:00
|
|
|
void on_actionOS_Default_triggered();
|
|
|
|
|
2014-09-17 01:57:44 +00:00
|
|
|
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-09-26 22:40:02 +00:00
|
|
|
void on_labelMadeBy_linkActivated(const QString &link);
|
|
|
|
|
2014-10-05 11:16:01 +00:00
|
|
|
void on_graphButton_clicked();
|
|
|
|
|
2014-10-07 20:58:09 +00:00
|
|
|
void on_progressBar_valueChanged(int value);
|
|
|
|
|
2014-06-18 23:44:46 +00:00
|
|
|
private:
|
|
|
|
|
2014-09-09 08:20:58 +00:00
|
|
|
void checkLocale();
|
2014-06-18 23:44:46 +00:00
|
|
|
|
2014-09-17 01:57:44 +00:00
|
|
|
bool checkIfValidDates();
|
|
|
|
|
2014-06-18 23:44:46 +00:00
|
|
|
Ui::MainScreen *ui;
|
|
|
|
|
2014-09-17 22:59:42 +00:00
|
|
|
QPixmap iconPix;
|
2014-06-18 23:44:46 +00:00
|
|
|
user *userLoginSetting;
|
2014-08-31 21:27:15 +00:00
|
|
|
SaveData *data;
|
2014-09-17 22:59:42 +00:00
|
|
|
|
2014-08-31 09:33:27 +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-09-12 09:11:28 +00:00
|
|
|
|
2014-06-18 23:44:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINSCREEN_H
|