Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > media > main > by-pkgid > ca81b57b553ae75608ba0fc5e7925e4e > files > 729

libgtkmm1.2-devel-1.2.10-1mdk.ppc.rpm

#include "TestFixture.h"

/*
 * Gtk::ButtonBox
 */

class ButtonBoxFrame : public Gtk::Frame 
{
public:
  ButtonBoxFrame ( bool horizontal, string title,
		   gint spacing, gint child_w, 
		   gint child_h, GtkButtonBoxStyle layout );
  ~ButtonBoxFrame () { cout << "~ButtonBoxFrame" << endl; delete bbox;}
private:
  Gtk::ButtonBox *bbox;
  Gtk::Button     okButton;
  Gtk::Button     cancelButton;
  Gtk::Button     helpButton;
};


class ButtonBoxTest : public TestFixture 
{
public:
  static TestFixture * create ();
  virtual             ~ButtonBoxTest () {};
  virtual void         destroyTest ();
private:
  // ctor
  ButtonBoxTest ();
  // functions
  Gtk::Frame * create_bbox ( bool horizontal, string title, 
			    gint spacing, gint child_w, 
			    gint child_h, gint layout );
  // data
  static ButtonBoxTest * theTest;
  Gtk::Frame              hFrame;
  Gtk::VBox               hframeVBox;
  Gtk::Frame              vFrame;
  Gtk::HBox               vframeHBox;
};