From b53afc4e60e624af0de4659d5249cefd1d4afb8e Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Fri, 13 Jan 2006 23:59:52 +0000 Subject: [PATCH] first commit exporter dialog --- .../meshio/savemaskexporter.cpp | 57 ++++++++++ src/meshlabplugins/meshio/savemaskexporter.h | 56 ++++++++++ .../meshio/ui/savemaskexporter.ui | 100 ++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 src/meshlabplugins/meshio/savemaskexporter.cpp create mode 100644 src/meshlabplugins/meshio/savemaskexporter.h create mode 100644 src/meshlabplugins/meshio/ui/savemaskexporter.ui diff --git a/src/meshlabplugins/meshio/savemaskexporter.cpp b/src/meshlabplugins/meshio/savemaskexporter.cpp new file mode 100644 index 000000000..5d31254ef --- /dev/null +++ b/src/meshlabplugins/meshio/savemaskexporter.cpp @@ -0,0 +1,57 @@ +/**************************************************************************** +* VCGLib o o * +* Visual and Computer Graphics Library o o * +* _ O _ * +* Copyright(C) 2004 \/)\/ * +* Visual Computing Lab /\/| * +* ISTI - Italian National Research Council | * +* \ * +* All rights reserved. * +* * +* 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 2 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 (http://www.gnu.org/licenses/gpl.txt) * +* for more details. * +* * +****************************************************************************/ + +/**************************************************************************** + History + + $Log$ + Revision 1.1 2006/01/13 23:59:51 fmazzant + first commit exporter dialog + + + ****************************************************************************/ + +#include "savemaskexporter.h" + +SaveMaskExporterDialog::SaveMaskExporterDialog(QWidget *parent) : QDialog(parent) +{ + SaveMaskExporterDialog::ui.setupUi(this); + connect(ui.okButton, SIGNAL(clicked()), this, SLOT(SlotOkButton())); + connect(ui.cancelButton, SIGNAL(clicked()), this, SLOT(SlotCancelButton())); +} + +SaveMaskExporterDialog::SaveMaskExporterDialog(QWidget *parent, int &mask) : QDialog(parent) +{ + SaveMaskExporterDialog::ui.setupUi(this); + connect(ui.okButton, SIGNAL(clicked()), this, SLOT(SlotOkButton())); + connect(ui.cancelButton, SIGNAL(clicked()), this, SLOT(SlotCancelButton())); +} + +//slot +void SaveMaskExporterDialog::SlotOkButton() +{ +} + +void SaveMaskExporterDialog::SlotCancelButton() +{ +} \ No newline at end of file diff --git a/src/meshlabplugins/meshio/savemaskexporter.h b/src/meshlabplugins/meshio/savemaskexporter.h new file mode 100644 index 000000000..f45520dd5 --- /dev/null +++ b/src/meshlabplugins/meshio/savemaskexporter.h @@ -0,0 +1,56 @@ +/**************************************************************************** +* VCGLib o o * +* Visual and Computer Graphics Library o o * +* _ O _ * +* Copyright(C) 2004 \/)\/ * +* Visual Computing Lab /\/| * +* ISTI - Italian National Research Council | * +* \ * +* All rights reserved. * +* * +* 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 2 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 (http://www.gnu.org/licenses/gpl.txt) * +* for more details. * +* * +****************************************************************************/ + +/**************************************************************************** + History + + $Log$ + Revision 1.1 2006/01/13 23:59:51 fmazzant + first commit exporter dialog + + + ****************************************************************************/ + +#ifndef __VCGLIB_SAVEMASK_EXPORT +#define __VCGLIB_SAVEMASK_EXPORT + +#include "ui_savemaskexporter.h" + +class SaveMaskExporterDialog : public QDialog +{ + Q_OBJECT +public: + SaveMaskExporterDialog(QWidget *parent); + SaveMaskExporterDialog(QWidget *parent,int &mask); + +private slots: + void SlotOkButton(); + void SlotCancelButton(); + +private: + Ui::MaskExporterDialog ui; + +};//end class + + +#endif \ No newline at end of file diff --git a/src/meshlabplugins/meshio/ui/savemaskexporter.ui b/src/meshlabplugins/meshio/ui/savemaskexporter.ui new file mode 100644 index 000000000..ed32d68d6 --- /dev/null +++ b/src/meshlabplugins/meshio/ui/savemaskexporter.ui @@ -0,0 +1,100 @@ + + + + + MaskExporterDialog + + + + 0 + 0 + 400 + 300 + + + + Dialog + + + + + 20 + 250 + 351 + 33 + + + + + 0 + + + 6 + + + + + Qt::Horizontal + + + + 131 + 31 + + + + + + + + OK + + + + + + + Cancel + + + + + + + + + + + okButton + clicked() + MaskExporterDialog + accept() + + + 278 + 253 + + + 96 + 254 + + + + + cancelButton + clicked() + MaskExporterDialog + reject() + + + 369 + 253 + + + 179 + 282 + + + + +