From 96cbc7b2d8a037bebe79cfe16aa0dae2a1da4535 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 20 Jun 2013 17:09:50 +0300 Subject: [PATCH] First commit for project Valentina. --- Valentina.pro | 20 ++++ main.cpp | 11 ++ mainwindow.cpp | 22 ++++ mainwindow.h | 22 ++++ mainwindow.ui | 316 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 391 insertions(+) create mode 100644 Valentina.pro create mode 100644 main.cpp create mode 100644 mainwindow.cpp create mode 100644 mainwindow.h create mode 100644 mainwindow.ui diff --git a/Valentina.pro b/Valentina.pro new file mode 100644 index 000000000..620921789 --- /dev/null +++ b/Valentina.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2013-06-18T12:36:43 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = Valentina +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui diff --git a/main.cpp b/main.cpp new file mode 100644 index 000000000..9e2d83c83 --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/mainwindow.cpp b/mainwindow.cpp new file mode 100644 index 000000000..39c3d43de --- /dev/null +++ b/mainwindow.cpp @@ -0,0 +1,22 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +#include + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); + QStringList list; + list << "28"<<"30"<<"32"<<"34"<<"36"<<"38"<<"40"<<"42"<<"44"<<"46"<<"48"<<"50" << "52" << "54" << "56"; + QComboBox* comboBoxSize = new QComboBox; + comboBoxSize ->clear(); + comboBoxSize->addItems(list); + ui->toolBarOption->addWidget(comboBoxSize); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/mainwindow.h b/mainwindow.h new file mode 100644 index 000000000..112fda1c4 --- /dev/null +++ b/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/mainwindow.ui b/mainwindow.ui new file mode 100644 index 000000000..d9f56532d --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,316 @@ + + + MainWindow + + + + 0 + 0 + 1000 + 700 + + + + Valentina + + + + + + + 0 + + + + + 0 + 0 + 117 + 111 + + + + Точка + + + + + + PushButton + + + buttonGroup + + + + + + + PushButton + + + buttonGroup + + + + + + + PushButton + + + buttonGroup + + + + + + + + + 0 + 0 + 117 + 111 + + + + Лінія + + + + + + PushButton + + + buttonGroup_2 + + + + + + + PushButton + + + buttonGroup_2 + + + + + + + PushButton + + + buttonGroup_2 + + + + + + + + + 0 + 0 + 117 + 73 + + + + Сплайн + + + + + + PushButton + + + + + + + + + 0 + 0 + 117 + 73 + + + + Дуга + + + + + + PushButton + + + + + + + + + + + + 2 + 0 + + + + + + + + + + 0 + 0 + 1000 + 25 + + + + + + TopToolBarArea + + + false + + + + + + + + + + toolBar + + + TopToolBarArea + + + false + + + + + + + toolBar_2 + + + TopToolBarArea + + + false + + + + + toolBar_3 + + + BottomToolBarArea + + + true + + + + + + + + + + Новий + + + Створити нове лекало + + + + + + + + + + Відкрити + + + Відкрити файл з лекалом + + + + + + + + + + Зберегти + + + Зберегти лекало + + + + + + + + + + Зберегти як + + + Зберегти ще не збережене лекало + + + + + true + + + Креслення + + + Режим креслення + + + + + Деталі + + + Режим деталі + + + + + + + + + + false + + + + + false + + + +