#include <libheraia.h>
Go to the source code of this file.
Data Structures | |
struct | histo_infos_t |
struct | stat_t |
Defines | |
#define | API_VERSION 1 |
#define | PLUGIN_TYPE HERAIA_PLUGIN_ACTION |
#define | PLUGIN_NAME "stat" |
#define | PLUGIN_VERSION "1" |
#define | PLUGIN_SUMMARY "stat" |
#define | PLUGIN_DESCRIPTION "Does some stats on the opened file" |
#define | PLUGIN_AUTHOR "Olivier Delhomme <heraia@delhomme.org>" |
#define | PLUGIN_HOMEPAGE "http://heraia.tuxfamily.org/" |
Functions | |
void | init (heraia_window_t *) |
void | quit (void) |
void | run (GtkWidget *, gpointer) |
void | refresh (heraia_window_t *, void *) |
heraia_plugin_t * | heraia_plugin_init (heraia_plugin_t *) |
#define API_VERSION 1 |
#define PLUGIN_AUTHOR "Olivier Delhomme <heraia@delhomme.org>" |
#define PLUGIN_DESCRIPTION "Does some stats on the opened file" |
#define PLUGIN_HOMEPAGE "http://heraia.tuxfamily.org/" |
#define PLUGIN_NAME "stat" |
#define PLUGIN_SUMMARY "stat" |
#define PLUGIN_TYPE HERAIA_PLUGIN_ACTION |
#define PLUGIN_VERSION "1" |
heraia_plugin_t* heraia_plugin_init | ( | heraia_plugin_t * | plugin | ) |
Initialisation plugin called when the plugin is loaded (some sort of pre-init)
Definition at line 50 of file stat.c.
References API_VERSION, plugin_info_t::api_version, plugin_info_t::author, plugin_info_t::description, window_prop_t::displayed, plugin_filter_t::export, plugin_filter_t::extensions, heraia_plugin_t::extra, heraia_plugin_t::filter, HERAIA_PRIORITY_DEFAULT, plugin_info_t::homepage, plugin_filter_t::import, heraia_plugin_t::info, stat_t::infos_1D, stat_t::infos_2D, init(), heraia_plugin_t::init_proc, plugin_info_t::name, PLUGIN_AUTHOR, PLUGIN_DESCRIPTION, PLUGIN_HOMEPAGE, PLUGIN_NAME, PLUGIN_STATE_INITIALIZING, PLUGIN_SUMMARY, PLUGIN_TYPE, PLUGIN_VERSION, plugin_info_t::priority, quit(), heraia_plugin_t::quit_proc, refresh(), heraia_plugin_t::refresh_proc, run(), heraia_plugin_t::run_proc, heraia_plugin_t::state, plugin_info_t::summary, plugin_info_t::type, plugin_info_t::version, heraia_plugin_t::win_prop, window_prop_t::x, heraia_plugin_t::xml, and window_prop_t::y.
Referenced by get_plugin_init_symbol().
void init | ( | heraia_window_t * | main_struct | ) |
The plugin interface functions
The real init function of the plugin
Definition at line 102 of file stat.c.
References plugin_info_t::author, heraia_plugin_t::cmi_entry, window_prop_t::displayed, find_plugin_by_name(), heraia_plugin_t::info, load_plugin_glade_xml(), log_message(), plugin_info_t::name, PLUGIN_NAME, heraia_window_t::plugins_list, stat_window_connect_signals(), heraia_plugin_t::win_prop, and heraia_plugin_t::xml.
Referenced by heraia_plugin_init().
void quit | ( | void | ) |
Normaly this is called when the plugin is unloaded One may wait it's entire life for this to be called !! ;)
Definition at line 144 of file stat.c.
References PLUGIN_NAME.
Referenced by heraia_plugin_init().
void refresh | ( | heraia_window_t * | main_struct, | |
void * | data | |||
) |
The refresh function Called when a new file is loaded or when the cursor is moved Here we want to refresh the plugin only if a new file is loaded AND if the plugin is allready displayed (running)
Definition at line 182 of file stat.c.
References heraia_window_t::event, HERAIA_REFRESH_NEW_FILE, PLUGIN_STATE_RUNNING, heraia_plugin_t::run_proc, and heraia_plugin_t::state.
Referenced by heraia_plugin_init().
void run | ( | GtkWidget * | widget, | |
gpointer | data | |||
) |
This function is called via a signal handler when the menu entry is toggled
Definition at line 153 of file stat.c.
References heraia_plugin_t::cmi_entry, find_plugin_by_name(), PLUGIN_NAME, PLUGIN_STATE_NONE, PLUGIN_STATE_RUNNING, heraia_window_t::plugins_list, realize_some_numerical_stat(), show_hide_widget(), heraia_plugin_t::state, heraia_plugin_t::win_prop, and heraia_plugin_t::xml.
Referenced by heraia_plugin_init().