// -*- C++ -*-
//
// generated by wxGlade 0.9.5 on Sun Feb  2 13:54:43 2020
//
// Example for compiling a single file project under Linux using g++:
//  g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp
//
// Example for compiling a multi file project under Linux using g++:
//  g++ main.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp Dialog1.cpp Frame1.cpp
//

#ifndef MATPLOTLIB_EXAMPLE_H
#define MATPLOTLIB_EXAMPLE_H

#include <wx/wx.h>
#include <wx/image.h>

// begin wxGlade: ::dependencies
// end wxGlade

// begin wxGlade: ::extracode
import matplotlib
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
// end wxGlade


class MyFrame: public wxFrame {
public:
    // begin wxGlade: MyFrame::ids
    // end wxGlade

    MyFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos=wxDefaultPosition, const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);

private:
    // begin wxGlade: MyFrame::methods
    void set_properties();
    void do_layout();
    // end wxGlade

protected:
    // begin wxGlade: MyFrame::attributes
    FigureCanvas* matplotlib_canvas;
    wxTextCtrl* text_function;
    wxTextCtrl* text_xmin;
    wxTextCtrl* text_max;
    wxTextCtrl* text_xstep;
    wxButton* button_plot;
    wxButton* button_clear;
    wxPanel* panel_1;
    // end wxGlade

    DECLARE_EVENT_TABLE();

public:
    void on_button_plot(wxCommandEvent &event); // wxGlade: <event_handler>
}; // wxGlade: end class


#endif // MATPLOTLIB_EXAMPLE_H
