OSDN Git Service

Add union code encode at commit support i18n.commitencoding
[tortoisegit/TortoiseGitJp.git] / ext / ResizableLib / ResizableState.h
1 /////////////////////////////////////////////////////////////////////////////\r
2 //\r
3 // This file is part of ResizableLib\r
4 // http://sourceforge.net/projects/resizablelib\r
5 //\r
6 // Copyright (C) 2000-2004 by Paolo Messina\r
7 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com\r
8 //\r
9 // The contents of this file are subject to the Artistic License (the "License").\r
10 // You may not use this file except in compliance with the License. \r
11 // You may obtain a copy of the License at:\r
12 // http://www.opensource.org/licenses/artistic-license.html\r
13 //\r
14 // If you find this code useful, credits would be nice!\r
15 //\r
16 /////////////////////////////////////////////////////////////////////////////\r
17 \r
18 /*!\r
19  *  @file\r
20  *  @brief Interface for the CResizableState class.\r
21  */\r
22 \r
23 #if !defined(AFX_RESIZABLESTATE_H__INCLUDED_)\r
24 #define AFX_RESIZABLESTATE_H__INCLUDED_\r
25 \r
26 #if _MSC_VER > 1000\r
27 #pragma once\r
28 #endif // _MSC_VER > 1000\r
29 \r
30 /*! @addtogroup CoreComponents\r
31  *  @{\r
32  */\r
33 \r
34 //! @brief Provides basic persisting capabilities\r
35 /*!\r
36  *  Derive from this class to persist user interface settings, or anything\r
37  *  suitable. The base implementation uses the application profile, which can\r
38  *  be set to either the Registry or an INI File. Other storing methods\r
39  *  can be implemented in derived classes.\r
40  */\r
41 class CResizableState  \r
42 {\r
43         static CString m_sDefaultStorePath;\r
44         CString m_sStorePath;\r
45 \r
46 protected:\r
47         \r
48         //! @brief Get default path where state is stored\r
49         static LPCTSTR GetDefaultStateStore();\r
50         \r
51         //! @brief Set default path where state is stored\r
52         static void SetDefaultStateStore(LPCTSTR szPath);\r
53 \r
54         //! @brief Get current path where state is stored\r
55         LPCTSTR GetStateStore();\r
56         \r
57         //! @brief Set current path where state is stored\r
58         void SetStateStore(LPCTSTR szPath);\r
59 \r
60         //! @name Overridables\r
61         //@{\r
62         \r
63         //! @brief Read state information\r
64         virtual BOOL ReadState(LPCTSTR szId, CString& rsState);\r
65         \r
66         //! @brief Write state information\r
67         virtual BOOL WriteState(LPCTSTR szId, LPCTSTR szState);\r
68 \r
69         //@}\r
70 \r
71 public:\r
72         CResizableState();\r
73         virtual ~CResizableState();\r
74 };\r
75 \r
76 // @}\r
77 #endif // !defined(AFX_RESIZABLESTATE_H__INCLUDED_)\r