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 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_KEYMAPSETTINGS_H
25 #define __SYNFIG_KEYMAPSETTINGS_H
27 /* === H E A D E R S ======================================================= */
28 #include <gtkmm/dialog.h>
34 #include <gtkmm/accelkey.h>
36 /* === M A C R O S ========================================================= */
38 /* === T Y P E D E F S ===================================================== */
40 /* === C L A S S E S & S T R U C T S ======================================= */
44 //a dialog for viewing and setting options, though it can also be used just as is
45 class KeyMapSettings : public Gtk::Dialog
50 Gdk::ModifierType mod;
54 AcKeyInfo(guint k = 0, Gdk::ModifierType m = Gdk::ModifierType())
58 //std::map<const char *,AcKeyInfo> pathmap; //uses string info from paths set
59 //std::set<std::string> accelpaths;
61 bool unsaved; //Assume as such...
68 //void add_path(const char *path);
70 bool set_key(const char *path, guint key, Gdk::ModifierType mod, bool replace = true);
71 bool get_key(const char *path, Gtk::AccelKey *key);
73 // These files must be sent a filename without extension (so the key map can be obtained)
74 bool load(const char *filename);
75 bool save(const char *filename);
78 }; // END of namespace studio
80 /* === E N D =============================================================== */