listplugins.C File Reference

#include <gtk/gtk.h>
#include "config.h"
#include "gxsm/plugin.h"

Go to the source code of this file.

Classes

struct  PDesc

Defines

#define DBL_LIST_WIDTH   250
#define DBL_WIDTH   (DBL_LIST_WIDTH + 300)
#define DBL_HEIGHT   200

Functions

static void dialog_search_callback (GnomeDialog *dlg, gpointer data)
static gint procedure_clist_select_callback (GtkWidget *widget, gint row, gint column, GdkEventButton *bevent, gpointer data)
static gint procedure_ctree_select_callback (GtkWidget *widget, GtkWidget *row, gint column, gpointer data)
static void clist_click_column (GtkCList *clist, gint column, gpointer data)
static gint name_sort (GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
static void insert_into_ctree (PDesc *pdesc, gchar *name, gchar *xtimestr, gchar *menu_str, gchar *types_str, GHashTable *ghash, GxsmPlugin *GPlugin)
static void get_plugin_info (PDesc *pdesc, const gchar *search_text)
static gint page_select_callback (GtkNotebook *notebook, GtkNotebookPage *page, guint page_num, gpointer data)
static gchar * format_menu_path (gchar *s)
static void details_callback (GtkWidget *widget, gpointer data)
static void exec_callback (GtkWidget *widget, gpointer data)
static void listplugins_about (void)
static void listplugins_run (GtkWidget *w, void *data)
static void listplugins_cleanup (void)
void List_GxsmPlugins (void)
GxsmPluginget_gxsm_plugin_info (void)
GtkWidget * create_GxsmPluginList (void)
static void dialog_clicked_cb (GnomeDialog *dialog, gint button_number, PDesc *p)
static int add_GxsmPluginInfo (int table_row, PDesc *pdesc, const gchar *Label, const gchar *value)
static gint procedure_general_select_callback (PDesc *pdesc, GxsmPlugin *GPlugin)
static void expand_to (PDesc *pdesc, GtkCTreeNode *parent)
static GtkCTreeNode * get_parent (PDesc *pdesc, GHashTable *ghash, gchar *mpath)
void GxsmPlugin_free (gpointer p)

Variables

PDescplugindesc = NULL
GxsmPlugin listplugins_pi
static const char * about_text


Define Documentation

#define DBL_HEIGHT   200
 

Definition at line 67 of file listplugins.C.

Referenced by create_GxsmPluginList().

#define DBL_LIST_WIDTH   250
 

Definition at line 65 of file listplugins.C.

Referenced by create_GxsmPluginList(), and details_callback().

#define DBL_WIDTH   (DBL_LIST_WIDTH + 300)
 

Definition at line 66 of file listplugins.C.

Referenced by details_callback().


Function Documentation

static int add_GxsmPluginInfo int  table_row,
PDesc pdesc,
const gchar *  Label,
const gchar *  value
[static]
 

Definition at line 494 of file listplugins.C.

References FALSE, and PDesc::info_table.

Referenced by procedure_general_select_callback().

static void clist_click_column GtkCList *  clist,
gint  column,
gpointer  data
[static]
 

Definition at line 1186 of file listplugins.C.

References name_sort().

Referenced by create_GxsmPluginList().

GtkWidget * create_GxsmPluginList void   ) 
 

Definition at line 250 of file listplugins.C.

References _, PDesc::clist, clist_click_column(), PDesc::ctree, PDesc::ctree_scrolled_win, DBL_HEIGHT, DBL_LIST_WIDTH, details_callback(), PDesc::details_showing, dialog_clicked_cb(), dialog_search_callback(), PDesc::dlg, FALSE, PDesc::left_paned, page_select_callback(), PDesc::paned, plugindesc, procedure_clist_select_callback(), procedure_ctree_select_callback(), PDesc::search_entry, and TRUE.

Referenced by List_GxsmPlugins().

static void details_callback GtkWidget *  widget,
gpointer  data
[static]
 

