mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
first commit exporter dialog
This commit is contained in:
parent
e4cd2fa2ed
commit
b53afc4e60
57
src/meshlabplugins/meshio/savemaskexporter.cpp
Normal file
57
src/meshlabplugins/meshio/savemaskexporter.cpp
Normal file
@ -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()
|
||||
{
|
||||
}
|
||||
56
src/meshlabplugins/meshio/savemaskexporter.h
Normal file
56
src/meshlabplugins/meshio/savemaskexporter.h
Normal file
@ -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
|
||||
100
src/meshlabplugins/meshio/ui/savemaskexporter.ui
Normal file
100
src/meshlabplugins/meshio/ui/savemaskexporter.ui
Normal file
@ -0,0 +1,100 @@
|
||||
<ui version="4.0" >
|
||||
<author></author>
|
||||
<comment></comment>
|
||||
<exportmacro></exportmacro>
|
||||
<class>MaskExporterDialog</class>
|
||||
<widget class="QDialog" name="MaskExporterDialog" >
|
||||
<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>
|
||||
<widget class="QWidget" name="layoutWidget" >
|
||||
<property name="geometry" >
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>250</y>
|
||||
<width>351</width>
|
||||
<height>33</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QHBoxLayout" >
|
||||
<property name="margin" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="spacing" >
|
||||
<number>6</number>
|
||||
</property>
|
||||
<item>
|
||||
<spacer>
|
||||
<property name="orientation" >
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" >
|
||||
<size>
|
||||
<width>131</width>
|
||||
<height>31</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="okButton" >
|
||||
<property name="text" >
|
||||
<string>OK</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="cancelButton" >
|
||||
<property name="text" >
|
||||
<string>Cancel</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<pixmapfunction></pixmapfunction>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>okButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>MaskExporterDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>278</x>
|
||||
<y>253</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>96</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>cancelButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>MaskExporterDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>369</x>
|
||||
<y>253</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>179</x>
|
||||
<y>282</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
Loading…
x
Reference in New Issue
Block a user