Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

gui/undohistory.c File Reference

GUI - Implementation of the Undo history window and the VrrUndoStore object to provide the mediator between the VRR undo structures and GTK. More...

#include "lib/lib.h"
#include <string.h>
#include <stdio.h>
#include <gtk/gtk.h>
#include "kernel/kernel.h"
#include "gui/main.h"
#include "gui/cmdmgr.h"
#include "scheme/glt_gui.h"

Data Structures

struct  VrrUndoStore
 The structure providing the mediator between GtkTreeView and our internal kernel structures. More...

struct  VrrUndoStoreClass

Defines

#define VRR_TYPE_UNDO_STORE   (vrr_undo_store_get_type())
#define VRR_UNDO_STORE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), VRR_TYPE_UNDO_STORE, VrrUndoStore))
#define VRR_UNDO_STORE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST((klass), VRR_TYPE_UNDO_STORE, VrrUndoStoreClass))
#define VRR_IS_UNDO_STORE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE((obj), VRR_TYPE_UNDO_STORE))
#define VRR_IS_UNDO_STORE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE((klass), VRR_TYPE_UNDO_STORE))
#define VRR_UNDO_STORE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS((obj), VRR_TYPE_UNDO_STORE, VrrUndoStoreClass))
#define VALID_ITER(iter, undo_store)   (iter && iter->user_data)

Typedefs

typedef VrrUndoStore VrrUndoStore
typedef VrrUndoStoreClass VrrUndoStoreClass

Enumerations

enum  undo_column_types { UCT_NAME, UCT_STYLE, UCT_COUNT }
 The column type identifiers.


Functions

GType vrr_undo_store_get_type (void)
VrrUndoStorevrr_undo_store_new (struct obj_page *page)
void undo_store_item_changed (struct VrrUndoStore *store, struct undo_gui *ug)
 Lets the view know (by emitting a signal) that the particular undo item has changed.

void undo_store_item_new (struct VrrUndoStore *store, struct undo_gui *ug)
 Lets the view know (by emitting a signal) that a new undo item has been added.

void undo_store_item_deleted (struct VrrUndoStore *store, struct undo_gui *ug, struct undo_gui *prev_item)
 Lets the view know (by emitting a signal) that the undo item was deleted.

void wuh_window_set_title (GtkWindow *wnd, struct obj_page *page)
void destroy_wnd_undo_history (GtkWidget *widget UNUSED, struct wnd_undo_history *wuh)
 Destroys the window and unrefs all referenced widgets.

void wuh_on_source_unlink (struct o *o, struct o *owner UNUSED, struct o *prev UNUSED, struct obj_hook *hook)
 Handler of unlinking of either the PAGE or ancestor.

void wuh_on_names_changed (struct o *o, struct obj_hook *hook)
 Rebuild the window title when one of the names has been changed.

void uh_item_new (struct obj_page *page, struct undo_gui *ug, struct trans_hook *h)
void uh_item_delete (struct obj_page *page, struct undo_gui *ug, struct undo_gui *prev_item, struct trans_hook *h)
void uh_item_change (struct obj_page *page, struct undo_gui *ug, struct trans_hook *h)
void uh_undo (struct obj_page *page, struct trans_hook *h)
void uh_redo (struct obj_page *page, struct trans_hook *h)
wnd_undo_historycreate_wnd_undo_history (struct obj_page *page)
 Create the undo history window.

void wuh_refresh_tbars_of (struct obj_page *page)
void wuh_refresh_toolbar (struct wnd_undo_history *wuh)
void uh_item_delete (struct obj_page *page UNUSED, struct undo_gui *ug, struct undo_gui *prev_item, struct trans_hook *h)
void uh_item_change (struct obj_page *page UNUSED, struct undo_gui *ug, struct trans_hook *h)
void uh_undo (struct obj_page *page, struct trans_hook *h UNUSED)
void uh_redo (struct obj_page *page, struct trans_hook *h UNUSED)
void on_hist_jump (void *subj)
void vrr_undo_store_init (VrrUndoStore *undo_store)
void vrr_undo_store_class_init (VrrUndoStoreClass *undo_store_class)
void vrr_undo_store_tree_model_init (GtkTreeModelIface *iface)
void vrr_undo_store_finalize (GObject *object)
GtkTreeModelFlags vrr_undo_store_get_flags (GtkTreeModel *tree_model)
gint vrr_undo_store_get_n_columns (GtkTreeModel *tree_model)
GType vrr_undo_store_get_column_type (GtkTreeModel *tree_model, gint index)
gboolean vrr_undo_store_get_iter (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreePath *path)
GtkTreePath * vrr_undo_store_get_path (GtkTreeModel *tree_model, GtkTreeIter *iter)
void vrr_undo_store_get_value (GtkTreeModel *tree_model, GtkTreeIter *iter, gint column, GValue *value)
gboolean vrr_undo_store_iter_next (GtkTreeModel *tree_model, GtkTreeIter *iter)
gboolean vrr_undo_store_iter_children (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *parent)
gboolean vrr_undo_store_iter_has_child (GtkTreeModel *tree_model, GtkTreeIter *iter)
gint vrr_undo_store_iter_n_children (GtkTreeModel *tree_model, GtkTreeIter *iter)
gboolean vrr_undo_store_iter_nth_child (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *parent, gint n)
gboolean vrr_undo_store_iter_parent (GtkTreeModel *tree_model, GtkTreeIter *iter, GtkTreeIter *child)
gboolean vrr_undo_store_iter_children (GtkTreeModel *tree_model UNUSED, GtkTreeIter *iter UNUSED, GtkTreeIter *parent UNUSED)
gboolean vrr_undo_store_iter_has_child (GtkTreeModel *tree_model UNUSED, GtkTreeIter *iter UNUSED)
gint vrr_undo_store_iter_n_children (GtkTreeModel *tree_model UNUSED, GtkTreeIter *iter UNUSED)
gboolean vrr_undo_store_iter_nth_child (GtkTreeModel *tree_model UNUSED, GtkTreeIter *iter UNUSED, GtkTreeIter *parent UNUSED, gint n UNUSED)
gboolean vrr_undo_store_iter_parent (GtkTreeModel *tree_model UNUSED, GtkTreeIter *iter UNUSED, GtkTreeIter *child UNUSED)
void undo_store_item_changed (VrrUndoStore *store, struct undo_gui *ug)
void undo_store_item_new (VrrUndoStore *store, struct undo_gui *ug)
void undo_store_item_deleted (VrrUndoStore *store, struct undo_gui *ug UNUSED, struct undo_gui *prev_item)

Variables

GType undo_column_types [] = { G_TYPE_STRING, G_TYPE_BOOLEAN }
GObjectClass * parent_class = NULL


Detailed Description

GUI - Implementation of the Undo history window and the VrrUndoStore object to provide the mediator between the VRR undo structures and GTK.

Copyright (c) 2004-2005 The VRR Team <vrr@ucw.cz> This program is distributed under GNU General Public License, see COPYING.


Function Documentation

struct wnd_undo_history* create_wnd_undo_history struct obj_page *  page  ) 
 

Create the undo history window.

Returns:
A pointer to the allocated window structure.

void destroy_wnd_undo_history GtkWidget *widget  UNUSED,
struct wnd_undo_history wuh
[static]
 

Destroys the window and unrefs all referenced widgets.

Parameters:
widget widget
wuh A pointer to the window structure.


Generated on Tue Dec 9 16:30:09 2008 for Vrr by doxygen 1.3.5