#include <PnlFoglio.h>
Inherits wxResizeableControlCanvas.
Inheritance diagram for PnlFoglio:


Public Member Functions | |
| PnlFoglio (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel") | |
| Constructor. | |
| ~PnlFoglio () | |
| Distruttore. | |
| void | MnuAggiungiGrafico2DClick (wxCommandEvent &event) |
| Adds a new 2D graph to the page. | |
| void | MnuAggiungiGrafico3DClick (wxCommandEvent &event) |
| Adds a new 3D graph to the page. | |
| void | MnuAggiungiEtichettaClick (wxCommandEvent &event) |
| Adds a new label to the page. | |
| void | OnChar (wxKeyEvent &event) |
| Processes the OnChar event. | |
| wxMenu * | GetPopUp () |
| Return the pop-up menu of the object. | |
| void | OnGraphInfo (GraphInfoEvent &event) |
| Change the status bar text. | |
| void | Elimina () |
| Delete an object of the sheet. | |
| wxTreeItemId | GetTreeItemId () |
| Return the TreeItem id related to the object. | |
| void | SetTreeItemId (wxTreeItemId Id) |
| Store the TreeItem id related to the object. | |
Public Attributes | |
| gestione * | gestionepannello |
| Pointer to the stucture that manafges the data inside the sheet. | |
Private Member Functions | |
| void | DisegnaCrocetta () |
| Draws the red cross. | |
| void | CancellaCrocetta () |
| Deletes the red cross. | |
| void | OnRightDown (wxMouseEvent &event) |
| Shows the popup menu. | |
| void | OnLeftDown (wxMouseEvent &event) |
| Processes the mouse left-down event. | |
| void | PnlMove (wxMouseEvent &event) |
| Processes the mouse mouve event. | |
| void | PnlFoglioPaint (wxPaintEvent &event) |
| Processes the paint event. | |
| void | RimuoviSelezione () |
| Removes the selection from the currrent object. | |
Private Attributes | |
| int | ident |
| Contains the index af the next item that will be created. | |
| wxPen | penna |
| Pen used to draw inside the sheet. | |
| wxClientDC * | foglio |
| Used to draw inside the sheet. | |
| wxPoint | posizionevirtuale |
| Store the "virtual" position of the mouse. | |
| wxPoint | posizionereale |
| Store the "real" position of the mouse. | |
| wxPoint | posizionescroll |
| Stores the scroll position. | |
| bool | DISEGNA |
| Enables or disables the automatic redrawing. | |
| wxTreeItemId | TreeId |
| Id of the reated tree item. | |
| wxMenu * | PopFoglio |
| Right-click popup menu. | |
NtbSheet is sort of sheet where io can insert all the other obect it's derived from wxResizableControlCanavas
Definition at line 20 of file PnlFoglio.h.
|
||||||||||||||||||||||||||||
|
Constructor.
|
|
|
Distruttore.
Definition at line 53 of file PnlFoglio.cpp. References foglio, gestionepannello, utilita::IdentSelezione, and utilita::objects. |
|
|
Deletes the red cross.
Definition at line 411 of file PnlFoglio.cpp. References foglio, penna, and posizionereale. Referenced by MnuAggiungiEtichettaClick(), MnuAggiungiGrafico2DClick(), MnuAggiungiGrafico3DClick(), OnChar(), and OnLeftDown(). |
|
|
Draws the red cross.
Definition at line 393 of file PnlFoglio.cpp. References foglio, penna, posizionereale, and posizionevirtuale. Referenced by OnChar(), OnLeftDown(), and PnlFoglioPaint(). |
|
|
Delete an object of the sheet.
Definition at line 63 of file PnlFoglio.cpp. References gestionepannello, utilita::objects, TListaW::RimuoviNodo(), utilita::Selezione, and TListaW::TrovaPosizione(). Referenced by MainFrm::BtnEliminaClick(). |
|
|
Return the pop-up menu of the object.
Definition at line 427 of file PnlFoglio.cpp. References PopFoglio. |
|
|
Return the TreeItem id related to the object.
Definition at line 436 of file PnlFoglio.cpp. References TreeId. |
|
|
Adds a new label to the page.
Definition at line 161 of file PnlFoglio.cpp. References CancellaCrocetta(), DISEGNA, gestionepannello, ident, TListaW::NuovoNodo(), utilita::objects, and posizionereale. Referenced by MainFrm::BtnNewEtiClick(). |
|
|
Adds a new 2D graph to the page.
Definition at line 140 of file PnlFoglio.cpp. References CancellaCrocetta(), DISEGNA, gestionepannello, ident, TListaW::NuovoNodo(), utilita::objects, and posizionereale. Referenced by MainFrm::BtnNuovo2DClick(). |
|
|
Adds a new 3D graph to the page.
Definition at line 151 of file PnlFoglio.cpp. References CancellaCrocetta(), DISEGNA, gestionepannello, ident, TListaW::NuovoNodo(), utilita::objects, and posizionereale. Referenced by MainFrm::BtnNuovo3DClick(). |
|
|
Processes the OnChar event.
Definition at line 183 of file PnlFoglio.cpp. References CancellaCrocetta(), TListaW::ControllaPosizione(), DISEGNA, DisegnaCrocetta(), gestionepannello, ident, utilita::IdentSelezione, TListaW::NuovoNodo(), utilita::objects, posizionereale, posizionescroll, posizionevirtuale, RimuoviSelezione(), and utilita::Selezione. |
|
|
Change the status bar text.
Definition at line 172 of file PnlFoglio.cpp. References GraphInfoEvent::strobject, GraphInfoEvent::strposx, and GraphInfoEvent::strposy. |
|
|
Processes the mouse left-down event.
Definition at line 114 of file PnlFoglio.cpp. References CancellaCrocetta(), DisegnaCrocetta(), posizionereale, posizionevirtuale, and RimuoviSelezione(). |
|
|
Shows the popup menu.
Definition at line 103 of file PnlFoglio.cpp. References PopFoglio, and posizionereale. |
|
|
Processes the paint event.
Definition at line 91 of file PnlFoglio.cpp. References DISEGNA, and DisegnaCrocetta(). |
|
|
Processes the mouse mouve event.
Definition at line 74 of file PnlFoglio.cpp. |
|
|
Removes the selection from the currrent object.
Definition at line 125 of file PnlFoglio.cpp. References gestionepannello, utilita::IdentSelezione, and utilita::Selezione. Referenced by OnChar(), and OnLeftDown(). |
|
|
Store the TreeItem id related to the object.
Definition at line 431 of file PnlFoglio.cpp. References TreeId. |
|
|
Enables or disables the automatic redrawing.
Definition at line 51 of file PnlFoglio.h. Referenced by MnuAggiungiEtichettaClick(), MnuAggiungiGrafico2DClick(), MnuAggiungiGrafico3DClick(), OnChar(), and PnlFoglioPaint(). |
|
|
Used to draw inside the sheet.
Definition at line 33 of file PnlFoglio.h. Referenced by CancellaCrocetta(), DisegnaCrocetta(), and ~PnlFoglio(). |
|
|
Pointer to the stucture that manafges the data inside the sheet.
Definition at line 114 of file PnlFoglio.h. Referenced by MainFrm::BtnEliminaClick(), MainFrm::BtnModificaClick(), Elimina(), PnlObjTree::Fill(), MnuAggiungiEtichettaClick(), MnuAggiungiGrafico2DClick(), MnuAggiungiGrafico3DClick(), OnChar(), RimuoviSelezione(), and ~PnlFoglio(). |
|
|
Contains the index af the next item that will be created.
Definition at line 27 of file PnlFoglio.h. Referenced by MnuAggiungiEtichettaClick(), MnuAggiungiGrafico2DClick(), MnuAggiungiGrafico3DClick(), and OnChar(). |
|
|
Pen used to draw inside the sheet.
Definition at line 30 of file PnlFoglio.h. Referenced by CancellaCrocetta(), and DisegnaCrocetta(). |
|
|
Right-click popup menu.
Definition at line 72 of file PnlFoglio.h. Referenced by GetPopUp(), and OnRightDown(). |
|
|
Store the "real" position of the mouse.
Definition at line 39 of file PnlFoglio.h. Referenced by CancellaCrocetta(), DisegnaCrocetta(), MnuAggiungiEtichettaClick(), MnuAggiungiGrafico2DClick(), MnuAggiungiGrafico3DClick(), OnChar(), OnLeftDown(), and OnRightDown(). |
|
|
Stores the scroll position.
Definition at line 42 of file PnlFoglio.h. Referenced by OnChar(). |
|
|
Store the "virtual" position of the mouse.
Definition at line 36 of file PnlFoglio.h. Referenced by DisegnaCrocetta(), OnChar(), and OnLeftDown(). |
|
|
Id of the reated tree item.
Definition at line 69 of file PnlFoglio.h. Referenced by GetTreeItemId(), and SetTreeItemId(). |