1 #include <Base/Common/W32Compat.hh>
2 #include "ZoomFrame.hh"
3 #include <Base/Image/Image.hh>
4 #include <Gui/ZoomImageCanvas.hh>
5 #include <Gui/StringConv.hh>
18 : wxFrame(parent, -1, title)
28 int widths[] = { -1, 280 };
30 SetStatusWidths(2, widths);
32 QuitButton_ =
new wxButton(
this, MIA_ZoomQuitButton, wxT(
"Close"));
36 SLScale_ =
new wxSlider(
this, -1, 10, 1, 25, wxDefaultPosition,
37 wxSize(-1, -1), wxSL_HORIZONTAL);
39 wxBoxSizer *box =
new wxBoxSizer(wxVERTICAL);
40 wxBoxSizer *hbox =
new wxBoxSizer(wxHORIZONTAL);
43 box->Add(
Window_, 1, wxALL | wxGROW, 3);
44 hbox->Add(
new wxStaticText(
this, -1, _T(
"Zoom") ), 0, wxALL, 5);
45 hbox->Add(
SLScale_, 1, wxALL | wxGROW, 5);
46 box->Add(hbox, 0, wxGROW, 0);
48 box->SetSizeHints(
this);
58 if(GetStatusBar()!=NULL)
59 SetStatusText(name, 0);
70 EVT_BUTTON (MIA_ZoomQuitButton,
ZoomFrame::OnQuit)
void OnZoomFactor(wxScrollEvent &event)
void NewCoo(unsigned x, unsigned y)
ZoomFrame(wxWindow *parent, const wxString &title)
void OnClose(wxCloseEvent &event)
void NewImage(BIAS::ImageBase &im, BIAS::Image< unsigned char > &ucim)
used by ImageCanvas and ScaledImageCanvas, should not be used directly
ZoomImageCanvas * Window_
void NewImage(BIAS::ImageBase &im, BIAS::Image< unsigned char > &ucim, const wxString &name)
void NewCoo(unsigned x, unsigned y)
This is the base class for images in BIAS.