| V_Sim API - Reference Manual | ||||
|---|---|---|---|---|
ToolPanel* panelBrowser_init (); #define BROWSER_PREVIOUS #define BROWSER_NEXT gboolean panelBrowserGet_currentSelected (GtkTreePath **path, GtkTreeIter *iterSelected); gboolean panelBrowserGet_nextSelected (GtkTreePath **path, GtkTreeIter *iterSelected, int direction); void panelBrowserSet_currentDirectories (gchar **dirs); void panelBrowserSet_currentDirectory (const gchar *dir);
ToolPanel* panelBrowser_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 ToolPanel handling the browser.
Returns : |
a newly created ToolPanel object. |
#define BROWSER_PREVIOUS 0
Value that give the direction when the selector is moved around file list.
See panelBrowserGet_nextSelected().
#define BROWSER_NEXT 1
Value that give the direction when the selector is moved around file list.
See panelBrowserGet_nextSelected().
gboolean panelBrowserGet_currentSelected (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 panelBrowserGet_nextSelected (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 ; |
|
BROWSER_NEXT or BROWSER_PREVIOUS. |
Returns : |
TRUE if one exists. |
void panelBrowserSet_currentDirectories (gchar **dirs);
Change the directories for the browser. It is the same routine than
panelBrowserSet_currentDirectory(), but several directories can be loaded
at once. But internally, contrary to panelBrowserSet_currentDirectory()
the given array must not be freed since it is not copied.
|
a NULL terminated array of directories to be loaded. |