source: eviacam/trunk/fuentes/src/eviacamapp.h

Last change on this file was 567, checked in by mabarracus, 4 years ago

updated sources to version 2.0.3

File size: 2.5 KB
Line 
1/////////////////////////////////////////////////////////////////////////////
2// Name:        eviacamapp.h
3// Purpose: 
4// Author:      Cesar Mauri Loba (cesar at crea-si dot com)
5// Modified by:
6// Created:     09/01/2008 21:40:06
7// Copyright:   (C) 2008-11 Cesar Mauri Loba - CREA Software Systems
8//
9//  This program is free software: you can redistribute it and/or modify
10//  it under the terms of the GNU General Public License as published by
11//  the Free Software Foundation, either version 3 of the License, or
12//  (at your option) any later version.
13//
14//  This program is distributed in the hope that it will be useful,
15//  but WITHOUT ANY WARRANTY; without even the implied warranty of
16//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17//  GNU General Public License for more details.
18//
19//  You should have received a copy of the GNU General Public License
20//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21/////////////////////////////////////////////////////////////////////////////
22
23#ifndef _EVIACAMAPP_H_
24#define _EVIACAMAPP_H_
25
26
27/*!
28 * Includes
29 */
30
31////@begin includes
32#include "wx/image.h"
33#include "wviacam.h"
34////@end includes
35#include <wx/app.h>
36#include <assert.h>
37#if !defined(NDEBUG)
38#include <wx/log.h>
39#endif
40
41/*!
42 * Forward declarations
43 */
44class CViacamController;
45
46
47////@begin forward declarations
48////@end forward declarations
49
50/*!
51 * Control identifiers
52 */
53
54////@begin control identifiers
55////@end control identifiers
56
57
58/*!
59 * EViacamApp class declaration
60 */
61
62class EViacamApp: public wxApp
63{   
64        DECLARE_CLASS( EViacamApp )
65        DECLARE_EVENT_TABLE()
66
67public:
68        /// Constructor
69        EViacamApp();
70
71        // Return controller
72        CViacamController& GetController() {
73                assert (m_pController);
74                return *m_pController;
75        }
76
77private:
78        void Init();
79
80        /// Initialises the application
81        virtual bool OnInit();
82
83        /// Called on exit
84        virtual int OnExit();
85
86        virtual void OnInitCmdLine(wxCmdLineParser& parser);
87
88    virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
89
90        void OnEndSession( wxCloseEvent& event );
91
92////@begin EViacamApp event handler declarations
93
94////@end EViacamApp event handler declarations
95
96////@begin EViacamApp member function declarations
97
98////@end EViacamApp member function declarations
99
100////@begin EViacamApp member variables
101////@end EViacamApp member variables
102        //volatile
103        CViacamController* m_pController;
104#if !defined(NDEBUG)
105        wxLogNull m_disableErrorMessages;
106#endif
107};
108
109/*!
110 * Application instance declaration
111 */
112
113////@begin declare app
114DECLARE_APP(EViacamApp)
115////@end declare app
116
117#endif
118    // _GUIAPP_H_
Note: See TracBrowser for help on using the repository browser.