This commit is contained in:
Chenwenxuan
2024-03-06 14:54:30 +08:00
commit edac2715f0
1525 changed files with 809982 additions and 0 deletions

1105
test/lc_simpletests.cpp Normal file

File diff suppressed because it is too large Load Diff

46
test/lc_simpletests.h Normal file
View File

@@ -0,0 +1,46 @@
#ifndef LC_SIMPLETESTS_H
#define LC_SIMPLETESTS_H
#include <QObject>
class QWidget;
class RS_EntityContainer;
class LC_SimpleTests:public QObject
{
Q_OBJECT
public:
LC_SimpleTests(QWidget* parent);
~LC_SimpleTests()=default;
public slots:
/** dumps entities to file */
void slotTestDumpEntities(RS_EntityContainer* d = nullptr);
/** dumps undo info to stdout */
void slotTestDumpUndo();
/** updates all inserts */
void slotTestUpdateInserts();
/** draws some random lines */
void slotTestDrawFreehand();
/** inserts a test block */
void slotTestInsertBlock();
/** inserts a test ellipse */
void slotTestInsertEllipse();
/** inserts a test mtext */
void slotTestInsertMText();
/** inserts a test text */
void slotTestInsertText();
/** inserts a test image */
void slotTestInsertImage();
/** unicode table */
void slotTestUnicode();
/** math experimental */
void slotTestMath01();
/** resizes window to 640x480 for screen shots */
void slotTestResize640();
/** resizes window to 640x480 for screen shots */
void slotTestResize800();
/** resizes window to 640x480 for screen shots */
void slotTestResize1024();
};
#endif // LC_SIMPLETESTS_H