heraia/trunk/plugins/stat/stat.h File Reference

This graph shows which files directly or indirectly include this file:

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_theraia_plugin_init (heraia_plugin_t *)


Define Documentation

#define API_VERSION   1

Definition at line 29 of file stat.h.

Referenced by heraia_plugin_init().

#define PLUGIN_AUTHOR   "Olivier Delhomme <heraia@delhomme.org>"

Definition at line 36 of file stat.h.

Referenced by heraia_plugin_init().

#define PLUGIN_DESCRIPTION   "Does some stats on the opened file"

Definition at line 35 of file stat.h.

Referenced by heraia_plugin_init().

#define PLUGIN_HOMEPAGE   "http://heraia.tuxfamily.org/"

Definition at line 37 of file stat.h.

Referenced by heraia_plugin_init().

#define PLUGIN_NAME   "stat"

Definition at line 32 of file stat.h.

Referenced by heraia_plugin_init(), init(), quit(), and run().

#define PLUGIN_SUMMARY   "stat"

Definition at line 34 of file stat.h.

Referenced by heraia_plugin_init().

#define PLUGIN_TYPE   HERAIA_PLUGIN_ACTION

Definition at line 30 of file stat.h.

Referenced by heraia_plugin_init().

#define PLUGIN_VERSION   "1"

Definition at line 33 of file stat.h.

Referenced by heraia_plugin_init().


Function Documentation

heraia_plugin_t* heraia_plugin_init ( heraia_plugin_t plugin  ) 

void init ( heraia_window_t main_struct  ) 

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 143 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 179 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 151 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().

Here is the call graph for this function:


Generated on Sun Aug 24 19:26:30 2008 for Heraia by  doxygen 1.5.6