Debian Codegraph @

src/af/xap/xp/xap_InputModes.h

raw
1 /* AbiSource Application Framework
2 * Copyright (C) 1998 AbiSource, Inc.
3 * Copyright (C) 2004 Hubert Figuiere
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 * 02110-1301 USA.
19 */
20
21 #include "ut_types.h"
22 #include "ut_vector.h"
23
24 #include "ev_EditEventMapper.h"
25
26 #ifndef XAP_INPUTMODES_H
27 #define XAP_INPUTMODES_H
28
29 class ABI_EXPORT XAP_InputModes
30 {
31 public:
32 XAP_InputModes(void);
33 ~XAP_InputModes(void);
34
35 bool createInputMode(const char * szName,
36 EV_EditBindingMap * pBindingMap);
37 bool setCurrentMap(const char * szName);
38 EV_EditEventMapper * getCurrentMap(void) const;
39 const char * getCurrentMapName(void) const;
40 EV_EditEventMapper * getMapByName(const char * szName) const;
41
42 protected:
43 UT_GenericVector<EV_EditEventMapper *> m_vecEventMaps; /* EV_EditEventMapper * */
44 UT_GenericVector<const char*> m_vecNames; /* const char * */
45
46 UT_uint32 m_indexCurrentEventMap;
47 };
48
49 #endif // XAP_INPUTMODES_H
50