summaryrefslogtreecommitdiff
path: root/common/mainwnd.h
diff options
context:
space:
mode:
authorleo2001-01-07 15:23:38 +0000
committerleo2001-01-07 15:23:38 +0000
commit1a08ac30811e885c3ae28f9a04c29c600e8947b2 (patch)
tree7c10440ebc2e00273ea6c0b857f4d38c3737c322 /common/mainwnd.h
parent47cc86e89065f1691296e1754ccecda35e3a41d2 (diff)
New class for the main window
git-svn-id: http://svn.leocad.org/trunk@219 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/mainwnd.h')
-rw-r--r--common/mainwnd.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/mainwnd.h b/common/mainwnd.h
new file mode 100644
index 0000000..c6f0540
--- /dev/null
+++ b/common/mainwnd.h
@@ -0,0 +1,34 @@
+#ifndef _MAINWND_H_
+#define _MAINWND_H_
+
+#include "str.h"
+#include "basewnd.h"
+
+#define LC_MRU_MAX 4
+
+typedef enum
+{
+ LC_MAINWND_RECENT1,
+ LC_MAINWND_RECENT2,
+ LC_MAINWND_RECENT3,
+ LC_MAINWND_RECENT4,
+ LC_MAINWND_NUM_COMMANDS
+} LC_MAINWND_COMMANDS;
+
+class MainWnd : public BaseWnd
+{
+ public:
+ MainWnd ();
+ virtual ~MainWnd ();
+
+ void UpdateMRU ();
+ void AddToMRU (const char *filename);
+ void RemoveFromMRU (int index);
+ const char* GetMRU (int index) const
+ { return m_strMRU[index]; }
+
+ protected:
+ String m_strMRU[LC_MRU_MAX];
+};
+
+#endif // _MAINWND_H_