]> Shamusworld >> Repos - architektonas/blob - src/base/rs_dialogfactoryadapter.h
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / base / rs_dialogfactoryadapter.h
1 #ifndef RS_DIALOGFACTORYADAPTER_H
2 #define RS_DIALOGFACTORYADAPTER_H
3
4 #include "rs_dialogfactoryinterface.h"
5 #include "rs_block.h"
6 #include "rs_layer.h"
7
8 class RS_BlockList;
9 class RS_LayerList;
10
11 /**
12  * Adapter for dialog factory interface.
13  * Used when no factory object was set.
14  */
15 class RS_DialogFactoryAdapter : public RS_DialogFactoryInterface
16 {
17         public:
18                 RS_DialogFactoryAdapter() {}
19                 virtual ~RS_DialogFactoryAdapter() {}
20                 virtual void requestPreviousMenu() {}
21                 virtual void requestWarningDialog(const QString &) {}
22                 virtual GraphicView * requestNewDocument(const QString & = QString::null,
23                         RS_Document * = NULL) { return NULL; }
24                 virtual void requestSimulationControls() {}
25                 virtual RS_Layer * requestNewLayerDialog(RS_LayerList * = NULL) { return NULL; }
26                 virtual RS_Layer * requestLayerRemovalDialog(RS_LayerList * = NULL) { return NULL; }
27                 virtual RS_Layer * requestEditLayerDialog(RS_LayerList * = NULL) { return NULL; }
28                 virtual RS_BlockData requestNewBlockDialog(RS_BlockList *) { return RS_BlockData(); }
29                 virtual RS_Block * requestBlockRemovalDialog(RS_BlockList *) { return NULL; }
30                 virtual RS_BlockData requestBlockAttributesDialog(RS_BlockList *) { return RS_BlockData(); }
31                 virtual void requestEditBlockWindow(RS_BlockList *) {}
32                 virtual void closeEditBlockWindow(RS_Block *) {}
33                 virtual QString requestImageOpenDialog() { return ""; }
34                 virtual void requestOptions(RS_ActionInterface *, bool, bool = false) {}
35                 virtual void requestSnapDistOptions(double &, bool) {}
36                 virtual bool requestAttributesDialog(RS_AttributesData &, RS_LayerList &) { return false; }
37                 virtual bool requestMoveDialog(RS_MoveData &) { return false; }
38                 virtual bool requestRotateDialog(RS_RotateData &) { return false; }
39                 virtual bool requestScaleDialog(RS_ScaleData &) { return false; }
40                 virtual bool requestMirrorDialog(RS_MirrorData &) { return false; }
41                 virtual bool requestMoveRotateDialog(RS_MoveRotateData &) { return false; }
42                 virtual bool requestRotate2Dialog(RS_Rotate2Data &) { return false; }
43                 virtual void requestToolBar(RS2::ToolBarId) {}
44                 virtual void requestToolBarSelect(RS_ActionInterface *, RS2::ActionType) {}
45                 virtual bool requestModifyEntityDialog(RS_Entity *) { return false; }
46                 virtual bool requestTextDialog(RS_Text *) { return false; }
47                 virtual bool requestHatchDialog(RS_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