Riferimenti per il file brainfilelist_mcs-plugin.c

#include <X11/Xlib.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <libxfce4util/i18n.h>
#include <libxfce4util/util.h>
#include <libxfcegui4/libxfcegui4.h>
#include <brain_db.h>
#include <brain_client.h>
#include <brain_settings.h>
#include <brain_applets_generic.h>
#include <brain-mcs-manager/manager-plugin.h>
#include <gtk_common/gtk_common.h>
#include "brainfilelist.h"

Strutture dati

struct  TaskbarDialog
struct  ActivityDescriptor

Definizioni

#define PLUGIN_NAME   "brainfilelist"
#define TOP   TRUE
#define BOTTOM   FALSE
#define DEFAULT_POSITION   TRUE
#define DEFAULT_AUTOHIDE   FALSE
#define DEFAULT_SHOWPAGER   TRUE
#define DEFAULT_SHOWTRAY   TRUE
#define DEFAULT_SHOWALLTASK   TRUE
#define DEFAULT_HEIGHT   30
#define DEFAULT_TIMEOUT   3
#define DEFAULT_OPEN_FILES   FALSE
#define HEIGHT_MIN   10
#define HEIGHT_MAX   100
#define TIMEOUT_MIN   1
#define TIMEOUT_MAX   10

Funzioni

static void run_dialog (BrainMcsPlugin *mcs_plugin)
static void dialog_response (GtkWidget *dialog, gint response_id)
static void value_changed (GtkWidget *widget, int value)
GtkTreeModel * model_for_acts_tree ()
gboolean add_activity (GtkButton *button, gpointer data)
void remove_element_in_db (GtkTreeIter *iter, int act_num, ACTIVITY_ELEMENTS type, gchar *name)
void update_element_in_db (int act_num, ACTIVITY_ELEMENTS type, gchar *new_name, gchar *new_opts, gchar *ex_name)
void insert_into_model (int act_num, ACTIVITY_ELEMENTS type, gchar *name, gchar *opts)
void add_element_in_db (int act_num, ACTIVITY_ELEMENTS type, gchar *new_name, gchar *new_opts)
void choose_new_file (GtkButton *button, GtkWidget *name)
void choose_new_app (GtkButton *button, GtkWidget *app)
void contact_selected_dialog (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, int act_num)
void bookmark_selected_dialog (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, int act_num)
void applet_selected_dialog (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, int act_num)
void file_selected_dialog (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, int act_num)
void add_file_in_act (GtkButton *button, int act)
void add_applet_in_act (GtkButton *button, int act)
void add_bookmark_in_act (GtkButton *button, int act)
void add_contact_in_act (GtkButton *button, int act)
void model_for_items_into_act (int act_num, ACTIVITY_ELEMENTS type)
void draw_frame_for_activity (char *element_path, TaskbarDialog *dialog)
static void item_selection_changed (GtkTreeView *tree, GtkTreePath *path, GtkTreeViewColumn *col, TaskbarDialog *dialog)
TaskbarDialogcreate_filelist_dialog (BrainMcsPlugin *mcs_plugin)
static void setup_dialog (TaskbarDialog *itf)
static int create_channel (BrainMcsPlugin *mcs_plugin)
BrainMcsPluginInitResult mcs_plugin_init (BrainMcsPlugin *mcs_plugin)

Variabili

static gboolean is_running = FALSE
static gboolean position = TRUE
static gboolean autohide = FALSE
static gboolean show_pager = TRUE
static gboolean show_tray = TRUE
static int height = 30
static int timeout = 3
static gboolean open_all_files = FALSE
TaskbarDialogitf
ActivityDescriptoracts
int ActsNum


Documentazione delle definizioni

#define PLUGIN_NAME   "brainfilelist"
 

#define TOP   TRUE
 

Avvertimento:
Deve avere lo stesso valore assunto in brainfilelist.c

#define BOTTOM   FALSE
 

Avvertimento:
Deve avere lo stesso valore assunto in brainfilelist.c

#define DEFAULT_POSITION   TRUE
 

#define DEFAULT_AUTOHIDE   FALSE
 

#define DEFAULT_SHOWPAGER   TRUE
 

