1 /* === S Y N F I G ========================================================= */
2 /*! \file keymapsettings.h
3 ** \brief Defines the structures for managing key map settings
5 ** $Id: keymapsettings.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_KEYMAPSETTINGS_H
26 #define __SYNFIG_KEYMAPSETTINGS_H
28 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/dialog.h>
35 #include <gtkmm/accelkey.h>
37 /* === M A C R O S ========================================================= */
39 /* === T Y P E D E F S ===================================================== */
41 /* === C L A S S E S & S T R U C T S ======================================= */
45 //a dialog for viewing and setting options, though it can also be used just as is
46 class KeyMapSettings : public Gtk::Dialog
51 Gdk::ModifierType mod;
55 AcKeyInfo(guint k = 0, Gdk::ModifierType m = Gdk::ModifierType())
59 //std::map<const char *,AcKeyInfo> pathmap; //uses string info from paths set
60 //std::set<std::string> accelpaths;
62 bool unsaved; //Assume as such...
69 //void add_path(const char *path);
71 bool set_key(const char *path, guint key, Gdk::ModifierType mod, bool replace = true);
72 bool get_key(const char *path, Gtk::AccelKey *key);
74 // These files must be sent a filename without extension (so the key map can be obtained)
75 bool load(const char *filename);
76 bool save(const char *filename);
79 }; // END of namespace studio
81 /* === E N D =============================================================== */