openldev/openldev-widgets/openldev-find-toolbar.h File Reference

FindToolbar. More...

#include <gtk/gtk.h>
#include <iostream>
#include <vector>

Data Structures

struct  FindToolbar
 Find toolbar widgets including an error message. More...

Functions

void openldev_find_toolbar_show_error (FindToolbar *toolbar, gboolean show)
gboolean openldev_find_toolbar_search_files_is_active (FindToolbar *toolbar)
void openldev_find_toolbar_add_choice (FindToolbar *toolbar, string choice)


Detailed Description


Function Documentation

void openldev_find_toolbar_add_choice FindToolbar toolbar,
string  choice
 

Add an option to the drop down list of past searches. This is limited to 10 options, so if there are already 10 in the list, the last one will be removed before the new one is added. This will automatically update the GtkComboBox, so there is no need to take further action.

Parameters:
toolbar A FindToolbar widget.
choice The text to add to the list of choices.

gboolean openldev_find_toolbar_search_files_is_active FindToolbar toolbar  ) 
 

Get whether the user wants to search in all files for their text.

Parameters:
toolbar A FindToolbar widget.
Returns:
TRUE if the search_files GtkCheckButton is active.

void openldev_find_toolbar_show_error FindToolbar toolbar,
gboolean  show
 

Show or hide the error message on the toolbar. When there is an unsuccessful search, this should be set to TRUE.

Parameters:
toolbar A FindToolbar widget.
show TRUE if the error message should be shown.


Generated on Sun May 14 14:57:41 2006 for OpenLDev by  doxygen 1.4.6