added simple search;
added localization support for advanced search
This commit is contained in:
parent
3b4075edec
commit
9c80af5a1d
6 changed files with 372 additions and 123 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.2 $
|
||||
Version : $Revision: 1.3 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/widgets/include/LiveSupport/Widgets/Attic/AdvancedSearchEntry.h,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -66,33 +66,68 @@ using namespace LiveSupport::Core;
|
|||
* A Gtk::VBox with one or more search input fields in it.
|
||||
*
|
||||
* @author $Author: fgerlits $
|
||||
* @version $Revision: 1.2 $
|
||||
* @version $Revision: 1.3 $
|
||||
*/
|
||||
class AdvancedSearchEntry : public Gtk::VBox,
|
||||
public LocalizedObject
|
||||
{
|
||||
private:
|
||||
|
||||
/**
|
||||
* The type for storing both the metadata and the comparison operator
|
||||
* localizations.
|
||||
*/
|
||||
typedef std::vector<std::pair<Glib::ustring, Glib::ustring> >
|
||||
MapVector;
|
||||
|
||||
/**
|
||||
* The list of possible metadata field names.
|
||||
*/
|
||||
Ptr<MapVector>::Ref metadataTypes;
|
||||
|
||||
/**
|
||||
* The list of possible comparison operators.
|
||||
*/
|
||||
Ptr<MapVector>::Ref operatorTypes;
|
||||
|
||||
/**
|
||||
* The metadata field.
|
||||
*/
|
||||
ComboBoxText * metadataType;
|
||||
ComboBoxText * metadataEntry;
|
||||
|
||||
/**
|
||||
* The operator field.
|
||||
*/
|
||||
ComboBoxText * operatorType;
|
||||
ComboBoxText * operatorEntry;
|
||||
|
||||
/**
|
||||
* The "search for this value" field.
|
||||
*/
|
||||
EntryBin * entryBin;
|
||||
EntryBin * valueEntry;
|
||||
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
AdvancedSearchEntry(void) throw ();
|
||||
|
||||
/**
|
||||
* Read the localized metadata field names.
|
||||
*
|
||||
* @exception std::invalid_argument if some keys are not found in
|
||||
* the resource bundle
|
||||
*/
|
||||
void
|
||||
readMetadataTypes(void) throw (std::invalid_argument);
|
||||
|
||||
/**
|
||||
* Read the localized comparison operator names.
|
||||
*
|
||||
* @exception std::invalid_argument if some keys are not found in
|
||||
* the resource bundle
|
||||
*/
|
||||
void
|
||||
readOperatorTypes(void) throw (std::invalid_argument);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue