2012-04-25 19:46:30 +00:00
|
|
|
/**
|
|
|
|
* @file class_gbr_screen.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CLASS_GBR_SCREEN_H_
|
|
|
|
#define CLASS_GBR_SCREEN_H_
|
|
|
|
|
|
|
|
|
|
|
|
#include <base_units.h>
|
2012-05-04 17:44:42 +00:00
|
|
|
#include <class_base_screen.h>
|
2013-03-30 17:24:04 +00:00
|
|
|
#include <layers_id_colors_and_visibility.h>
|
2012-04-25 19:46:30 +00:00
|
|
|
|
2012-04-26 21:34:20 +00:00
|
|
|
#define ZOOM_FACTOR( x ) ( x * IU_PER_DECIMILS )
|
2012-04-25 19:46:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Handle info to display a board */
|
2012-05-04 17:44:42 +00:00
|
|
|
class GBR_SCREEN : public BASE_SCREEN
|
2012-04-25 19:46:30 +00:00
|
|
|
{
|
|
|
|
public:
|
2013-03-31 13:27:46 +00:00
|
|
|
LAYER_NUM m_Active_Layer;
|
2012-04-25 19:46:30 +00:00
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
* @param aPageSizeIU is the size of the initial paper page in internal units.
|
|
|
|
*/
|
|
|
|
GBR_SCREEN( const wxSize& aPageSizeIU );
|
|
|
|
|
|
|
|
~GBR_SCREEN();
|
|
|
|
|
2014-04-30 19:16:22 +00:00
|
|
|
GBR_SCREEN* Next() const { return static_cast<GBR_SCREEN*>( Pnext ); }
|
2012-04-25 19:46:30 +00:00
|
|
|
|
2012-05-04 17:44:42 +00:00
|
|
|
// void SetNextZoom();
|
|
|
|
// void SetPreviousZoom();
|
|
|
|
// void SetLastZoom();
|
|
|
|
|
2012-04-25 19:46:30 +00:00
|
|
|
virtual int MilsToIuScalar();
|
2012-05-04 17:44:42 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Function ClearUndoORRedoList
|
|
|
|
* virtual pure in BASE_SCREEN, so it must be defined here
|
|
|
|
*/
|
|
|
|
void ClearUndoORRedoList( UNDO_REDO_CONTAINER& aList, int aItemCount = -1 );
|
2012-04-25 19:46:30 +00:00
|
|
|
};
|
|
|
|
|
2012-05-04 17:44:42 +00:00
|
|
|
|
2012-04-25 19:46:30 +00:00
|
|
|
#endif // CLASS_GBR_SCREEN_H_
|