diff options
author | Yuedong Du <yuedong.du@sun.com> | 2003-10-28 13:41:05 +0800 |
---|---|---|
committer | Yuedong Du <york@src.gnome.org> | 2003-10-28 13:41:05 +0800 |
commit | 9d85d642b2c21d8c0491fd0a9712aff76aa7dc08 (patch) | |
tree | 5f833ee9f48ad3b527c27c8047fa6717efeef9b8 /a11y/e-table/gal-a11y-e-cell-toggle.h | |
parent | 238350ee212d14e29fbf849450039b2d6fea761d (diff) | |
download | gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.tar gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.tar.gz gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.tar.bz2 gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.tar.lz gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.tar.xz gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.tar.zst gsoc2013-evolution-9d85d642b2c21d8c0491fd0a9712aff76aa7dc08.zip |
add new file for toggle cell a11y object. new a11y object toggle cell
2003-10-26 Yuedong Du <yuedong.du@sun.com>
* gal/a11y/e-table/Makefile.am: add new file for toggle cell a11y
object.
* gal/a11y/e-table/gal-a11y-e-cell-toggle.c: new a11y object toggle cell (gal_a11y_e_cell_toggle_get_type),
(gal_a11y_e_cell_toggle_class_init), (toggle_cell_action), the
implementation of toggle cell action.
(gal_a11y_e_cell_toggle_new):
* gal/a11y/e-table/gal-a11y-e-cell-toggle.h: ditto
* gal/a11y/e-table/gal-a11y-e-cell.c:
(_gal_a11y_e_cell_get_action_info),
(_gal_a11y_e_cell_destroy_action_info),
(gal_a11y_e_cell_add_action), (gal_a11y_e_cell_remove_action),
(gal_a11y_e_cell_remove_action_by_name),
(gal_a11y_e_cell_action_get_n_actions),
(gal_a11y_e_cell_action_get_name),
(gal_a11y_e_cell_action_get_description),
(gal_a11y_e_cell_action_set_description),
(gal_a11y_e_cell_action_get_keybinding), (idle_do_action),
(gal_a11y_e_cell_action_do_action),
(gal_a11y_e_cell_atk_action_interface_init),
(gal_a11y_e_cell_type_add_action_interface),
(gal_a11y_e_cell_add_state): helper functions for add a action,
stealed from gailcell.c
* gal/a11y/e-table/gal-a11y-e-cell.h:
* gal/e-table/e-cell-toggle.c: (e_cell_toggle_class_init): register
toggle's a11y object.
svn path=/trunk/; revision=23095
Diffstat (limited to 'a11y/e-table/gal-a11y-e-cell-toggle.h')
-rw-r--r-- | a11y/e-table/gal-a11y-e-cell-toggle.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/a11y/e-table/gal-a11y-e-cell-toggle.h b/a11y/e-table/gal-a11y-e-cell-toggle.h new file mode 100644 index 0000000000..9a740d7d84 --- /dev/null +++ b/a11y/e-table/gal-a11y-e-cell-toggle.h @@ -0,0 +1,47 @@ +#ifndef __GAL_A11Y_E_CELL_TOGGLE_H__ +#define __GAL_A11Y_E_CELL_TOGGLE_H__ + +#include <atk/atk.h> +#include "gal-a11y-e-cell.h" +#include "gal-a11y-e-cell-toggle.h" + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define GAL_A11Y_TYPE_E_CELL_TOGGLE (gal_a11y_e_cell_toggle_get_type ()) +#define GAL_A11Y_E_CELL_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GAL_A11Y_TYPE_E_CELL_TOGGLE, GalA11yECellToggle)) +#define GAL_A11Y_E_CELL_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GAL_A11Y_E_CELL_TOGGLE, GalA11yECellToggleClass)) +#define GAL_A11Y_IS_E_CELL_TOGGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GAL_A11Y_TYPE_E_CELL_TOGGLE)) +#define GAL_A11Y_IS_E_CELL_TOGGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GAL_A11Y_TYPE_E_CELL_TOGGLE)) +#define GAL_A11Y_E_CELL_TOGGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GAL_A11Y_TYPE_E_CELL_TOGGLE, GalA11yECellToggleClass)) + +typedef struct _GalA11yECellToggle GalA11yECellToggle; +typedef struct _GalA11yECellToggleClass GalA11yECellToggleClass; + +struct _GalA11yECellToggle +{ + GalA11yECell parent; + gboolean cell_value; +}; + +GType gal_a11y_e_cell_toggle_get_type (void); + +struct _GalA11yECellToggleClass +{ + GalA11yECellClass parent_class; +}; + +AtkObject *gal_a11y_e_cell_toggle_new (ETableItem *item, + ECellView *cell_view, + AtkObject *parent, + int model_col, + int view_col, + int row); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + + +#endif /* __GAL_A11Y_E_CELL_TOGGLE_H__ */ |