25 #include <Base/Common/W32Compat.hh>
26 #include "HistoFrame.hh"
27 #include <Gui/HistoImageCanvas.hh>
33 #if !defined(__WXPM__)
34 # include <img/biasviewwx.xpm>
44 wxPoint pos, wxSize size)
45 : wxFrame(parent, -1, title, pos, size,
46 wxDEFAULT_FRAME_STYLE | wxCLIP_CHILDREN | wxFULL_REPAINT_ON_RESIZE)
48 SetIcon(wxIcon(biasviewwx_xpm));
61 int widths[] = {100, -1};
65 GetStatusBar()->SetStatusWidths(2, widths);
66 GetStatusBar()->SetStatusText(wxT(
"Histogramm"), 0);
67 GetStatusBar()->Show();
69 SetMinSize(wxSize(300, 250));
76 wxSize size_canvas = wxSize(size.GetWidth()-6,
79 wxDefaultPosition, size_canvas);
81 wxBoxSizer *box =
new wxBoxSizer(wxVERTICAL);
84 box->Add(Window_, 1, wxALL | wxGROW, 3);
111 if(!(Window_->SameName((wxString)name,
true))){
135 Window_->SetSize(this->GetSize().GetWidth(), this->GetSize().GetHeight()-28);
HistoImageCanvas * Window_
It's a Frame used to have a Histogramm Canvas, which describes a histogramm of current image...
void Setup(wxSize size=wxSize(300, 250))
void OnQuit(wxCommandEvent &event)
It's a Canvas used to compute Histogram for current image working.
void OnSize(wxSizeEvent &event)
void OnClose(wxCloseEvent &event)
HistoFrame(wxWindow *parent, const wxString &title, wxPoint pos=wxPoint(10, 10), wxSize size=wxSize(300, 250))
void NewImage(BIAS::ImageBase &im, const wxString &name)
This is the base class for images in BIAS.