]> git.saurik.com Git - wxWidgets.git/blob - utils/dialoged/src/symbtabl.h
no changes
[wxWidgets.git] / utils / dialoged / src / symbtabl.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: symbtabl.h
3 // Purpose: wxResourceSymbolTable class for storing/reading #defines
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 04/01/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _SYMBTABL_H_
13 #define _SYMBTABL_H_
14
15 #ifdef __GNUG__
16 #pragma interface "symbtabl.h"
17 #endif
18
19 class wxResourceSymbolTable: public wxObject
20 {
21 public:
22 wxResourceSymbolTable();
23 ~wxResourceSymbolTable();
24
25 // Operations
26 bool ReadIncludeFile(const wxString& filename);
27 bool WriteIncludeFile(const wxString& filename);
28 void Clear();
29 bool AddSymbol(const wxString& symbol, int id);
30 bool RemoveSymbol(const wxString& symbol);
31 bool RemoveSymbol(int id);
32 void AddStandardSymbols();
33 bool FillComboBox(wxComboBox* comboBox);
34
35 // Accessors
36 wxString GetSymbolForId(int id);
37 int GetIdForSymbol(const wxString& symbol);
38 bool SymbolExists(const wxString& symbol) const;
39 bool IdExists(int id) ;
40 bool IsStandardSymbol(const wxString& symbol) const;
41 int FindHighestId() ;
42
43 // Implementation
44
45 // Member variables
46 protected:
47 wxHashTable m_hashTable;
48 };
49
50 #endif
51 // _SYMBTABL_H_
52