mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-16 21:30:31 +02:00
start of test writing
This commit is contained in:
@@ -10,14 +10,18 @@ enum class LineStyle {
|
|||||||
SOLID_LINE,
|
SOLID_LINE,
|
||||||
DOTTED_LINE
|
DOTTED_LINE
|
||||||
};
|
};
|
||||||
|
|
||||||
IntelliToolsettings();
|
IntelliToolsettings();
|
||||||
virtual ~IntelliToolsettings();
|
virtual ~IntelliToolsettings();
|
||||||
|
|
||||||
int getLineWidth();
|
int getLineWidth();
|
||||||
void setLineWidth();
|
void setLineWidth();
|
||||||
void setLineWidth(int LineWidth);
|
void setLineWidth(int LineWidth);
|
||||||
|
|
||||||
int getInnerAlpha();
|
int getInnerAlpha();
|
||||||
void setInnerAlpha();
|
void setInnerAlpha();
|
||||||
void setInnerAlpha(int innerAlpha);
|
void setInnerAlpha(int innerAlpha);
|
||||||
|
|
||||||
LineStyle getLinestyle();
|
LineStyle getLinestyle();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -1,10 +1,32 @@
|
|||||||
#include <QtTest>
|
#include <QtTest>
|
||||||
|
|
||||||
// add necessary includes here
|
// add necessary includes here
|
||||||
|
|
||||||
|
|
||||||
|
#include "GUI/IntelliPhotoGui.h"
|
||||||
|
#include "Image/IntelliImage.h"
|
||||||
|
#include "Image/IntelliRasterImage.h"
|
||||||
|
#include "Image/IntelliShapedImage.h"
|
||||||
|
#include "IntelliHelper/IntelliColorPicker.h"
|
||||||
|
#include "IntelliHelper/IntelliRenderSettings.h"
|
||||||
|
#include "IntelliHelper/IntelliToolsettings.h"
|
||||||
|
#include "IntelliHelper/IntelliTriangulation.h"
|
||||||
|
#include "Layer/PaintingArea.h"
|
||||||
|
#include "Tool/IntelliTool.h"
|
||||||
|
#include "Tool/IntelliToolCircle.h"
|
||||||
|
#include "Tool/IntelliToolFloodFill.h"
|
||||||
|
#include "Tool/IntelliToolLine.h"
|
||||||
|
#include "Tool/IntelliToolPen.h"
|
||||||
|
#include "Tool/IntelliToolPlain.h"
|
||||||
|
#include "Tool/IntelliToolPolygon.h"
|
||||||
|
#include "Tool/IntelliToolRectangle.h"
|
||||||
|
|
||||||
class UnitTest : public QObject
|
class UnitTest : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
private:
|
||||||
|
PaintingArea* area;
|
||||||
|
IntelliPhotoGui* gui;
|
||||||
|
QImage* image;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
UnitTest();
|
UnitTest();
|
||||||
@@ -15,6 +37,8 @@ private slots:
|
|||||||
void cleanupTestCase();
|
void cleanupTestCase();
|
||||||
void test_case1();
|
void test_case1();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
UnitTest::UnitTest()
|
UnitTest::UnitTest()
|
||||||
|
|||||||
Reference in New Issue
Block a user