MatOCAD Logo

Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

PnlFoglio Class Reference

Sheet. More...

#include <PnlFoglio.h>

Inherits wxResizeableControlCanvas.

Inheritance diagram for PnlFoglio:

Inheritance graph
[legend]
Collaboration diagram for PnlFoglio:

Collaboration graph
[legend]
List of all members.

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

gestionegestionepannello
 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.

Detailed Description

Sheet.

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 & Destructor Documentation

PnlFoglio::PnlFoglio wxWindow *  parent,
wxWindowID  id = -1,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxTAB_TRAVERSAL,
const wxString &  name = "panel"
 

Constructor.

PnlFoglio::~PnlFoglio  ) 
 

Distruttore.

Definition at line 53 of file PnlFoglio.cpp.

References foglio, gestionepannello, utilita::IdentSelezione, and utilita::objects.


Member Function Documentation

void PnlFoglio::CancellaCrocetta  )  [private]
 

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().

void PnlFoglio::DisegnaCrocetta  )  [private]
 

Draws the red cross.

Definition at line 393 of file PnlFoglio.cpp.

References foglio, penna, posizionereale, and posizionevirtuale.

Referenced by OnChar(), OnLeftDown(), and PnlFoglioPaint().

void PnlFoglio::Elimina  ) 
 

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().

wxMenu * PnlFoglio::GetPopUp  ) 
 

Return the pop-up menu of the object.

Returns:
the popoup menu

Definition at line 427 of file PnlFoglio.cpp.

References PopFoglio.

wxTreeItemId PnlFoglio::GetTreeItemId  ) 
 

Return the TreeItem id related to the object.

Returns:
the TreeItem id related to the object

Definition at line 436 of file PnlFoglio.cpp.

References TreeId.

void PnlFoglio::MnuAggiungiEtichettaClick wxCommandEvent &  event  ) 
 

Adds a new label to the page.

See also:
MnuAggiungiGrafico3DClick(), MnuAggiungiGrafico2DClick()

Definition at line 161 of file PnlFoglio.cpp.

References CancellaCrocetta(), DISEGNA, gestionepannello, ident, TListaW::NuovoNodo(), utilita::objects, and posizionereale.

Referenced by MainFrm::BtnNewEtiClick().

void PnlFoglio::MnuAggiungiGrafico2DClick wxCommandEvent &  event  ) 
 

Adds a new 2D graph to the page.

See also:
MnuAggiungiGrafico3DClick(), MnuAggiungiEtichettaClick()

Definition at line 140 of file PnlFoglio.cpp.

References CancellaCrocetta(), DISEGNA, gestionepannello, ident, TListaW::NuovoNodo(), utilita::objects, and posizionereale.

Referenced by MainFrm::BtnNuovo2DClick().

void PnlFoglio::MnuAggiungiGrafico3DClick wxCommandEvent &  event  ) 
 

Adds a new 3D graph to the page.

See also:
MnuAggiungiGrafico2DClick(), MnuAggiungiEtichettaClick()

Definition at line 151 of file PnlFoglio.cpp.

References CancellaCrocetta(), DISEGNA, gestionepannello, ident, TListaW::NuovoNodo(), utilita::objects, and posizionereale.

Referenced by MainFrm::BtnNuovo3DClick().

void PnlFoglio::OnChar wxKeyEvent &  event  ) 
 

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.

void PnlFoglio::OnGraphInfo GraphInfoEvent event  ) 
 

Change the status bar text.

Definition at line 172 of file PnlFoglio.cpp.

References GraphInfoEvent::strobject, GraphInfoEvent::strposx, and GraphInfoEvent::strposy.

void PnlFoglio::OnLeftDown wxMouseEvent &  event  )  [private]
 

Processes the mouse left-down event.

Definition at line 114 of file PnlFoglio.cpp.

References CancellaCrocetta(), DisegnaCrocetta(), posizionereale, posizionevirtuale, and RimuoviSelezione().

void PnlFoglio::OnRightDown wxMouseEvent &  event  )  [private]
 

Shows the popup menu.

Definition at line 103 of file PnlFoglio.cpp.

References PopFoglio, and posizionereale.

void PnlFoglio::PnlFoglioPaint wxPaintEvent &  event  )  [private]
 

Processes the paint event.

Definition at line 91 of file PnlFoglio.cpp.

References DISEGNA, and DisegnaCrocetta().

void PnlFoglio::PnlMove wxMouseEvent &  event  )  [private]
 

Processes the mouse mouve event.

Definition at line 74 of file PnlFoglio.cpp.

void PnlFoglio::RimuoviSelezione  )  [private]
 

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().

void PnlFoglio::SetTreeItemId wxTreeItemId  Id  ) 
 

Store the TreeItem id related to the object.

Parameters:
id the tree item id of the object

Definition at line 431 of file PnlFoglio.cpp.

References TreeId.


Member Data Documentation

bool PnlFoglio::DISEGNA [private]
 

Enables or disables the automatic redrawing.

Definition at line 51 of file PnlFoglio.h.

Referenced by MnuAggiungiEtichettaClick(), MnuAggiungiGrafico2DClick(), MnuAggiungiGrafico3DClick(), OnChar(), and PnlFoglioPaint().

wxClientDC* PnlFoglio::foglio [private]
 

Used to draw inside the sheet.

Definition at line 33 of file PnlFoglio.h.

Referenced by CancellaCrocetta(), DisegnaCrocetta(), and ~PnlFoglio().

gestione* PnlFoglio::gestionepannello
 

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().

int PnlFoglio::ident [private]
 

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().

wxPen PnlFoglio::penna [private]
 

Pen used to draw inside the sheet.

Definition at line 30 of file PnlFoglio.h.

Referenced by CancellaCrocetta(), and DisegnaCrocetta().

wxMenu* PnlFoglio::PopFoglio [private]
 

Right-click popup menu.

Definition at line 72 of file PnlFoglio.h.

Referenced by GetPopUp(), and OnRightDown().

wxPoint PnlFoglio::posizionereale [private]
 

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().

wxPoint PnlFoglio::posizionescroll [private]
 

Stores the scroll position.

Definition at line 42 of file PnlFoglio.h.

Referenced by OnChar().

wxPoint PnlFoglio::posizionevirtuale [private]
 

Store the "virtual" position of the mouse.

Definition at line 36 of file PnlFoglio.h.

Referenced by DisegnaCrocetta(), OnChar(), and OnLeftDown().

wxTreeItemId PnlFoglio::TreeId [private]
 

Id of the reated tree item.

Definition at line 69 of file PnlFoglio.h.

Referenced by GetTreeItemId(), and SetTreeItemId().


The documentation for this class was generated from the following files:

 

SourceForge Logo