Definition at line 432 of file listplugins.C.

References _, PDesc::clist, PDesc::clist_row, DBL_LIST_WIDTH, DBL_WIDTH, PDesc::descr_scroll, PDesc::details_showing, FALSE, PDesc::paned, and TRUE.

Referenced by create_GxsmPluginList().

static void dialog_clicked_cb GnomeDialog *  dialog,
gint  button_number,
PDesc p
[static]
 

Definition at line 242 of file listplugins.C.

References dialog_search_callback(), and listplugins_cleanup().

Referenced by create_GxsmPluginList().

static void dialog_search_callback GnomeDialog *  dlg,
gpointer  data
[static]
 

Definition at line 1129 of file listplugins.C.

References PDesc::clist, PDesc::ctree, get_plugin_info(), plugindesc, and PDesc::search_entry.

Referenced by create_GxsmPluginList(), and dialog_clicked_cb().

static void exec_callback GtkWidget *  widget,
gpointer  data
[static]
 

Definition at line 566 of file listplugins.C.

Referenced by procedure_general_select_callback().

static void expand_to PDesc pdesc,
GtkCTreeNode *  parent
[static]
 

Definition at line 712 of file listplugins.C.

Referenced by procedure_clist_select_callback().

static gchar * format_menu_path gchar *  s  )  [static]
 

Definition at line 477 of file listplugins.C.

Referenced by procedure_general_select_callback().

GxsmPlugin* get_gxsm_plugin_info void   ) 
 

Definition at line 190 of file listplugins.C.

References GxsmPlugin::description, listplugins_pi, N_, and VERSION.

static GtkCTreeNode* get_parent PDesc pdesc,
GHashTable *  ghash,
gchar *  mpath
[static]
 

Definition at line 883 of file listplugins.C.

References PDesc::ctree, and FALSE.

Referenced by insert_into_ctree().

static void get_plugin_info PDesc pdesc,
const gchar *  search_text
[static]
 

Definition at line 1018 of file listplugins.C.

References GxsmPlugin::app, PDesc::clist, PDesc::ctree, plugin_ctrl::get_pluginlist(), GxsmPlugin_free(), App::GxsmPlugins, plugin_ctrl::how_many(), insert_into_ctree(), listplugins_pi, PDesc::num_plugins, and procedure_ctree_select_callback().

Referenced by dialog_search_callback().

void GxsmPlugin_free gpointer  p  ) 
 

Definition at line 1011 of file listplugins.C.

Referenced by get_plugin_info().

static void insert_into_ctree PDesc pdesc,
gchar *  name,
gchar *  xtimestr,
gchar *  menu_str,
gchar *  types_str,
GHashTable *  ghash,
GxsmPlugin GPlugin
[static]
 

Definition at line 954 of file listplugins.C.

References PDesc::ctree, FALSE, get_parent(), and TRUE.

Referenced by get_plugin_info().

void List_GxsmPlugins void   ) 
 

Definition at line 231 of file listplugins.C.

References create_GxsmPluginList().

Referenced by listplugins_run().

static void listplugins_about void   )  [static]
 

Definition at line 195 of file listplugins.C.

References about_text, listplugins_pi, N_, GxsmPlugin::name, and VERSION.

static void listplugins_cleanup void   )  [static]
 

Definition at line 219 of file listplugins.C.

References PDesc::dlg, and plugindesc.

Referenced by dialog_clicked_cb().

static void listplugins_run GtkWidget *  w,
void *  data
[static]
 

Definition at line 207 of file listplugins.C.

References GxsmPlugin::app, DBG_L2, App::GxsmPlugins, List_GxsmPlugins(), listplugins_pi, GnomeAppService::message(), and PI_DEBUG.

static gint name_sort GtkCList *  clist,
gconstpointer  ptr1,
gconstpointer  ptr2
[static]
 

Definition at line 1158 of file listplugins.C.

References GxsmPlugin::name.

