~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/panelgrid.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  
 
3
 *  $Id: panelgrid.h 3535 2011-03-18 17:57:05Z carlos $
 
4
 *  Ginkgo CADx Project
 
5
 *
 
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
 
7
 *  http://ginkgo-cadx.com
 
8
 *
 
9
 *  This file is licensed under LGPL v3 license.
 
10
 *  See License.txt for details
 
11
 *
 
12
 *
 
13
 */
 
14
#pragma once
 
15
#include <main/gui/mainwindow/ventanaprincipalbase.h>
 
16
#include <api/icontroladorvistas.h>
 
17
 
 
18
class VentanaPrincipal;
 
19
class IconoImagenCtrl;
 
20
 
 
21
namespace GNC {
 
22
        namespace GUI {
 
23
                class DialogoDesencajado: public DialogoDesencajadoBase, public GNC::GCS::IObservadorVistas
 
24
                {
 
25
                public:
 
26
                        DialogoDesencajado(wxWindow* pParent, VentanaPrincipal* pVentanaPrincipal);
 
27
                        ~DialogoDesencajado();
 
28
                        void AddPanel(wxWindow* pWin, const wxString& titulo);
 
29
                        void SetTitulo(const wxString& titulo);
 
30
                        wxWindow* GetWindow();
 
31
                        wxString GetTitulo();
 
32
 
 
33
                protected:
 
34
                        void OnBotonTitulo(wxCommandEvent &);
 
35
                        virtual void OnCloseDialogo(wxCloseEvent &event);
 
36
                        virtual void OnVistaActivada(GNC::GCS::IVista* pVista);
 
37
                        virtual void RefrescarVista(GNC::GCS::IVista* pVista);
 
38
 
 
39
                        wxWindow* m_pWindow;
 
40
                        VentanaPrincipal* m_pVentanaPrincipal;
 
41
 
 
42
                        IconoImagenCtrl* m_pBCerrar;
 
43
                        IconoImagenCtrl* m_pBOpciones;
 
44
                };
 
45
 
 
46
                class PanelGrid: public PanelGridBase
 
47
                {
 
48
                public:
 
49
                        PanelGrid(wxWindow* pParent, VentanaPrincipal* pVentanaPrincipal);
 
50
                        ~PanelGrid();
 
51
                        void AddPanel(wxWindow* pWin, const wxString& titulo);
 
52
                        void SetTitulo(const wxString& titulo);
 
53
                        wxWindow* GetWindow();
 
54
                        wxString GetTitulo();
 
55
                        bool Cerrar();
 
56
                protected:
 
57
                        virtual void OnPanelGridClose(wxCommandEvent &event);
 
58
                        virtual void OnPrimerPlano(wxCommandEvent &event);
 
59
                        void OnBotonTitulo(wxCommandEvent &);
 
60
                        virtual void OnMenuTitulo( wxMouseEvent& event );
 
61
                        virtual void OnRightButtonUp( wxMouseEvent& event );
 
62
                        void MostrarMenu();
 
63
 
 
64
                        void OnMosaicoHorizontal(wxCommandEvent& event);
 
65
                        void OnMosaicoVertical(wxCommandEvent& event);
 
66
                        void OnMosaicoRestaurar(wxCommandEvent& event);
 
67
                        void OnMosaicoGrid2Col(wxCommandEvent& event);
 
68
                        void OnMosaicoGrid3Col(wxCommandEvent& event);
 
69
                        void OnPantallaCompleta(wxCommandEvent& event);
 
70
                        void OnMenuCerrarTodosTabsClick(wxCommandEvent& event);
 
71
 
 
72
                        void OnSize(wxSizeEvent &event);
 
73
                        void OnPaint(wxPaintEvent& event);
 
74
                        void OnEraseBackground(wxEraseEvent& event);
 
75
 
 
76
                        wxWindow* m_pWindow;
 
77
                        VentanaPrincipal* m_pVentanaPrincipal;
 
78
                        IconoImagenCtrl* m_pBCerrar;
 
79
                        IconoImagenCtrl* m_pBPrimerPlano;
 
80
                        IconoImagenCtrl* m_pBReagrupar;
 
81
                        wxString m_titulo;
 
82
                };
 
83
        }
 
84
}