libyui-gtk-pkg  2.43.2
 All Classes
ygtkpkgquerycombo.h
1 /********************************************************************
2  * YaST2-GTK - http://en.opensuse.org/YaST2-GTK *
3  ********************************************************************/
4 
5 /* Comprises several QueryWidget widgets.
6  You probably want to use this in cooperation with YGtkPkgFilerBox.
7 */
8 
9 #ifndef YGTK_PKG_QUERY_COMBO_H
10 #define YGTK_PKG_QUERY_COMBO_H
11 
12 #include "ygtkpkgquerywidget.h"
13 #include <gtk/gtk.h>
14 
16 {
17  struct Factory {
18  virtual YGtkPkgQueryWidget *createQueryWidget (
19  YGtkPkgQueryCombo *combo, int index) = 0;
20  };
21 
22  YGtkPkgQueryCombo (Factory *factory);
23  virtual ~YGtkPkgQueryCombo();
24  virtual GtkWidget *getWidget();
25 
26  void add (const char *title);
27  void setActive (int index);
28 
29  virtual bool begsUpdate();
30  virtual void updateList (Ypp::List list);
31 
32  virtual void clearSelection();
33  virtual bool writeQuery (Ypp::PoolQuery &query);
34 
35  virtual GtkWidget *createToolbox();
36 
37  virtual void setListener (Listener *listener);
38 
39  struct Impl;
40  Impl *impl;
41 };
42 
43 #endif
44