2013-08-16 03:25:51 +02:00
|
|
|
#ifndef _LC_MAINWINDOW_H_
|
|
|
|
#define _LC_MAINWINDOW_H_
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2013-08-16 03:25:51 +02:00
|
|
|
#include "lc_basewindow.h"
|
2013-08-16 01:43:18 +02:00
|
|
|
#include "lc_array.h"
|
2011-09-07 23:06:51 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
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);
|
2014-01-30 04:13:34 +01:00
|
|
|
void UpdateTime(int CurrentTime, int TotalTime);
|
|
|
|
void UpdateAnimation(bool AddKeys);
|
2013-08-09 06:57:18 +02:00
|
|
|
void UpdateLockSnap(lcuint32 Snap);
|
|
|
|
void UpdateSnap();
|
|
|
|
void UpdateUndoRedo(const char* UndoText, const char* RedoText);
|
|
|
|
void UpdateTransformType(int NewType);
|
|
|
|
void UpdateCurrentCamera(int CameraIndex);
|
2013-12-17 03:43:16 +01:00
|
|
|
void UpdatePerspective(View* view);
|
2013-08-16 01:43:18 +02:00
|
|
|
void UpdateCameraMenu(const lcArray<Camera*>& Cameras, Camera* CurrentCamera);
|
2013-08-09 06:57:18 +02:00
|
|
|
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;
|
|
|
|
|
2013-08-16 03:20:51 +02:00
|
|
|
#endif // _LC_MAINWND_H_
|