1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
/////////////////////////////////////////////////////////////////////////////
// Name: MainFrame.h
// Purpose:
// Author: Federico Pinna
// Modified by:
// Created: 05/02/04 23:19:32
// RCS-ID:
// Copyright: (c) 2004 Reitek S.p.A.
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifndef _MAINFRAME_H_
#define _MAINFRAME_H_
#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "MainFrame.cxx"
#endif
/*!
* Includes
*/
////@begin includes
#include "wx/frame.h"
#include "wx/statusbr.h"
#include "wx/treectrl.h"
////@end includes
/*!
* Forward declarations
*/
////@begin forward declarations
class wxTreeCtrl;
////@end forward declarations
/*!
* Control identifiers
*/
////@begin control identifiers
#define ID_FRAME 10000
#define SYMBOL_MAINFRAME_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_MAINFRAME_TITLE _("MainFrame")
#define SYMBOL_MAINFRAME_IDNAME ID_FRAME
#define SYMBOL_MAINFRAME_SIZE wxSize(280, 500)
#define SYMBOL_MAINFRAME_POSITION wxDefaultPosition
#define ID_MENU 10001
#define ID_MENU1 10005
#define ID_MENU2 10006
#define ID_STATUSBAR 10002
#define ID_PANEL 10003
#define ID_TREECTRL 10004
////@end control identifiers
/*!
* Compatibility
*/
#ifndef wxCLOSE_BOX
#define wxCLOSE_BOX 0x1000
#endif
/*!
* MainFrame class declaration
*/
class MainFrame: public wxFrame
{
DECLARE_CLASS( MainFrame )
DECLARE_EVENT_TABLE()
public:
/// Constructors
MainFrame( );
MainFrame( wxWindow* parent, wxWindowID id = SYMBOL_MAINFRAME_IDNAME, const wxString& caption = SYMBOL_MAINFRAME_TITLE, const wxPoint& pos = SYMBOL_MAINFRAME_POSITION, const wxSize& size = SYMBOL_MAINFRAME_SIZE, long style = SYMBOL_MAINFRAME_STYLE );
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_MAINFRAME_IDNAME, const wxString& caption = SYMBOL_MAINFRAME_TITLE, const wxPoint& pos = SYMBOL_MAINFRAME_POSITION, const wxSize& size = SYMBOL_MAINFRAME_SIZE, long style = SYMBOL_MAINFRAME_STYLE );
/// Creates the controls and sizers
void CreateControls();
////@begin MainFrame event handler declarations
/// wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU
virtual void OnConnect( wxCommandEvent& event );
/// wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU1
virtual void OnDisconnect( wxCommandEvent& event );
/// wxEVT_COMMAND_MENU_SELECTED event handler for ID_MENU2
virtual void OnQuit( wxCommandEvent& event );
////@end MainFrame event handler declarations
////@begin MainFrame member function declarations
////@end MainFrame member function declarations
/// Should we show tooltips?
static bool ShowToolTips();
////@begin MainFrame member variables
wxTreeCtrl* m_RosterTree;
////@end MainFrame member variables
};
#endif
// _MAINFRAME_H_
|