28#ifndef __TRACKPRINTOUT_H__
29#define __TRACKPRINTOUT_H__
32#include <wx/datetime.h>
33#include <wx/cmdline.h>
36#include <wx/msw/private.h>
39#include "ocpn_types.h"
41#include "TrackPropDlg.h"
42#include "printtable.h"
43#include "ocpn_frame.h"
49 const wxString& title = _T(
"My Track printout" ));
50 virtual bool OnPrintPage(
int page);
51 void DrawPage(wxDC* dc);
52 virtual void OnPreparePrinting();
53 virtual bool HasPage(
int num) {
return num > 0 && num <= numberOfPages; };
55 virtual void GetPageInfo(
int* minPage,
int* maxPage,
int* selPageFrom,
62 std::vector<bool> toPrintOut;
64 static const int pN = 5;
75#define ID_TRACKPRINTSELECTION 9000
76#define SYMBOL_TRACKPRINT_SELECTION_STYLE \
77 wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
78#define SYMBOL_TRACKPRINT_SELECTION_TITLE _("Print Track Selection")
79#define SYMBOL_TRACKPRINT_SELECTION_IDNAME ID_TRACKPRINTSELECTION
80#define SYMBOL_TRACKPRINT_SELECTION_SIZE wxSize(750, 300)
81#define SYMBOL_TRACKPRINT_SELECTION_POSITION wxDefaultPosition
83#define ID_TRACKPRINT_SELECTION_OK 9001
84#define ID_TRACKPRINT_SELECTION_CANCEL 9002
95 wxWindowID
id = SYMBOL_TRACKPRINT_SELECTION_IDNAME,
96 const wxString& caption = SYMBOL_TRACKPRINT_SELECTION_TITLE,
97 const wxPoint& pos = SYMBOL_TRACKPRINT_SELECTION_POSITION,
98 const wxSize& size = SYMBOL_TRACKPRINT_SELECTION_SIZE,
99 long style = SYMBOL_TRACKPRINT_SELECTION_STYLE);
103 bool Create(wxWindow* parent,
104 wxWindowID
id = SYMBOL_TRACKPRINT_SELECTION_IDNAME,
105 const wxString& caption = SYMBOL_TRACKPRINT_SELECTION_TITLE,
106 const wxPoint& pos = SYMBOL_TRACKPRINT_SELECTION_POSITION,
107 const wxSize& size = SYMBOL_TRACKPRINT_SELECTION_SIZE,
108 long style = SYMBOL_TRACKPRINT_SELECTION_STYLE);
111 void SetColorScheme(ColorScheme cs);
112 void SetDialogTitle(
const wxString& title);
113 void OnTrackpropCancelClick(wxCommandEvent& event);
114 void OnTrackpropOkClick(wxCommandEvent& event);
117 static bool ShowToolTips();
119 wxButton* m_CancelButton;
120 wxButton* m_OKButton;
122 wxCheckBox* m_checkBoxPosition;
123 wxCheckBox* m_checkBoxCourse;
124 wxCheckBox* m_checkBoxDistance;
125 wxCheckBox* m_checkBoxTime;
126 wxCheckBox* m_checkBoxSpeed;
Extension of a class Table with printing into dc.
bool Create(wxWindow *parent, wxWindowID id=SYMBOL_TRACKPRINT_SELECTION_IDNAME, const wxString &caption=SYMBOL_TRACKPRINT_SELECTION_TITLE, const wxPoint &pos=SYMBOL_TRACKPRINT_SELECTION_POSITION, const wxSize &size=SYMBOL_TRACKPRINT_SELECTION_SIZE, long style=SYMBOL_TRACKPRINT_SELECTION_STYLE)