Commit 2b62a852 authored by Maciej Suminski's avatar Maciej Suminski

Refactoring: made VIEW, VIEW_CONTROLS, BOARD and PCB_EDIT_FRAME fields in DRAWING_TOOL.

parent 597e98db
This diff is collapsed.
...@@ -26,7 +26,14 @@ ...@@ -26,7 +26,14 @@
#define __DRAWING_TOOL_H #define __DRAWING_TOOL_H
#include <tool/tool_interactive.h> #include <tool/tool_interactive.h>
#include <class_board_item.h>
namespace KIGFX
{
class VIEW;
class VIEW_CONTROLS;
}
class BOARD;
class PCB_EDIT_FRAME;
/** /**
* Class DRAWING_TOOL * Class DRAWING_TOOL
...@@ -69,7 +76,7 @@ public: ...@@ -69,7 +76,7 @@ public:
private: private:
///> Starts drawing a selected shape. ///> Starts drawing a selected shape.
int draw( STROKE_T aShape ); int draw( int aShape );
///> Sets up handlers for various events. ///> Sets up handlers for various events.
void setTransitions(); void setTransitions();
...@@ -77,6 +84,11 @@ private: ...@@ -77,6 +84,11 @@ private:
///> Should drawing be stopped after drawing one object or should it continue with another one. ///> Should drawing be stopped after drawing one object or should it continue with another one.
bool m_continous; bool m_continous;
KIGFX::VIEW* m_view;
KIGFX::VIEW_CONTROLS* m_controls;
BOARD* m_board;
PCB_EDIT_FRAME* m_frame;
// How does line width change after one -/+ key press. // How does line width change after one -/+ key press.
static const int WIDTH_STEP = 100000; static const int WIDTH_STEP = 100000;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment