about summary refs log blame commit diff stats
path: root/src/main.cpp
blob: db7653c14b8357e214134610ab38c2cc61f82f0f (plain) (tree)
1
2
3
4
5
6
7
8




                      
                   
                           

                                 
        
                         
                                         
                              





                                             
#include <wx/wxprec.h>

#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif

#include "logger.h"
#include "tracker_config.h"
#include "tracker_frame.h"

class TrackerApp : public wxApp {
 public:
  virtual bool OnInit() {
    wxLog::SetActiveTarget(new Logger());

    GetTrackerConfig().Load();

    TrackerFrame *frame = new TrackerFrame();
    frame->Show(true);
    return true;
  }
};

wxIMPLEMENT_APP(TrackerApp);