Contains everything needed from stat.c : structures and defines. More...
#include <libheraia.h>
Go to the source code of this file.
Data Structures | |
struct | histo_infos_t |
struct | stat_t |
This is the stat structure. More... | |
Defines | |
#define | API_VERSION 1 |
#define | PLUGIN_TYPE HERAIA_PLUGIN_ACTION |
#define | PLUGIN_NAME "stat" |
#define | PLUGIN_VERSION "1.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_struct_t *) |
The plugin interface functions. | |
void | quit (void) |
When the application exits. | |
void | run (GtkWidget *, gpointer) |
To run anything everytime the plugin is called. | |
void | refresh (heraia_struct_t *, void *) |
Called every refresh time (New file & cursor move). | |
heraia_plugin_t * | heraia_plugin_init (heraia_plugin_t *) |
Initialisation plugin function called when the plugin is loaded (some sort of pre-init). |
Contains everything needed from stat.c : structures and defines.
Definition in file stat.h.
#define API_VERSION 1 |
Definition at line 34 of file stat.h.
Referenced by heraia_plugin_init().
#define PLUGIN_AUTHOR "Olivier Delhomme <heraia@delhomme.org>" |
Definition at line 41 of file stat.h.
Referenced by heraia_plugin_init().
#define PLUGIN_DESCRIPTION "Does some stats on the opened file" |
Definition at line 40 of file stat.h.
Referenced by heraia_plugin_init().
#define PLUGIN_HOMEPAGE "http://heraia.tuxfamily.org/" |
Definition at line 42 of file stat.h.
Referenced by heraia_plugin_init().
#define PLUGIN_NAME "stat" |
#define PLUGIN_SUMMARY "stat" |
Definition at line 39 of file stat.h.
Referenced by heraia_plugin_init().
#define PLUGIN_TYPE HERAIA_PLUGIN_ACTION |
Definition at line 35 of file stat.h.
Referenced by heraia_plugin_init().
#define PLUGIN_VERSION "1.1" |
Definition at line 38 of file stat.h.
Referenced by heraia_plugin_init().
heraia_plugin_t* heraia_plugin_init | ( | heraia_plugin_t * | plugin | ) |
Initialisation plugin function called when the plugin is loaded (some sort of pre-init).
[in,out] | plugin | : plugin's structure |
< extra structure specific to this plugin
< window properties
Definition at line 64 of file stat.c.
References API_VERSION, plugin_info_t::api_version, plugin_info_t::author, plugin_info_t::description, stat_t::dirname, 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_struct_t * | main_struct | ) |
The plugin interface functions.
When the application initialy starts up
The plugin interface functions.
main_struct | : main structure |
Definition at line 117 of file stat.c.
References plugin_info_t::author, heraia_plugin_t::cmi_entry, window_prop_t::displayed, find_plugin_by_name(), heraia_get_widget(), heraia_plugin_t::info, load_plugin_xml(), log_message(), plugin_info_t::name, PLUGIN_NAME, heraia_struct_t::plugins_list, set_statw_button_state(), stat_window_connect_signals(), heraia_plugin_t::win_prop, and heraia_plugin_t::xml.
Referenced by heraia_plugin_init().
void quit | ( | void | ) |
When the application exits.
Definition at line 161 of file stat.c.
References PLUGIN_NAME.
Referenced by heraia_plugin_init().
void refresh | ( | heraia_struct_t * | main_struct, | |
void * | data | |||
) |
Called every refresh time (New file & cursor move).
Called every refresh time (New file & cursor move).
main_struct | : main structure | |
data | : user data (the plugin itself) MUST be heraia_plugin_t *plugin structure |
Definition at line 225 of file stat.c.
References heraia_struct_t::event, HERAIA_REFRESH_NEW_FILE, HERAIA_REFRESH_TAB_CHANGED, heraia_plugin_t::run_proc, set_statw_button_state(), and heraia_plugin_t::xml.
Referenced by heraia_plugin_init().
void run | ( | GtkWidget * | widget, | |
gpointer | data | |||
) |
To run anything everytime the plugin is called.
To run anything everytime the plugin is called.
widget | : widget which called the function (unused) | |
data | : user data for the plugin, here MUST be heraia_struct_t * main structure |
Definition at line 173 of file stat.c.
References heraia_plugin_t::cmi_entry, find_plugin_by_name(), heraia_get_widget(), PLUGIN_NAME, PLUGIN_STATE_NONE, PLUGIN_STATE_RUNNING, heraia_struct_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().