aboutsummaryrefslogtreecommitdiff
path: root/CPP/7zip/UI/FileManager/LangPage.h
blob: e37ba0586dcadec1e3999fec2a2f2d6395abb5d3 (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
35
36
// LangPage.h
 
#ifndef ZIP7_INC_LANG_PAGE_H
#define ZIP7_INC_LANG_PAGE_H

#include "../../../Windows/Control/PropertyPage.h"
#include "../../../Windows/Control/ComboBox.h"

struct CLangInfo
{
  unsigned NumLines;
  UString Name;
  UStringVector Comments;
  UStringVector MissingLines;
  UStringVector ExtraLines;
};

class CLangPage: public NWindows::NControl::CPropertyPage
{
  NWindows::NControl::CComboBox _langCombo;
  CObjectVector<CLangInfo> _langs;
  unsigned NumLangLines_EN;
  bool _needSave;
  
  void ShowLangInfo();
public:
  bool LangWasChanged;
  
  CLangPage(): _needSave(false), LangWasChanged(false) {}
  virtual bool OnInit() Z7_override;
  virtual void OnNotifyHelp() Z7_override;
  virtual bool OnCommand(unsigned code, unsigned itemID, LPARAM param) Z7_override;
  virtual LONG OnApply() Z7_override;
};

#endif