2011-09-07 23:06:51 +02:00
|
|
|
#ifndef _MAINWND_H_
|
|
|
|
#define _MAINWND_H_
|
|
|
|
|
|
|
|
#include "basewnd.h"
|
2013-08-09 06:57:18 +02:00
|
|
|
#include "array.h"
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
class Object;
|
|
|
|
class Camera;
|
|
|
|
class PiecePreview;
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
#define LC_MAX_RECENT_FILES 4
|
|
|
|
|
|
|
|
class lcMainWindow : public lcBaseWindow
|
2011-09-07 23:06:51 +02:00
|
|
|
{
|
|
|
|
public:
|
2013-08-09 06:57:18 +02:00
|
|
|
lcMainWindow();
|
|
|
|
~lcMainWindow();
|
|
|
|
|
|
|
|
void SetColorIndex(int ColorIndex);
|
|
|
|
void Close();
|
|
|
|
|
|
|
|
void AddRecentFile(const char* FileName);
|
|
|
|
void RemoveRecentFile(int FileIndex);
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
void SplitHorizontal();
|
|
|
|
void SplitVertical();
|
|
|
|
void RemoveView();
|
|
|
|
void ResetViews();
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
void TogglePrintPreview();
|
|
|
|
void ToggleFullScreen();
|
|
|
|
|
|
|
|
void UpdateFocusObject(Object* Focus);
|
|
|
|
void UpdateSelectedObjects(int Flags, int SelectedCount, Object* Focus);
|
|
|
|
void UpdateAction(int NewAction);
|
|
|
|
void UpdatePaste(bool Enabled);
|
|
|
|
void UpdateTime(bool Animation, int CurrentTime, int TotalTime);
|
|
|
|
void UpdateAnimation(bool Animation, bool AddKeys);
|
|
|
|
void UpdateLockSnap(lcuint32 Snap);
|
|
|
|
void UpdateSnap();
|
|
|
|
void UpdateUndoRedo(const char* UndoText, const char* RedoText);
|
|
|
|
void UpdateTransformType(int NewType);
|
|
|
|
void UpdateCurrentCamera(int CameraIndex);
|
|
|
|
void UpdateCameraMenu(const PtrArray<Camera>& Cameras, Camera* CurrentCamera);
|
|
|
|
void UpdateCategories();
|
|
|
|
void UpdateTitle(const char* Title, bool Modified);
|
|
|
|
void UpdateModified(bool Modified);
|
|
|
|
void UpdateRecentFiles();
|
|
|
|
void UpdateShortcuts();
|
|
|
|
|
|
|
|
lcVector3 GetTransformAmount();
|
|
|
|
|
|
|
|
char mRecentFiles[LC_MAX_RECENT_FILES][LC_MAXPATH];
|
|
|
|
PiecePreview* mPreviewWidget;
|
|
|
|
int mColorIndex;
|
2011-09-07 23:06:51 +02:00
|
|
|
};
|
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
extern class lcMainWindow* gMainWindow;
|
|
|
|
|
2011-09-07 23:06:51 +02:00
|
|
|
#endif // _MAINWND_H_
|