From 2dc99214fa49c55c70cae3b5be8adf497385680e Mon Sep 17 00:00:00 2001 From: Rafael 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 . +*****************************************************************************/ + +#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 . +*****************************************************************************/ + +#ifndef EXPORTDIALOG_H +#define EXPORTDIALOG_H + +#include + +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 @@ + + + ExportDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 0 + 0 + + + + + + + + Format + + + + + + &JPEG/PNG format + + + + + + + GTA &Snapmatic format + + + + + + + + + + Resolution + + + + + + Default &Size + + + + + + + &Desktop Size + + + + + + + &Custom Size + + + + + + + + + Custom Size: + + + + + + + false + + + 1 + + + 3840 + + + 960 + + + + + + + x + + + + + + + false + + + 1 + + + 2160 + + + 536 + + + + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + + + + + + Qt::Vertical + + + + 0 + 0 + + + + + + + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + Export + + + + + + + Close + + + + + + + + + + + + + + + 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 \