leocad/common/lc_basewindow.h

118 lines
2.1 KiB
C
Raw Normal View History

2013-08-16 01:25:51 +00:00
#ifndef _LC_BASEWINDOW_H_
#define _LC_BASEWINDOW_H_
2011-09-07 21:06:51 +00:00
2013-08-09 04:57:18 +00:00
#include "lc_math.h"
2013-08-15 23:43:18 +00:00
#include "lc_array.h"
#include "lc_application.h"
#include "lc_model.h"
2013-08-09 04:57:18 +00:00
#include "lc_category.h"
#include "lc_shortcuts.h"
#include "image.h"
2011-09-07 21:06:51 +00:00
2013-08-09 04:57:18 +00: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_EDIT_GROUPS,
LC_DIALOG_PREFERENCES,
LC_DIALOG_CHECK_UPDATES,
LC_DIALOG_ABOUT
};
struct lcImageDialogOptions
{
2014-10-11 23:26:23 +00:00
QString FileName;
2013-08-09 04:57:18 +00:00
int Width;
int Height;
int Start;
int End;
};
struct lcHTMLDialogOptions
{
2014-10-12 17:34:18 +00:00
QString PathName;
2013-08-09 04:57:18 +00: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 21:44:57 +00:00
QString FileName;
QString POVRayPath;
QString LGEOPath;
2013-08-09 04:57:18 +00:00
bool Render;
};
struct lcPropertiesDialogOptions
{
lcModelProperties Properties;
2013-08-09 04:57:18 +00:00
bool SetDefault;
2014-10-10 23:53:08 +00:00
lcArray<lcPartsListEntry> PartsList;
2013-08-09 04:57:18 +00:00
};
2011-09-07 21:06:51 +00:00
2013-08-09 04:57:18 +00:00
struct lcArrayDialogOptions
{
int Counts[3];
lcVector3 Offsets[3];
lcVector3 Rotations[3];
};
struct lcEditGroupsDialogOptions
{
2014-11-10 00:06:11 +00: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 04:57:18 +00:00
};
struct lcSelectDialogOptions
{
2014-11-29 02:55:58 +00:00
lcArray<lcObject*> Objects;
2013-08-09 04:57:18 +00:00
};
struct lcPreferencesDialogOptions
{
lcPreferences Preferences;
2015-01-31 21:44:57 +00:00
QString DefaultAuthor;
QString ProjectsPath;
QString LibraryPath;
QString POVRayPath;
QString LGEOPath;
2013-08-09 04:57:18 +00:00
int CheckForUpdates;
int AASamples;
2013-08-15 23:43:18 +00:00
lcArray<lcLibraryCategory> Categories;
2013-08-09 04:57:18 +00:00
bool CategoriesModified;
bool CategoriesDefault;
lcKeyboardShortcuts KeyboardShortcuts;
2016-04-25 05:26:34 +00:00
bool KeyboardShortcutsModified;
bool KeyboardShortcutsDefault;
lcMouseShortcuts MouseShortcuts;
bool MouseShortcutsModified;
bool MouseShortcutsDefault;
2013-08-09 04:57:18 +00:00
};
2013-08-16 01:25:51 +00:00
#endif // _LC_BASEWINDOW_H_