mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
#ifndef _LC_MAINWINDOW_H_
|
|
#define _LC_MAINWINDOW_H_
|
|
|
|
#include "lc_basewindow.h"
|
|
#include "lc_array.h"
|
|
|
|
class Object;
|
|
class Camera;
|
|
class PiecePreview;
|
|
|
|
#define LC_MAX_RECENT_FILES 4
|
|
|
|
class lcMainWindow : public lcBaseWindow
|
|
{
|
|
public:
|
|
lcMainWindow();
|
|
~lcMainWindow();
|
|
|
|
void SetColorIndex(int ColorIndex);
|
|
void Close();
|
|
|
|
void AddRecentFile(const char* FileName);
|
|
void RemoveRecentFile(int FileIndex);
|
|
|
|
void SplitHorizontal();
|
|
void SplitVertical();
|
|
void RemoveView();
|
|
void ResetViews();
|
|
|
|
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(int CurrentTime, int TotalTime);
|
|
void UpdateAnimation(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 UpdatePerspective(View* view);
|
|
void UpdateCameraMenu(const lcArray<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;
|
|
};
|
|
|
|
extern class lcMainWindow* gMainWindow;
|
|
|
|
#endif // _LC_MAINWND_H_
|