mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Stub for clearProject()
This commit is contained in:
+10
-5
@@ -284,9 +284,12 @@ void MainWindow::updateStatusBar()
|
||||
// formulaLabel->setText(spreadsheet->currentFormula());
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an image paint.
|
||||
*/
|
||||
bool MainWindow::clearProject()
|
||||
{
|
||||
// TODO: implement (possibly preferably iteratively calling remove() methods on paints and mappings
|
||||
// once they will be made available).
|
||||
}
|
||||
|
||||
uid MainWindow::createImagePaint(uid paintId, QString uri, float x, float y)
|
||||
{
|
||||
// Cannot create image with already existing id.
|
||||
@@ -376,8 +379,8 @@ uid MainWindow::createTriangleTextureMapping(uid mappingId,
|
||||
// Return the id.
|
||||
return id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void MainWindow::windowModified()
|
||||
{
|
||||
setWindowModified(true);
|
||||
@@ -703,7 +706,9 @@ bool MainWindow::loadFile(const QString &fileName)
|
||||
return false;
|
||||
}
|
||||
|
||||
mappingManager->clearProject(); // FIXME: clearProject is not implemented!
|
||||
// Clear current project.
|
||||
clearProject();
|
||||
|
||||
ProjectReader reader(this);
|
||||
if (! reader.readFile(&file))
|
||||
{
|
||||
|
||||
+5
-6
@@ -68,12 +68,6 @@ private slots:
|
||||
void about();
|
||||
void updateStatusBar();
|
||||
|
||||
// CRUD.
|
||||
|
||||
/**
|
||||
* Create an image paint.
|
||||
*/
|
||||
|
||||
// Widget callbacks.
|
||||
void handlePaintItemSelectionChanged();
|
||||
void handleMappingItemSelectionChanged();
|
||||
@@ -88,6 +82,11 @@ private slots:
|
||||
public slots:
|
||||
|
||||
// CRUD.
|
||||
/**
|
||||
* Clears all mappings and paints.
|
||||
*/
|
||||
bool clearProject();
|
||||
|
||||
/**
|
||||
* Create an image paint.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user