Put a space between the parameter name and its description when prompting for it.
[synfig.git] / synfig-studio / trunk / src / gtkmm / keymapsettings.h
blobf216095c81752b9177ca3bf0cc802135b322f946
1 /* === S Y N F I G ========================================================= */
2 /*! \file keymapsettings.h
3 ** \brief Defines the structures for managing key map settings
4 **
5 ** $Id$
6 **
7 ** \legal
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
9 **
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.
19 ** \endlegal
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>
31 #include <set>
32 #include <map>
33 #include <string>
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 ======================================= */
43 namespace studio {
45 //a dialog for viewing and setting options, though it can also be used just as is
46 class KeyMapSettings : public Gtk::Dialog
48 struct AcKeyInfo
50 guint key;
51 Gdk::ModifierType mod;
53 bool on;
55 AcKeyInfo(guint k = 0, Gdk::ModifierType m = Gdk::ModifierType())
56 :key(k),mod(m) {}
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...
64 public:
66 KeyMapSettings();
67 ~KeyMapSettings();
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 =============================================================== */
83 #endif