00001 #ifndef GITKR_LAYOUT_H
00002 #define GITKR_LAYOUT_H
00003
00004 #include "GitkrIncludes.h"
00005 #include "Qb/QbExaminerViewer.h"
00006
00007 #include "GitkrWidgetList.h"
00008
00012 class GitkrLayout : public GitkLayout {
00013 public:
00014 GitkrLayout(GitkDialogPtr dialog);
00015 ~GitkrLayout(void);
00016 void show();
00017 void hide();
00018 void getStyle(SbString & style);
00019
00020 static QWidget * window;
00021 static QbExaminerViewer * viewer;
00022 static SoSeparator * sceneRoot;
00023 static QbWidgetController * widgetController;
00025 private:
00026 GitkDialogPtr dialog;
00027 GitkrWidgetList gitkrWidgets;
00028
00029 QbBox * dialogBox;
00030 QbLabel * titleLabel;
00031 QbBox * mainBox;
00032 QbBox * controlBox;
00034 SoNode * decoration;
00035 static const char * DEFAULT_DECORATION[];
00036
00037 void build();
00038 void build_recursive(QbBox * parentBox, xmlNodePtr cur, bool box_vert);
00039 void addRadioGroup(xmlNodePtr node, QbBox * box);
00040 };
00041
00042 #endif
00043