]> Shamusworld >> Repos - architektonas/blob - src/base/dialogfactoryadapter.h
Bugfixes related to removing Snapper class.
[architektonas] / src / base / dialogfactoryadapter.h
1 #ifndef __DIALOGFACTORYADAPTER_H__
2 #define __DIALOGFACTORYADAPTER_H__
3
4 #include "dialogfactoryinterface.h"
5 #include "block.h"
6 #include "layer.h"
7
8 class BlockList;
9 class LayerList;
10
11 /**
12  * Adapter for dialog factory interface.
13  * Used when no factory object was set.
14  */
15 class DialogFactoryAdapter: public DialogFactoryInterface
16 {
17         public:
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 &) {}
50 #ifdef RS_CAM
51                 virtual bool requestCamOptionsDialog(Drawing& ) { printf("fake\n"); return false; }
52 #endif
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; }
58 };
59
60 #endif  // __DIALOGFACTORYADAPTER_H__