From 2dc99214fa49c55c70cae3b5be8adf497385680e Mon Sep 17 00:00:00 2001 From: Rafael <Syping@users.noreply.github.com> Date: Wed, 20 Apr 2016 12:04:22 +0200 Subject: [PATCH] unfinished ExportDialog added --- ExportDialog.cpp | 37 +++++++++ ExportDialog.h | 40 +++++++++ ExportDialog.ui | 208 +++++++++++++++++++++++++++++++++++++++++++++++ gta5sync.pro | 3 + 4 files changed, 288 insertions(+) create mode 100755 ExportDialog.cpp create mode 100755 ExportDialog.h create mode 100755 ExportDialog.ui diff --git a/ExportDialog.cpp b/ExportDialog.cpp new file mode 100755 index 0000000..bd378ab --- /dev/null +++ b/ExportDialog.cpp @@ -0,0 +1,37 @@ +/***************************************************************************** +* gta5sync GRAND THEFT AUTO V SYNC +* Copyright (C) 2016 Syping +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*****************************************************************************/ + +#include "ExportDialog.h" +#include "ui_ExportDialog.h" + +ExportDialog::ExportDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::ExportDialog) +{ + ui->setupUi(this); +} + +ExportDialog::~ExportDialog() +{ + delete ui; +} + +void ExportDialog::on_cmdSnapmaticClose_clicked() +{ + this->close(); +} diff --git a/ExportDialog.h b/ExportDialog.h new file mode 100755 index 0000000..d5fc4a7 --- /dev/null +++ b/ExportDialog.h @@ -0,0 +1,40 @@ +/***************************************************************************** +* gta5sync GRAND THEFT AUTO V SYNC +* Copyright (C) 2016 Syping +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*****************************************************************************/ + +#ifndef EXPORTDIALOG_H +#define EXPORTDIALOG_H + +#include <QDialog> + +namespace Ui { +class ExportDialog; +} + +class ExportDialog : public QDialog +{ + Q_OBJECT + +public: + explicit ExportDialog(QWidget *parent = 0); + ~ExportDialog(); + +private: + Ui::ExportDialog *ui; +}; + +#endif // EXPORTDIALOG_H diff --git a/ExportDialog.ui b/ExportDialog.ui new file mode 100755 index 0000000..466e0e0 --- /dev/null +++ b/ExportDialog.ui @@ -0,0 +1,208 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>ExportDialog</class> + <widget class="QDialog" name="ExportDialog"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>400</width> + <height>300</height> + </rect> + </property> + <property name="windowTitle"> + <string>Dialog</string> + </property> + <layout class="QVBoxLayout" name="vlExport"> + <property name="leftMargin"> + <number>0</number> + </property> + <property name="topMargin"> + <number>0</number> + </property> + <property name="rightMargin"> + <number>0</number> + </property> + <property name="bottomMargin"> + <number>0</number> + </property> + <item> + <widget class="QStackedWidget" name="swExport"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> + </property> + <widget class="QWidget" name="pageSnapmatic"> + <layout class="QVBoxLayout" name="vlSnapmatic"> + <item> + <widget class="QGroupBox" name="gbSnapmaticFormat"> + <property name="title"> + <string>Format</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QRadioButton" name="rbSystemPicture"> + <property name="text"> + <string>&JPEG/PNG format</string> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="rbSnapmaticPicture"> + <property name="text"> + <string>GTA &Snapmatic format</string> + </property> + </widget> + </item> + </layout> + </widget> + </item> + <item> + <widget class="QGroupBox" name="gbSnapmaticResolution"> + <property name="title"> + <string>Resolution</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QRadioButton" name="rbSnapmaticDefaultSize"> + <property name="text"> + <string>Default &Size</string> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="rbSnapmaticDesktopSize"> + <property name="text"> + <string>&Desktop Size</string> + </property> + </widget> + </item> + <item> + <widget class="QRadioButton" name="rbSnapmaticCustomSize"> + <property name="text"> + <string>&Custom Size</string> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="hlSnapmaticResolution"> + <item> + <widget class="QLabel" name="labSnapmaticResolutionSize"> + <property name="text"> + <string>Custom Size:</string> + </property> + </widget> + </item> + <item> + <widget class="QSpinBox" name="sbSnapmaticResoulutionWidth"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>3840</number> + </property> + <property name="value"> + <number>960</number> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="labSnapmaticResolutionSizeX"> + <property name="text"> + <string>x</string> + </property> + </widget> + </item> + <item> + <widget class="QSpinBox" name="sbSnapmaticResoulutionHeight"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="minimum"> + <number>1</number> + </property> + <property name="maximum"> + <number>2160</number> + </property> + <property name="value"> + <number>536</number> + </property> + </widget> + </item> + <item> + <spacer name="hsSnapmaticResolution"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + </item> + <item> + <spacer name="vsSnapmatic"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="hlSnapmaticButtons"> + <item> + <spacer name="hsSnapmaticButtons"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>0</width> + <height>0</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="cmdSnapmaticExport"> + <property name="text"> + <string>Export</string> + </property> + </widget> + </item> + <item> + <widget class="QPushButton" name="cmdSnapmaticClose"> + <property name="text"> + <string>Close</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="pageSavegame"/> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> diff --git a/gta5sync.pro b/gta5sync.pro index 1948c81..f07fd11 100755 --- a/gta5sync.pro +++ b/gta5sync.pro @@ -29,6 +29,7 @@ SOURCES += main.cpp \ AppEnv.cpp \ CrewDatabase.cpp \ DatabaseThread.cpp \ + ExportDialog.cpp \ ExportThread.cpp \ IconLoader.cpp \ OptionsDialog.cpp \ @@ -58,6 +59,7 @@ HEADERS += \ config.h \ CrewDatabase.h \ DatabaseThread.h \ + ExportDialog.h \ ExportThread.h \ IconLoader.h \ OptionsDialog.h \ @@ -83,6 +85,7 @@ HEADERS += \ FORMS += \ AboutDialog.ui \ + ExportDialog.ui \ OptionsDialog.ui \ PictureDialog.ui \ ProfileInterface.ui \