summaryrefslogtreecommitdiff
path: root/common/mainwnd.h
blob: c6f0540fd225eb4ccc90d1e2cb01332d91d7dd70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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_