Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# accelmap.h

Go to the documentation of this file.

    00001 /*  Inti: Integrated Foundation Classes
    00002  *  Copyright (C) 2002 The Inti Development Team.
    00003  *
    00004  *  This program is free software; you can redistribute it and/or modify
    00005  *  it under the terms of the GNU General Public License as published by
    00006  *  the Free Software Foundation; either version 2 of the License, or
    00007  *  (at your option) any later version.
    00008  *
    00009  *  This program is distributed in the hope that it will be useful,
    00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012  *  GNU Library General Public License for more details.
    00013  *
    00014  *  You should have received a copy of the GNU Library General Public License
    00015  *  along with this program; if not, write to the Free Software
    00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00017  */
    00018
    00021
    00022 #ifndef INTI_GTK_ACCEL_MAP_H
    00023 #define INTI_GTK_ACCEL_MAP_H
    00024
    00025 #ifndef INTI_SLOT_H
    00026 #include <inti/slot.h>
    00027 #endif
    00028
    00029 #ifndef INTI_GTK_ACCEL_GROUP_H
    00030 #include <inti/gtk/accelgroup.h>
    00031 #endif
    00032
    00033 #ifndef __GTK_ACCEL_MAP_H__
    00034 #include <gtk/gtkaccelmap.h>
    00035 #endif
    00036
    00037 namespace Inti {
    00038
    00039 namespace G {
    00040 class Scanner;
    00041 }
    00042
    00043 namespace Gtk {
    00044
    00047
    00048 class AccelMap
    00049 {
    00050 public:
    00051         typedef Slot3<void, const char*, const AccelKey&, bool> ForeachSlot;
    00061
    00062         static bool lookup_entry(const char *accel_path, AccelKey *accel_key = 0);
    00067
    00068         static void add_entry(const char *accel_path, const AccelKey& accel_key);
    00084
    00085         static bool change_entry(const char *accel_path, const AccelKey& accel_key, bool replace);
    00097
    00098         static void load(const String& filename);
    00102
    00103         static void load(int file_descriptor);
    00108
    00109         static void load(G::Scanner& scanner);
    00112
    00113         static void save(const String& filename);
    00119
    00120         static void save(int file_descriptor);
    00123
    00124         static void foreach(const ForeachSlot *slot);
    00132 };
    00133
    00134 } // namespace Gtk
    00135
    00136 } // namespace Inti
    00137
    00138 #endif // INTI_GTK_ACCEL_MAP_H
    00139

Main Page - Footer