]>
Commit | Line | Data |
---|---|---|
03f68f12 JS |
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 | ||
ab7ce33c | 15 | #if defined(__GNUG__) && !defined(__APPLE__) |
03f68f12 JS |
16 | #pragma interface "symbtabl.h" |
17 | #endif | |
18 | ||
19 | class wxResourceSymbolTable: public wxObject | |
20 | { | |
21 | public: | |
22 | wxResourceSymbolTable(); | |
23 | ~wxResourceSymbolTable(); | |
f6bcfd97 BP |
24 | |
25 | // Operations | |
03f68f12 JS |
26 | bool ReadIncludeFile(const wxString& filename); |
27 | bool WriteIncludeFile(const wxString& filename); | |
28 | void Clear(); | |
5de76427 JS |
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); | |
f6bcfd97 BP |
34 | |
35 | // Accessors | |
5de76427 JS |
36 | wxString GetSymbolForId(int id); |
37 | int GetIdForSymbol(const wxString& symbol); | |
03f68f12 | 38 | bool SymbolExists(const wxString& symbol) const; |
5de76427 JS |
39 | bool IdExists(int id) ; |
40 | bool IsStandardSymbol(const wxString& symbol) const; | |
41 | int FindHighestId() ; | |
f6bcfd97 BP |
42 | |
43 | // Implementation | |
44 | ||
45 | // Member variables | |
03f68f12 JS |
46 | protected: |
47 | wxHashTable m_hashTable; | |
48 | }; | |
49 | ||
50 | #endif | |
f6bcfd97 | 51 | // _SYMBTABL_H_ |
03f68f12 | 52 |