leocad/common/lc_basewindow.h

115 lines
2 KiB
C
Raw Normal View History

2013-08-16 03:25:51 +02:00
#ifndef _LC_BASEWINDOW_H_
#define _LC_BASEWINDOW_H_
2011-09-07 23:06:51 +02:00
2013-08-09 06:57:18 +02:00
#include "lc_math.h"
2013-08-16 01:43:18 +02:00
#include "lc_array.h"
#include "lc_application.h"
#include "lc_model.h"
2013-08-09 06:57:18 +02:00
#include "lc_category.h"
#include "lc_shortcuts.h"
#include "image.h"
2011-09-07 23:06:51 +02:00
2013-08-09 06:57:18 +02:00
enum LC_DIALOG_TYPE
{
LC_DIALOG_SAVE_IMAGE,
LC_DIALOG_EXPORT_HTML,
LC_DIALOG_EXPORT_POVRAY,
LC_DIALOG_PROPERTIES,
LC_DIALOG_FIND,
LC_DIALOG_SELECT_BY_NAME,
LC_DIALOG_MINIFIG,
LC_DIALOG_PIECE_ARRAY,
LC_DIALOG_PIECE_GROUP,
LC_DIALOG_EDIT_GROUPS,
LC_DIALOG_PREFERENCES,
LC_DIALOG_CHECK_UPDATES,
LC_DIALOG_ABOUT
};
struct lcImageDialogOptions
{
2014-10-12 01:26:23 +02:00
QString FileName;
2013-08-09 06:57:18 +02:00
int Width;
int Height;
int Start;
int End;
};
struct lcHTMLDialogOptions
{
2014-10-12 19:34:18 +02:00
QString PathName;
2013-08-09 06:57:18 +02:00
LC_IMAGE_FORMAT ImageFormat;
bool TransparentImages;
bool SinglePage;
bool IndexPage;
int StepImagesWidth;
int StepImagesHeight;
bool HighlightNewParts;
bool PartsListStep;
bool PartsListEnd;
bool PartsListImages;
int PartImagesColor;
int PartImagesWidth;
int PartImagesHeight;
};
struct lcPOVRayDialogOptions
{
2015-01-31 22:44:57 +01:00
QString FileName;
QString POVRayPath;
QString LGEOPath;
2013-08-09 06:57:18 +02:00
bool Render;
};
struct lcPropertiesDialogOptions
{
lcModelProperties Properties;
2013-08-09 06:57:18 +02:00
bool SetDefault;
2014-10-11 01:53:08 +02:00
lcArray<lcPartsListEntry> PartsList;
2013-08-09 06:57:18 +02:00
};
2011-09-07 23:06:51 +02:00
2013-08-09 06:57:18 +02:00
struct lcArrayDialogOptions
{
int Counts[3];
lcVector3 Offsets[3];
lcVector3 Rotations[3];
};
struct lcEditGroupsDialogOptions
{
2014-11-10 01:06:11 +01:00
QMap<lcPiece*, lcGroup*> PieceParents;
QMap<lcGroup*, lcGroup*> GroupParents;
QList<lcGroup*> NewGroups;
//QList<lcGroup*> DeletedGroups; // todo: support deleting groups in the edit groups dialog
2013-08-09 06:57:18 +02:00
};
struct lcSelectDialogOptions
{
2014-11-29 03:55:58 +01:00
lcArray<lcObject*> Objects;
2013-08-09 06:57:18 +02:00
};
struct lcPreferencesDialogOptions
{
lcPreferences Preferences;
2015-01-31 22:44:57 +01:00
QString DefaultAuthor;
QString ProjectsPath;
QString LibraryPath;
QString POVRayPath;
QString LGEOPath;
2013-08-09 06:57:18 +02:00
int CheckForUpdates;
int AASamples;
2013-08-16 01:43:18 +02:00
lcArray<lcLibraryCategory> Categories;
2013-08-09 06:57:18 +02:00
bool CategoriesModified;
bool CategoriesDefault;
lcKeyboardShortcuts KeyboardShortcuts;
bool ShortcutsModified;
bool ShortcutsDefault;
};
2013-08-16 03:25:51 +02:00
#endif // _LC_BASEWINDOW_H_