#define DEFAULT_SHOWTRAY   TRUE
 

#define DEFAULT_SHOWALLTASK   TRUE
 

#define DEFAULT_HEIGHT   30
 

#define DEFAULT_TIMEOUT   3
 

#define DEFAULT_OPEN_FILES   FALSE
 

#define HEIGHT_MIN   10
 

#define HEIGHT_MAX   100
 

#define TIMEOUT_MIN   1
 

#define TIMEOUT_MAX   10
 


Documentazione delle funzioni

static void run_dialog BrainMcsPlugin mcs_plugin  )  [static]
 

static void dialog_response GtkWidget *  dialog,
gint  response_id
[static]
 

static void value_changed GtkWidget *  widget,
int  value
[static]
 

GtkTreeModel* model_for_acts_tree  ) 
 

gboolean add_activity GtkButton *  button,
gpointer  data
 

void remove_element_in_db GtkTreeIter *  iter,
int  act_num,
ACTIVITY_ELEMENTS  type,
gchar *  name
[inline]
 

void update_element_in_db int  act_num,
ACTIVITY_ELEMENTS  type,
gchar *  new_name,
gchar *  new_opts,
gchar *  ex_name
[inline]
 

void insert_into_model int  act_num,
ACTIVITY_ELEMENTS  type,
gchar *  name,
gchar *  opts
 

void add_element_in_db int  act_num,
ACTIVITY_ELEMENTS  type,
gchar *  new_name,
gchar *  new_opts
[inline]
 

void choose_new_file GtkButton *  button,
GtkWidget *  name
 

void choose_new_app GtkButton *  button,
GtkWidget *  app
 

void contact_selected_dialog GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
int  act_num
 

Da fare:
Rendere piu' flessibile la lista di tipi di contatto: usare una tabella in DB o comunque definita da qualche parte...

void bookmark_selected_dialog GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
int  act_num
 

void applet_selected_dialog GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
int  act_num
 

void file_selected_dialog GtkTreeView *  treeview,
GtkTreePath *  path,
GtkTreeViewColumn *  column,
int  act_num
 

void add_file_in_act GtkButton *  button,
int  act
 

void add_applet_in_act GtkButton *  button,
int  act
 

void add_bookmark_in_act GtkButton *  button,
int  act
 

void add_contact_in_act GtkButton *  button,
int  act
 

void model_for_items_into_act int  act_num,
ACTIVITY_ELEMENTS  type
 

void draw_frame_for_activity char *  element_path,
TaskbarDialog dialog
 

Da fare:
Questo set_size sembra non avere esito... E si che nella box ci dovrebbe essere solo questo button...

prima parte: introduzione

seconda parte: pannello files

terza parte: pannello applets

quarta parte: pannello bookmarks

quarta parte: pannello contatti

fine

static void item_selection_changed GtkTreeView *  tree,
GtkTreePath *  path,
GtkTreeViewColumn *  col,
TaskbarDialog dialog
[static]
 

TaskbarDialog* create_filelist_dialog BrainMcsPlugin mcs_plugin  ) 
 

static void setup_dialog TaskbarDialog itf  )  [static]
 

static int create_channel BrainMcsPlugin mcs_plugin  )  [static]
 

<

Avvertimento:
Deve avere lo stesso valore assunto in brainfilelist.c
<
Avvertimento:
Deve avere lo stesso valore assunto in brainfilelist.c

BrainMcsPluginInitResult mcs_plugin_init BrainMcsPlugin mcs_plugin  ) 
 

Da fare:
Definire una icona per questo pannello


Documentazione delle variabili

gboolean is_running = FALSE [static]
 

gboolean position = TRUE [static]
 

gboolean autohide = FALSE [static]
 

gboolean show_pager = TRUE [static]
 

gboolean show_tray = TRUE [static]
 

int height = 30 [static]
 

int timeout = 3 [static]
 

gboolean open_all_files = FALSE [static]
 

TaskbarDialog* itf
 

ActivityDescriptor* acts
 

int ActsNum
 


Generato il Sun Apr 16 01:36:44 2006 per BrainTop da  doxygen 1.4.6