NCBI C++ ToolKit
Public Member Functions | Private Member Functions | Private Attributes | List of all members
IMovableButton Class Referenceabstract

Search Toolkit Book for IMovableButton

#include <gui/packages/pkg_sequence_edit/editingbtnspanel.hpp>

+ Inheritance diagram for IMovableButton:
+ Collaboration diagram for IMovableButton:

Public Member Functions

 IMovableButton ()
 
 IMovableButton (wxPanel *parent, wxWindowID id, const wxString &label=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
virtual ~IMovableButton ()
 
virtual bool VerifySelection (CEditingBtnsPanel *e)=0
 
virtual void SetLocked (bool locked)
 
virtual void SetRemoved (bool removed)
 
virtual void SetDragging (bool dragging)
 
virtual void SetSizers (wxWindow *win_top=NULL, wxSizer *sizer1=NULL, wxSizer *sizer2=NULL, wxSizer *sizer3=NULL, wxSizer *sizer_removed_actual=NULL)
 
virtual wxPoint FindUnoccupiedPosition (wxSizer *sizer=NULL)
 
virtual bool IsOccupiedPosition ()
 
virtual void OnRightClick (wxContextMenuEvent &evt)
 
virtual void onMouseClick (wxCommandEvent &evt)
 
virtual void MoveButton (wxPoint mousePos)
 
virtual void OnKeyDown (wxKeyEvent &evt)
 
virtual bool OnChar (wxKeyEvent &event)
 
void SetScrollPos (wxPoint scrollpos)
 
void OnPopupClick (wxCommandEvent &evt)
 
void OnPopupClickUpdate (wxUpdateUIEvent &event)
 
int GetOrigId ()
 
wxPoint GetOrigPosition ()
 
void SetOriginalPosition (wxPoint p)
 
void CopyButton (wxSizer *sizer, wxPoint p)
 
void DeleteButton ()
 
void AddDynamicMenu ()
 

Private Member Functions

void RemoveButton ()
 

Private Attributes

int m_OrigId
 
wxPoint m_Position
 
bool m_dragging
 
bool m_locked
 
bool m_removed
 
wxSizer * m_Sizer
 
wxSizer * m_TopSizer1
 
wxSizer * m_TopSizer2
 
wxSizer * m_TopSizer3
 
wxSizer * m_TopSizerRemoved
 
wxWindow * m_win_top
 
wxPoint m_ScrollPos
 
wxMenu m_menu
 

Detailed Description

Definition at line 695 of file editingbtnspanel.hpp.

Constructor & Destructor Documentation

◆ IMovableButton() [1/2]

IMovableButton::IMovableButton ( )
inline

Definition at line 709 of file editingbtnspanel.hpp.

◆ IMovableButton() [2/2]

IMovableButton::IMovableButton ( wxPanel *  parent,
wxWindowID  id,
const wxString &  label = wxEmptyString,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0 
)

◆ ~IMovableButton()

virtual IMovableButton::~IMovableButton ( )
inlinevirtual

Definition at line 711 of file editingbtnspanel.hpp.

Member Function Documentation

◆ AddDynamicMenu()

void IMovableButton::AddDynamicMenu ( )

Definition at line 224 of file editingbtnspanel.cpp.

References ID_POPUP_EDIT, ID_POPUP_REMOVE, and m_menu.

Referenced by CEditingBtnsPanel::PlaceButtons().

◆ CopyButton()

void IMovableButton::CopyButton ( wxSizer *  sizer,
wxPoint  p 
)

◆ DeleteButton()

void IMovableButton::DeleteButton ( )

Definition at line 389 of file editingbtnspanel.cpp.

References m_locked, m_removed, m_Sizer, NULL, and CButtonPanel::SetMovingButton().

Referenced by OnRightClick().

◆ FindUnoccupiedPosition()

wxPoint IMovableButton::FindUnoccupiedPosition ( wxSizer *  sizer = NULL)
virtual

◆ GetOrigId()

int IMovableButton::GetOrigId ( )
inline

◆ GetOrigPosition()

wxPoint IMovableButton::GetOrigPosition ( )
inline

Definition at line 728 of file editingbtnspanel.hpp.

Referenced by CButtonPanel::Layout(), and CEditingBtnsPanel::SaveSettings().

◆ IsOccupiedPosition()

bool IMovableButton::IsOccupiedPosition ( )
virtual

Definition at line 256 of file editingbtnspanel.cpp.

References m_Sizer, r(), and r1.

Referenced by CEditingBtnsPanel::PlaceButtons().

◆ MoveButton()

void IMovableButton::MoveButton ( wxPoint  mousePos)
virtual

◆ OnChar()

bool IMovableButton::OnChar ( wxKeyEvent &  event)
virtual

◆ OnKeyDown()

void IMovableButton::OnKeyDown ( wxKeyEvent &  evt)
virtual

Definition at line 494 of file editingbtnspanel.cpp.

References OnChar().

Referenced by IMovableButton().

◆ onMouseClick()

void IMovableButton::onMouseClick ( wxCommandEvent &  evt)
virtual

◆ OnPopupClick()

void IMovableButton::OnPopupClick ( wxCommandEvent &  evt)

◆ OnPopupClickUpdate()

void IMovableButton::OnPopupClickUpdate ( wxUpdateUIEvent &  event)

Definition at line 377 of file editingbtnspanel.cpp.

References ID_BUTTON_DYNAMIC, and m_OrigId.

Referenced by IMovableButton().

◆ OnRightClick()

void IMovableButton::OnRightClick ( wxContextMenuEvent &  evt)
virtual

Definition at line 399 of file editingbtnspanel.cpp.

References DeleteButton(), GetScreenRect(), m_locked, m_menu, m_removed, and r().

Referenced by IMovableButton().

◆ RemoveButton()

void IMovableButton::RemoveButton ( )
private

Definition at line 382 of file editingbtnspanel.cpp.

References m_win_top, and CEditingBtnsPanel::RemoveButton().

Referenced by OnPopupClick().

◆ SetDragging()

void IMovableButton::SetDragging ( bool  dragging)
virtual

Definition at line 242 of file editingbtnspanel.cpp.

References m_dragging.

Referenced by CButtonPanel::SetMovingButton().

◆ SetLocked()

void IMovableButton::SetLocked ( bool  locked)
virtual

◆ SetOriginalPosition()

void IMovableButton::SetOriginalPosition ( wxPoint  p)
inline

Definition at line 729 of file editingbtnspanel.hpp.

Referenced by CEditingBtnsPanel::PlaceButtons().

◆ SetRemoved()

void IMovableButton::SetRemoved ( bool  removed)
virtual

◆ SetScrollPos()

void IMovableButton::SetScrollPos ( wxPoint  scrollpos)

Definition at line 326 of file editingbtnspanel.cpp.

References m_ScrollPos.

Referenced by CopyButton(), MoveButton(), OnChar(), and CButtonPanel::SetMovingButton().

◆ SetSizers()

void IMovableButton::SetSizers ( wxWindow *  win_top = NULL,
wxSizer *  sizer1 = NULL,
wxSizer *  sizer2 = NULL,
wxSizer *  sizer3 = NULL,
wxSizer *  sizer_removed_actual = NULL 
)
virtual

◆ VerifySelection()

virtual bool IMovableButton::VerifySelection ( CEditingBtnsPanel e)
pure virtual

Member Data Documentation

◆ m_dragging

bool IMovableButton::m_dragging
private

Definition at line 701 of file editingbtnspanel.hpp.

Referenced by MoveButton(), OnChar(), onMouseClick(), SetDragging(), and SetLocked().

◆ m_locked

bool IMovableButton::m_locked
private

Definition at line 702 of file editingbtnspanel.hpp.

Referenced by CopyButton(), DeleteButton(), onMouseClick(), OnRightClick(), and SetLocked().

◆ m_menu

wxMenu IMovableButton::m_menu
private

Definition at line 707 of file editingbtnspanel.hpp.

Referenced by AddDynamicMenu(), IMovableButton(), and OnRightClick().

◆ m_OrigId

int IMovableButton::m_OrigId
private

Definition at line 699 of file editingbtnspanel.hpp.

Referenced by onMouseClick(), and OnPopupClickUpdate().

◆ m_Position

wxPoint IMovableButton::m_Position
private

Definition at line 700 of file editingbtnspanel.hpp.

Referenced by MoveButton().

◆ m_removed

bool IMovableButton::m_removed
private

◆ m_ScrollPos

wxPoint IMovableButton::m_ScrollPos
private

Definition at line 706 of file editingbtnspanel.hpp.

Referenced by SetScrollPos().

◆ m_Sizer

wxSizer* IMovableButton::m_Sizer
private

◆ m_TopSizer1

wxSizer * IMovableButton::m_TopSizer1
private

Definition at line 704 of file editingbtnspanel.hpp.

Referenced by CopyButton(), OnPopupClick(), and SetSizers().

◆ m_TopSizer2

wxSizer * IMovableButton::m_TopSizer2
private

Definition at line 704 of file editingbtnspanel.hpp.

Referenced by CopyButton(), OnPopupClick(), and SetSizers().

◆ m_TopSizer3

wxSizer * IMovableButton::m_TopSizer3
private

Definition at line 704 of file editingbtnspanel.hpp.

Referenced by CopyButton(), OnPopupClick(), and SetSizers().

◆ m_TopSizerRemoved

wxSizer * IMovableButton::m_TopSizerRemoved
private

Definition at line 704 of file editingbtnspanel.hpp.

Referenced by CopyButton(), and SetSizers().

◆ m_win_top

wxWindow* IMovableButton::m_win_top
private

Definition at line 705 of file editingbtnspanel.hpp.

Referenced by CopyButton(), onMouseClick(), OnPopupClick(), RemoveButton(), and SetSizers().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:28 2024 by modify_doxy.py rev. 669887