OSDN Git Service

Fix the issue where the Apache Tika plugin becomes enabled again when reopening the...
[winmerge-jp/winmerge-jp.git] / Src / OptionsProject.h
1 #pragma once
2
3 class COptionsMgr;
4
5 namespace Options { namespace Project {
6
7 /** @brief Types of operations for project files */
8 enum class Operation
9 {
10         Open,
11         Load,
12         Save
13 };
14 constexpr int OperationCount = static_cast<int>(Operation::Save) + 1;
15
16 /** @brief Types of items to save to or restore from the project file */
17 enum class Item
18 {
19         FileFilter,
20         IncludeSubfolders,
21         Plugin,
22         CompareOptions,
23         HiddenItems
24 };
25 constexpr int ItemCount = static_cast<int>(Item::HiddenItems) + 1;
26
27 typedef bool Settings[OperationCount][ItemCount];
28
29 void Init(COptionsMgr *pOptionsMgr);
30 void Load(COptionsMgr *pOptionsMgr, Settings settings);
31 void Save(COptionsMgr *pOptionsMgr, const Settings& settings);
32 bool Get(COptionsMgr* pOptionsMgr, Operation operation, Item item);
33 }}