mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-17 18:14:38 +00:00
added tools -> set mask obj file
This commit is contained in:
parent
5acfeb1706
commit
65ad785fd9
@ -23,6 +23,9 @@
|
||||
/****************************************************************************
|
||||
History
|
||||
$Log$
|
||||
Revision 1.44 2005/12/09 10:43:04 fmazzant
|
||||
added tools -> set mask obj file
|
||||
|
||||
Revision 1.43 2005/12/09 00:26:25 buzzelli
|
||||
io importing mechanism adapted in order to be fully transparent towards the user
|
||||
|
||||
@ -117,6 +120,7 @@ private slots:
|
||||
void updateMenus();
|
||||
///////////Slot Menu Preferences /////////////////
|
||||
void setCustomize();
|
||||
void setSaveMaskObj();
|
||||
///////////Slot Menu Help ////////////////////////
|
||||
void about();
|
||||
void aboutPlugins();
|
||||
@ -208,6 +212,7 @@ private:
|
||||
QAction *closeAllAct;
|
||||
///////////Action Menu Preferences /////////////////
|
||||
QAction *setCustomizeAct;
|
||||
QAction *setSaveMaskObjAct;
|
||||
///////////Action Menu Help ////////////////////////
|
||||
QAction *aboutAct;
|
||||
QAction *aboutPluginsAct;
|
||||
|
||||
@ -24,6 +24,9 @@
|
||||
History
|
||||
|
||||
$Log$
|
||||
Revision 1.24 2005/12/09 10:43:04 fmazzant
|
||||
added tools -> set mask obj file
|
||||
|
||||
Revision 1.23 2005/12/09 03:50:40 davide_portelli
|
||||
A little change
|
||||
|
||||
@ -446,6 +449,9 @@ void MainWindow::createActions()
|
||||
setCustomizeAct = new QAction(tr("&Options..."),this);
|
||||
connect(setCustomizeAct, SIGNAL(triggered()), this, SLOT(setCustomize()));
|
||||
|
||||
setSaveMaskObjAct = new QAction(tr("&Options Save Obj"),this);
|
||||
connect(setSaveMaskObjAct, SIGNAL(triggered()), this, SLOT(setSaveMaskObj()));
|
||||
|
||||
//////////////Action Menu About ////////////////////////////////////////////////////////////
|
||||
aboutAct = new QAction(tr("&About"), this);
|
||||
connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
|
||||
@ -533,6 +539,7 @@ void MainWindow::createMenus()
|
||||
//////////////////// Menu Preferences /////////////////////////////////////////////////////////////
|
||||
preferencesMenu=menuBar()->addMenu(tr("&Tools"));
|
||||
preferencesMenu->addAction(setCustomizeAct);
|
||||
preferencesMenu->addAction(setSaveMaskObjAct);
|
||||
|
||||
//////////////////// Menu Help ////////////////////////////////////////////////////////////////
|
||||
helpMenu = menuBar()->addMenu(tr("&Help"));
|
||||
|
||||
@ -24,6 +24,9 @@
|
||||
History
|
||||
|
||||
$Log$
|
||||
Revision 1.31 2005/12/09 10:43:04 fmazzant
|
||||
added tools -> set mask obj file
|
||||
|
||||
Revision 1.30 2005/12/09 03:50:40 davide_portelli
|
||||
A little change
|
||||
|
||||
@ -682,14 +685,14 @@ void MainWindow::openRecentFile()
|
||||
|
||||
bool MainWindow::saveAs()
|
||||
{
|
||||
//QString initialPath = QDir::currentPath() + "/untitled.png";
|
||||
|
||||
QString fileName = QFileDialog::getSaveFileName(new QWidget(),tr("Save file"),".","Save files (*.obj *.ply)");//QFileDialog::getSaveFileName(this, tr("Save As"), initialPath);
|
||||
QString fileName = QFileDialog::getSaveFileName(new QWidget(),tr("Save file"),".","Save files (*.obj *.ply)");
|
||||
|
||||
if (fileName.isEmpty()) {
|
||||
if (fileName.isEmpty())
|
||||
{
|
||||
return false;
|
||||
} else {
|
||||
// return paintArea->saveImage(fileName, "png");
|
||||
}
|
||||
else
|
||||
{
|
||||
qb->show();
|
||||
bool ret = false;
|
||||
ret = this->GLA()->mm->Save(fileName.toStdString().c_str(),QCallBack);
|
||||
@ -758,8 +761,12 @@ void MainWindow::setCustomize()
|
||||
cs.lColor=dialog.getLogAreaColor();
|
||||
|
||||
GLA()->setCustomSetting(cs);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::setSaveMaskObj()
|
||||
{
|
||||
QMessageBox::warning(new QWidget(),"","");
|
||||
}
|
||||
|
||||
void MainWindow::renderBbox() { GLA()->setDrawMode(GLW::DMBox ); }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user