/*
 * File:        wxtemp.h
 * Purpose:     Template header file
 * Version:     0.1.1
 * Author:      Peter Ivanov
 * Created:     2003-11-01
 * Last modify: 2003-11-01
 */

// ============================================================================
// declarations
// ============================================================================

// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWindows headers)
#ifndef WX_PRECOMP
    #include "wx/wx.h"
#endif


#include "mylogwin.h"

// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------

// Define a new application type, each program should derive a class from wxApp
class MyApp : public wxApp
{
public:
    // override base class virtuals
    // ----------------------------

    // this one is called on application startup and is a good place for the app
    // initialization (doing it here and not in the ctor allows to have an error
    // return: if OnInit() returns false, the application terminates)
    virtual bool OnInit();
private:
    wxLocale m_locale;
};

// Define a new frame type: this is going to be our main frame
class MyFrame : public wxFrame
{
public:
    // ctor(s)
    MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size,
            long style = wxMINIMIZE_BOX | wxSYSTEM_MENU | wxCAPTION);

    // event handlers (these functions should _not_ be virtual)
    void OnQuit(wxCommandEvent& event);
    void OnAbout(wxCommandEvent& event);
    void OnViewLogWindow (wxCommandEvent& event);   // Log ablakot nyit

private:
    // any class wishing to process wxWindows events must use this macro
    DECLARE_EVENT_TABLE()

    #ifdef __WXDEBUG__
    MyLogWindow *logwin;
    #endif

    wxMenu *menuFile, *menuView, *menuHelp;
};

// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------

// IDs for the controls and the menu commands
enum
{
    // menu items
    App_Quit = 1,
    #ifdef __WXDEBUG__
    App_ViewLogWindow,
    #endif
    
    // it is important for the id corresponding to the "About" command to have
    // this standard value as otherwise it won't be handled properly under Mac
    // (where it is special and put into the "Apple" menu)
    App_About = wxID_ABOUT
};

// ----------------------------------------------------------------------------
// event tables and other macros for wxWindows
// ----------------------------------------------------------------------------

// the event tables connect the wxWindows events with the functions (event
// handlers) which process them. It can be also done at run-time, but for the
// simple menu events like this the static method is much simpler.
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
    #ifdef __WXDEBUG__
    EVT_MENU(App_ViewLogWindow, MyFrame::OnViewLogWindow)
    #endif
    EVT_MENU(App_Quit,  MyFrame::OnQuit)
    EVT_MENU(App_About, MyFrame::OnAbout)
END_EVENT_TABLE()


