-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
executable file
·39 lines (29 loc) · 1008 Bytes
/
main.cpp
File metadata and controls
executable file
·39 lines (29 loc) · 1008 Bytes
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
#include "mainwindow.h"
#include "contentview.h"
#include "axtoolbar.h"
#include "axmenubar.h"
#include <QApplication>
#include <QWidget>
#include <QPalette>
#include <QMenuBar>
#include <QDebug>
#include <QIcon>
// Created by Marcel Cholodecki on 2024.12.24
int main(int argc, char *argv[])
{
QApplication mainApp(argc, argv);
MainWindow* mainWindow = new MainWindow();
mainWindow->setWindowTitle("AX Plotter");
mainWindow->setWindowIcon(QIcon("AXPlotter.ico"));
ContentView* contentView = new ContentView();
mainWindow->setCentralWidget(contentView);
AXMenuBar* menubar = new AXMenuBar(contentView);
mainWindow->setMenuBar(menubar);
AXToolBar* toolbar = new AXToolBar(contentView);
mainWindow->addToolBar(toolbar);
// Disabling the visibility of the toolbar until the general UI is figured out
toolbar->setVisible(false);
mainWindow->show();
mainWindow->resize(640, 480);
return mainApp.exec();
}