-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
56 lines (45 loc) · 1.35 KB
/
mainwindow.h
File metadata and controls
56 lines (45 loc) · 1.35 KB
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "activity.h"
#include "QDebug"
#include "chartdir.h"
#include <QMessageBox>
#include <QPainter>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_add_button_clicked();
void on_calculate_table_clicked();
private:
Ui::MainWindow *ui;
int numberOfRows;
QList<Activity> activity_list;
void resource_planing();
QList<int> ready_for_resource_planing(int today);
QList<int> sort_activity_based_on_LS(QList<int> input);
bool draw_gannt_chart();
bool all_of_them_checked_forward();
bool all_of_them_checked_backward();
bool all_of_them_checked_resource();
QList<int> without_precedence();
QList<int> linked_to_finish();
QList<int> find_precedence(QString activity_name);
QList<int> find_successors(QString activity_name);
void add_to_successors(QString activity,QString succesor);
int find_by_name(QString name);
bool check_all_precedences(QString name);
bool check_all_precedences_resource(QString name,int today);
bool check_all_successors(QString name);
int find_max_EF(QString name);
int find_min_LS(QString name);
void get_one_row_from_table();
};
#endif // MAINWINDOW_H