mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-02-07 03:22:03 +08:00
53 lines
1.3 KiB
C++
53 lines
1.3 KiB
C++
#include <wx/wx.h>
|
|
#include <wx/aboutdlg.h>
|
|
#include <wx/filedlg.h>
|
|
|
|
#include "mainframe.hpp"
|
|
#include "dqframe.hpp"
|
|
|
|
class Servoterm: public wxApp
|
|
{
|
|
public:
|
|
bool OnInit();
|
|
private:
|
|
MainFrame* servoframe;
|
|
dqFrame* dqframe;
|
|
void OnAbout(wxCommandEvent& WXUNUSED(event));
|
|
};
|
|
|
|
IMPLEMENT_APP(Servoterm)
|
|
|
|
bool Servoterm::OnInit()
|
|
{
|
|
servoframe = new MainFrame(wxT("Servoterm"));
|
|
dqframe = new dqFrame(wxT("dq"));
|
|
wxMenuBar *menuBar = new wxMenuBar;
|
|
|
|
wxMenu *helpMenu = new wxMenu;
|
|
menuBar->Append(helpMenu, "&Help" );
|
|
helpMenu->Append(wxID_ABOUT);
|
|
Bind(wxEVT_COMMAND_MENU_SELECTED, &Servoterm::OnAbout, this, wxID_ABOUT);
|
|
|
|
servoframe->SetMenuBar( menuBar );
|
|
|
|
//frame->CreateStatusBar();
|
|
//frame->SetStatusText("Statuskram und so");
|
|
|
|
servoframe->Show(TRUE);
|
|
dqframe->Show(TRUE);
|
|
return TRUE;
|
|
}
|
|
|
|
void Servoterm::OnAbout(wxCommandEvent& WXUNUSED(event)){
|
|
/*
|
|
wxAboutDialogInfo aboutInfo;
|
|
aboutInfo.SetName("Servoterm");
|
|
aboutInfo.SetVersion("git");
|
|
aboutInfo.SetDescription(_("Servoterm"));
|
|
aboutInfo.SetCopyright("(C) 2010-2014");
|
|
aboutInfo.SetWebSite("https://github.com/rene-dev/stmbl");
|
|
aboutInfo.AddDeveloper("Crinq");
|
|
aboutInfo.AddDeveloper("Rene-dev");
|
|
wxAboutBox(aboutInfo);
|
|
*/
|
|
} |