-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCGTeaApp.cpp
executable file
·42 lines (37 loc) · 1.37 KB
/
CGTeaApp.cpp
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
//
// Created by rostam on 15.10.19.
//
#include "CGTeaApp.h"
#include "CGTeaFrame.h"
#include <wx/grid.h>
#include "CGTeaSidebar.h"
/*! \mainpage CGTea - A Brief Description.
* A mini-version of GTea written in C++ in which the view is based on wxWidget.
* The library part (Model) and the controllers need still a lot of improvements.
* For now, I am implementing the algorithms, reports, actions, ... based on the Java code.
* There are three main dependencies:
* - The Eigen library should be copied in the main directory.
* - wxWidget is also needed for the graphic-user interface. However, the library parts can be used without this library.
* - The boost library should be installed:
```
$ sudo apt-get install build-essentials libboost-all-dev libmetis-dev metis
```
* \image html image.png
* \section Extension
* \section Downloads
*/
bool CGTeaApp::OnInit()
{
auto *sizer = new wxBoxSizer(wxHORIZONTAL);
auto *frame = new CGTeaFrame("CGTea", wxPoint(100, 100), wxSize(1200, 600) );
auto *cgTeaSidebar = new CGTeaSidebar(frame, wxID_ANY);
drawPane = new BasicDrawPane( frame );
sizer->Add(cgTeaSidebar, 1, wxEXPAND | wxALL);
sizer->Add(drawPane, 1, wxEXPAND | wxALL);
frame->SetSizer(sizer);
frame->SetAutoLayout(true);
frame->SetIcon(wxIcon(wxT("gtea.xpm")));
frame->Show( true );
return true;
}
wxIMPLEMENT_APP(CGTeaApp);