![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define VISU_UI_PANEL_BROWSER_NEXT #define VISU_UI_PANEL_BROWSER_PREVIOUS gboolean visu_ui_panel_browser_getCurrentSelected (GtkTreePath **path
,GtkTreeIter *iterSelected
); gboolean visu_ui_panel_browser_getNextSelected (GtkTreePath **path
,GtkTreeIter *iterSelected
,int direction
); VisuUiPanel * visu_ui_panel_browser_init (); void visu_ui_panel_browser_setCurrentDirectories (gchar **dirs
); void visu_ui_panel_browser_setCurrentDirectory (const gchar *dir
); void visu_ui_panel_browser_setMessage (const gchar *message
,GtkMessageType message_type
);
One can display a message about the file list by calling
visu_ui_panel_browser_setMessage()
. It is possible also to change
the browser directory or directories with
visu_ui_panel_browser_setCurrentDirectory()
.
#define VISU_UI_PANEL_BROWSER_NEXT 1
Value that give the direction when the selector is moved around file list.
See visu_ui_panel_browser_getNextSelected()
.
#define VISU_UI_PANEL_BROWSER_PREVIOUS 0
Value that give the direction when the selector is moved around file list.
See visu_ui_panel_browser_getNextSelected()
.
gboolean visu_ui_panel_browser_getCurrentSelected (GtkTreePath **path
,GtkTreeIter *iterSelected
);
Get iter and path of the currently sleected file.
|
a pointer to returned the path of the currently selected file ; |
|
a pointer to store the currently selected iter. |
Returns : |
TRUE if one exists. |
gboolean visu_ui_panel_browser_getNextSelected (GtkTreePath **path
,GtkTreeIter *iterSelected
,int direction
);
Change the selected file in the browser given the direction.
|
a pointer to returned the path of the newly selected file ; |
|
a pointer to store the newly selected iter ; |
|
VISU_UI_PANEL_BROWSER_NEXT or VISU_UI_PANEL_BROWSER_PREVIOUS. |
Returns : |
TRUE if one exists. |
VisuUiPanel * visu_ui_panel_browser_init ();
Should be used in the list declared in externalModules.h to be loaded by V_Sim on start-up. This routine will create the VisuUiPanel handling the browser.
Returns : |
a newly created VisuUiPanel object. |
void visu_ui_panel_browser_setCurrentDirectories
(gchar **dirs
);
Change the directories for the browser. It is the same routine than
visu_ui_panel_browser_setCurrentDirectory()
, but several directories can be loaded
at once. But internally, contrary to visu_ui_panel_browser_setCurrentDirectory()
the given array must not be freed since it is not copied.
|
a NULL terminated array of directories to be loaded. |
void visu_ui_panel_browser_setCurrentDirectory
(const gchar *dir
);
Change the directory for the browser. The directory is not parsed immediately but only when the subpanel becomes visible.
|
the path of a directory. |
void visu_ui_panel_browser_setMessage (const gchar *message
,GtkMessageType message_type
);
This routine is used to give the user a message. This message can be mere information or a warning or an error.
|
a string to be displaied. |
|
the kind of message. |
Since 3.6