2009-11-23 20:18:47 +00:00
|
|
|
/***************/
|
|
|
|
/* worksheet.h */
|
|
|
|
/***************/
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
// For page and paper size, values are in 1/1000 inch
|
2007-05-28 18:09:49 +00:00
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
#ifndef WORKSHEET_H_
|
|
|
|
#define WORKSHEET_H_
|
2009-04-05 20:49:15 +00:00
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
// Forwadr declarations:
|
|
|
|
class EDA_DRAW_PANEL;
|
|
|
|
class TITLE_BLOCK;
|
|
|
|
class PAGE_INFO;
|
|
|
|
|
2013-05-23 16:38:17 +00:00
|
|
|
#define PAS_REF 2000 // Pitch (in mils) of reference locations in worksheet
|
2013-05-22 08:45:25 +00:00
|
|
|
|
2007-05-06 16:03:28 +00:00
|
|
|
struct Ki_WorkSheetData
|
|
|
|
{
|
|
|
|
public:
|
2009-11-23 20:18:47 +00:00
|
|
|
int m_Type;
|
2009-05-30 16:06:01 +00:00
|
|
|
Ki_WorkSheetData* Pnext;
|
2009-11-23 20:18:47 +00:00
|
|
|
int m_Posx, m_Posy;
|
|
|
|
int m_Endx, m_Endy;
|
2013-05-24 08:59:40 +00:00
|
|
|
const wxChar* m_TextBase;
|
|
|
|
int m_Flags;
|
2007-05-06 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
2013-05-22 08:45:25 +00:00
|
|
|
/**
|
|
|
|
* Function DrawPageLayout is a core function to draw the page layout with
|
|
|
|
* the frame and the basic inscriptions.
|
|
|
|
* @param aDC The device context.
|
|
|
|
* @param aCanvas The EDA_DRAW_PANEL to draw into, or NULL if the page
|
|
|
|
* layout is not drawn into the main panel.
|
2013-05-25 09:01:44 +00:00
|
|
|
* @param aPageInfo for margins and page size (in mils).
|
2013-05-22 08:45:25 +00:00
|
|
|
* @param aFullSheetName The sheetpath (full sheet name), for basic inscriptions.
|
|
|
|
* @param aFileName The file name, for basic inscriptions.
|
|
|
|
* @param aTitleBlock The sheet title block, for basic inscriptions.
|
|
|
|
* @param aSheetCount The number of sheets (for basic inscriptions).
|
|
|
|
* @param aSheetNumber The sheet number (for basic inscriptions).
|
|
|
|
* @param aPenWidth the pen size The line width for drawing.
|
|
|
|
* @param aScalar the scale factor to convert from mils to internal units.
|
|
|
|
* @param aLineColor The color for drawing.
|
|
|
|
* @param aTextColor The color for inscriptions.
|
|
|
|
*
|
|
|
|
* Parameters used in aPageInfo
|
|
|
|
* - the size of the page layout.
|
|
|
|
* - the LTmargin The left top margin of the page layout.
|
|
|
|
* - the RBmargin The right bottom margin of the page layout.
|
|
|
|
*/
|
|
|
|
void DrawPageLayout( wxDC* aDC, EDA_DRAW_PANEL * aCanvas,
|
|
|
|
const PAGE_INFO& aPageInfo,
|
|
|
|
const wxString &aFullSheetName,
|
|
|
|
const wxString& aFileName,
|
|
|
|
TITLE_BLOCK& aTitleBlock,
|
|
|
|
int aSheetCount, int aSheetNumber,
|
|
|
|
int aPenWidth, double aScalar,
|
|
|
|
EDA_COLOR_T aLineColor, EDA_COLOR_T aTextColor );
|
|
|
|
|
2012-03-26 21:45:05 +00:00
|
|
|
#endif // WORKSHEET_H_
|