-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
56 lines (50 loc) · 2.12 KB
/
main.cpp
File metadata and controls
56 lines (50 loc) · 2.12 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
/*
* This file is part of the Chartpp project for the OOP course at the University of Padua (Italy).
* The project consists in making a software capable of providing the user the capability of:
* -managing data (creation, deletion) via a graphic interface
* -saving and loading this data to and from a file
* -using this data to create at least 3 different types of charts to be displayed
*
* What should be done:
* -create a friendly and simple user interface to do everything using the framework Qt
* -separate logic and GUI
* -inheritance with custom class gerarchy and polymorphism must be used
* -students are free to handle everything else as they prefer, including the type of data to be used to make the chars and how to store the data via saving to a file
*
* My own implementation of the project, called "Chartpp" (which is a play on words about the programming language used C++ => Cpp => Chartpp), utilizes JSON to save and load data
* and lets users input either numeric or textual data in order to create and display 3 different types of charts (line chart, bar chart and pie chart) in a very easy way.
*
*
*
* Author: Davide Milan
* ----------------------------------------------------------------
* Programming Language: C++
* ----------------------------------------------------------------
* Framework: Qt
* ----------------------------------------------------------------
* Pattern used: MVC (MVP)
* ----------------------------------------------------------------
* GitHub repo: https://github.com/Davide-Milan/Chartpp
* ----------------------------------------------------------------
* Year: 2022
* ----------------------------------------------------------------
*/
#include "view.h"
#include <QApplication>
#include "model.h"
#include "view.h"
#include "controller.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setApplicationName(QString("Chart++"));
Model m;
View v;
Controller c;
c.setModel(&m);
c.setView(&v);
v.setController(&c);
v.setFixedSize(1000, 600);
v.show();
return a.exec();
}