stat.h File Reference

Contains everything needed from stat.c : structures and defines. More...

#include <libheraia.h>
Include dependency graph for stat.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   N_("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_theraia_plugin_init (heraia_plugin_t *)
 Initialisation plugin function called when the plugin is loaded (some sort of pre-init).

Detailed Description

Contains everything needed from stat.c : structures and defines.

Definition in file stat.h.


Define Documentation

#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   N_("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"

Definition at line 37 of file stat.h.

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

#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().


Function Documentation

heraia_plugin_t* heraia_plugin_init ( heraia_plugin_t plugin  ) 
void init ( heraia_struct_t main_struct  ) 

The plugin interface functions.

When the application initialy starts up

The plugin interface functions.

Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:

void quit ( void   ) 

When the application exits.

Definition at line 161 of file stat.c.

References PLUGIN_NAME.

Referenced by heraia_plugin_init().

Here is the caller graph for this function:

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).

Parameters:
main_struct : main structure
data : user data (the plugin itself) MUST be heraia_plugin_t *plugin structure

Definition at line 226 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().

Here is the call graph for this function:

Here is the caller graph for this function:

void run ( GtkWidget *  widget,
gpointer  data 
)

To run anything everytime the plugin is called.

To run anything everytime the plugin is called.

Parameters:
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().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Tue Aug 10 18:29:46 2010 for Heraia by  doxygen 1.6.3