18 #ifndef LDRBLOCKWIDGET_H
19 #define LDRBLOCKWIDGET_H
21 #include <qgroupbox.h>
25 #include <odinpara/ldrblock.h>
27 class LDRwidgetDialog;
31 class LDRblockGrid :
public QWidget {
36 LDRblockGrid(
LDRblock& block,
unsigned int columns=1,QWidget *parent=0,
const char* omittext=
"");
43 void updateSubWidget();
44 void deleteSubDialogs();
49 void swapSliderTracking() {}
50 void emitValueChanged() {emit valueChanged();}
54 friend class LDRblockScrollView;
61 STD_list<LDRwidgetDialog*> subdialogs;
67 class LDRblockScrollView :
public QObject {
71 LDRblockScrollView(
LDRblock& block,
unsigned int columns=1, QWidget *parent=0,
const char* omittext=
"");
72 ~LDRblockScrollView();
76 QWidget* get_widget() {
return scroll->get_widget();}
82 void updateWidget() {ldrgrid->updateWidget();}
83 void deleteDialogs() {ldrgrid->deleteDialogs();}
84 void swapSliderTracking() {ldrgrid->swapSliderTracking();}
85 void emitValueChanged() {emit valueChanged();}
88 friend class LDRblockWidget;
90 void createDialog() {ldrgrid->createDialog();}
93 LDRblockGrid* ldrgrid;
99 class LDRblockWidget :
public QGroupBox {
104 LDRblockWidget(
LDRblock& ldrblock,
unsigned int columns=1,QWidget *parent=0,
bool doneButton=
false,
bool is_dialog=
false,
const char* omittext=
"",
bool storeLoadButtons=
false,
bool readonly=
false);
111 void doneButtonPressed();
115 void updateWidget() {
if(ldrscroll) ldrscroll->updateWidget();}
116 void deleteDialogs() {
if(ldrscroll) ldrscroll->deleteDialogs();}
117 void swapSliderTracking() {
if(ldrscroll) ldrscroll->swapSliderTracking();}
119 void emitValueChanged() {emit valueChanged();}
136 LDRblockScrollView* ldrscroll;
139 STD_vector<GuiListItem*> noedititems;
148 class LDRwidgetDialog :
public QObject,
public GuiDialog {
151 LDRwidgetDialog(
LDRblock& ldr,
unsigned int columns=1,QWidget *parent=0,
bool modal=
false,
bool readonly=
false);
160 LDRblockWidget *ldrwidget;