mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-16 12:39:00 +02:00
some progress in facade
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
#include "Facade.h"
|
||||
#include <iostream>
|
||||
|
||||
Facade::Facade(MappingManager *manager, MainWindow *window) :
|
||||
_manager(manager),
|
||||
@@ -28,6 +29,7 @@ Facade::Facade(MappingManager *manager, MainWindow *window) :
|
||||
|
||||
bool Facade::clearProject()
|
||||
{
|
||||
std::cout << "TODO: Facade::clearProject" << std::endl;
|
||||
}
|
||||
|
||||
bool Facade::createImagePaint(const char *paint_id, const char *uri)
|
||||
|
||||
@@ -175,6 +175,8 @@ void MainWindow::import()
|
||||
|
||||
void MainWindow::addQuad()
|
||||
{
|
||||
// FIXME: crashes if there is no current paint id. (if no paint exists)
|
||||
|
||||
// Create default quad.
|
||||
|
||||
// Retrieve current paint (as texture).
|
||||
@@ -196,6 +198,8 @@ void MainWindow::addQuad()
|
||||
|
||||
void MainWindow::addTriangle()
|
||||
{
|
||||
// FIXME: crashes if there is no current paint id. (if no paint exists)
|
||||
|
||||
// Create default quad.
|
||||
|
||||
// Retrieve current paint (as texture).
|
||||
@@ -668,7 +672,8 @@ void MainWindow::addMappingItem(int mappingId)
|
||||
|
||||
void MainWindow::clearWindow()
|
||||
{
|
||||
// TODO: implement clearWindow()
|
||||
// TODO: implement Facade::clearProject()
|
||||
this->_facade->clearProject();
|
||||
}
|
||||
|
||||
QString MainWindow::strippedName(const QString &fullFileName)
|
||||
|
||||
4
Shape.h
4
Shape.h
@@ -27,11 +27,10 @@
|
||||
#include <QPointF>
|
||||
#include <QMetaType>
|
||||
#include <iostream>
|
||||
|
||||
/**
|
||||
* Point (or vertex) on the 2-D canvas.
|
||||
*/
|
||||
|
||||
|
||||
Q_DECLARE_METATYPE (qreal)
|
||||
|
||||
class Point: public QObject, public QPointF
|
||||
@@ -57,7 +56,6 @@ public slots:
|
||||
QPointF::setY(y);
|
||||
emit yChanged();
|
||||
}
|
||||
|
||||
};
|
||||
/**
|
||||
* Series of vertices. (points)
|
||||
|
||||
Reference in New Issue
Block a user