Referenced by clist_click_column().

static gint page_select_callback GtkNotebook *  notebook,
GtkNotebookPage *  page,
guint  page_num,
gpointer  data
[static]
 

Definition at line 800 of file listplugins.C.

References PDesc::clist, PDesc::clist_row, PDesc::ctree, PDesc::ctree_row, and FALSE.

Referenced by create_GxsmPluginList().

static gint procedure_clist_select_callback GtkWidget *  widget,
gint  row,
gint  column,
GdkEventButton *  bevent,
gpointer  data
[static]
 

Definition at line 723 of file listplugins.C.

References PDesc::ctree, PDesc::ctree_row, expand_to(), FALSE, procedure_ctree_select_callback(), and procedure_general_select_callback().

Referenced by create_GxsmPluginList(), and procedure_ctree_select_callback().

static gint procedure_ctree_select_callback GtkWidget *  widget,
GtkWidget *  row,
gint  column,
gpointer  data
[static]
 

Definition at line 828 of file listplugins.C.

References PDesc::clist, PDesc::clist_row, FALSE, procedure_clist_select_callback(), and procedure_general_select_callback().

Referenced by create_GxsmPluginList(), get_plugin_info(), and procedure_clist_select_callback().

static gint procedure_general_select_callback PDesc pdesc,
GxsmPlugin GPlugin
[static]
 

Definition at line 573 of file listplugins.C.

References _, GxsmPlugin::about, add_GxsmPluginInfo(), GxsmPlugin::authors, GxsmPlugin::category, GxsmPlugin::cleanup, GxsmPlugin::configure, PDesc::descr_scroll, GxsmPlugin::description, GxsmPlugin::errormsg, exec_callback(), FALSE, GxsmPlugin::filename, format_menu_path(), GxsmPlugin::help, GxsmPlugin::info, PDesc::info_align, PDesc::info_table, GxsmPlugin::init, GxsmPlugin::menuentry, GxsmPlugin::menupath, N_, GxsmPlugin::name, PDesc::num_plugins, GxsmPlugin::query, GxsmPlugin::run, and GxsmPlugin::status.

Referenced by procedure_clist_select_callback(), and procedure_ctree_select_callback().


Variable Documentation

const char* about_text [static]
 

Initial value:

 N_("Plugin Control for Gxsm:\n\n"
                                   "- View Gxsm-Plugin details and status\n"
                                   "- Call plugins About or Configurationfunction\n"
                                   "Plugin written in inspiration of \"The Gimp\" - Plugin Details:\n"
                                   "Displays plugin details"
                                   "Helps browse the plugin menus system. You can "
                                   "search for plugin names, sort by name or menu "
                                   "location and you can view a tree representation "
                                   "of the plugin menus. Can also be of help to find "
                                   "where new plugins have installed themselves in "
                                   "the menuing system"
                                   )

Definition at line 176 of file listplugins.C.

GxsmPlugin listplugins_pi
 

Initial value:

 {
  NULL,
  NULL,
  0,
  NULL,
  "GxsmPlugindetails",
  NULL,
  NULL,
  "Some code from Andy Thomas's Gimp Plugin: \"plugin details\",\n"
  "Gxsm Version by Percy Zahl",
  N_("_Tools/"),
  N_("Plugin Details"),
  N_("List/Configure available Gxsm Plugins"),
  "no more info",
  NULL,
  NULL,
  NULL,
  NULL,
  listplugins_about,
  NULL,
  listplugins_run,
  listplugins_cleanup
}

Definition at line 152 of file listplugins.C.

Referenced by get_gxsm_plugin_info(), get_plugin_info(), listplugins_about(), and listplugins_run().

PDesc* plugindesc = NULL
 

Definition at line 91 of file listplugins.C.

Referenced by create_GxsmPluginList(), dialog_search_callback(), and listplugins_cleanup().


Generated on Sat Apr 1 09:04:42 2006 for GXSM by  doxygen 1.4.6