1 #ifndef __DIALOGFACTORYADAPTER_H__
2 #define __DIALOGFACTORYADAPTER_H__
4 #include "dialogfactoryinterface.h"
12 * Adapter for dialog factory interface.
13 * Used when no factory object was set.
15 class DialogFactoryAdapter: public DialogFactoryInterface
18 DialogFactoryAdapter() {}
19 virtual ~DialogFactoryAdapter() {}
20 virtual void requestPreviousMenu() {}
21 virtual void requestWarningDialog(const QString &) {}
22 virtual GraphicView * requestNewDocument(const QString & = QString::null,
23 Document * = NULL) { return NULL; }
24 virtual void requestSimulationControls() {}
25 virtual Layer * requestNewLayerDialog(LayerList * = NULL) { return NULL; }
26 virtual Layer * requestLayerRemovalDialog(LayerList * = NULL) { return NULL; }
27 virtual Layer * requestEditLayerDialog(LayerList * = NULL) { return NULL; }
28 virtual BlockData requestNewBlockDialog(BlockList *) { return BlockData(); }
29 virtual Block * requestBlockRemovalDialog(BlockList *) { return NULL; }
30 virtual BlockData requestBlockAttributesDialog(BlockList *) { return BlockData(); }
31 virtual void requestEditBlockWindow(BlockList *) {}
32 virtual void closeEditBlockWindow(Block *) {}
33 virtual QString requestImageOpenDialog() { return ""; }
34 virtual void requestOptions(ActionInterface *, bool, bool = false) {}
35 virtual void requestSnapDistOptions(double &, bool) {}
36 virtual bool requestAttributesDialog(AttributesData &, LayerList &) { return false; }
37 virtual bool requestMoveDialog(MoveData &) { return false; }
38 virtual bool requestRotateDialog(RotateData &) { return false; }
39 virtual bool requestScaleDialog(ScaleData &) { return false; }
40 virtual bool requestMirrorDialog(MirrorData &) { return false; }
41 virtual bool requestMoveRotateDialog(MoveRotateData &) { return false; }
42 virtual bool requestRotate2Dialog(Rotate2Data &) { return false; }
43 virtual void requestToolBar(RS2::ToolBarId) {}
44 virtual void requestToolBarSelect(ActionInterface *, RS2::ActionType) {}
45 virtual bool requestModifyEntityDialog(Entity *) { return false; }
46 virtual bool requestTextDialog(Text *) { return false; }
47 virtual bool requestHatchDialog(Hatch *) { return false; }
48 virtual void requestOptionsGeneralDialog() {}
49 virtual void requestOptionsDrawingDialog(Drawing &) {}
51 virtual bool requestCamOptionsDialog(Drawing& ) { printf("fake\n"); return false; }
53 virtual void updateCoordinateWidget(const Vector &, const Vector &, bool = false) {}
54 virtual void updateMouseWidget(const QString &, const QString &) {}
55 virtual void updateSelectionWidget(int) {}
56 virtual void commandMessage(const QString &) {}
57 virtual bool isAdapter() { return true; }
60 #endif // __DIALOGFACTORYADAPTER_H__