]> git.saurik.com Git - wxWidgets.git/blame - utils/dialoged/src/symbtabl.h
Fixed various wxMSW compile problems that came down the telephone line...
[wxWidgets.git] / utils / dialoged / src / symbtabl.h
CommitLineData
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
15#ifdef __GNUG__
16#pragma interface "symbtabl.h"
17#endif
18
19class wxResourceSymbolTable: public wxObject
20{
21public:
22 wxResourceSymbolTable();
23 ~wxResourceSymbolTable();
24
25// Operations
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);
03f68f12
JS
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() ;
03f68f12
JS
42
43// Implementation
44
45// Member variables
46protected:
47 wxHashTable m_hashTable;
48};
49
50#endif
51 // _SYMBTABL_H_
52