![]() |
![]() |
![]() |
V_Sim API - Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define BROWSER_PREVIOUS #define BROWSER_NEXT ToolPanel* panelBrowser_init (); gboolean panelBrowserGet_nextSelected (GtkTreePath **path
,GtkTreeIter *iterSelected
,int direction
); gboolean panelBrowserGet_currentSelected (GtkTreePath **path
,GtkTreeIter *iterSelected
); void panelBrowserSet_currentDirectory (const gchar *dir
); void panelBrowserSet_currentDirectories (gchar **dirs
); void panelBrowserSet_infoMessage (const gchar *message
,GtkMessageType message_type
);
#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()
.
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. |
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. |
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. |
void panelBrowserSet_currentDirectory (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 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. |
void panelBrowserSet_infoMessage (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