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

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

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)

◆ GetOrigId()

int IMovableButton::GetOrigId ( )

◆ GetOrigPosition()

wxPoint IMovableButton::GetOrigPosition ( )

Definition at line 728 of file editingbtnspanel.hpp.

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

◆ IsOccupiedPosition()

bool IMovableButton::IsOccupiedPosition ( )

Definition at line 256 of file editingbtnspanel.cpp.

References m_Sizer, and r().

Referenced by CEditingBtnsPanel::PlaceButtons().

◆ MoveButton()

void IMovableButton::MoveButton ( wxPoint  mousePos)

◆ OnChar()

bool IMovableButton::OnChar ( wxKeyEvent &  event)

◆ OnKeyDown()

void IMovableButton::OnKeyDown ( wxKeyEvent &  evt)

Definition at line 494 of file editingbtnspanel.cpp.

References OnChar().

Referenced by IMovableButton().

◆ onMouseClick()

void IMovableButton::onMouseClick ( wxCommandEvent &  evt)

◆ 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)

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

Definition at line 382 of file editingbtnspanel.cpp.

References m_win_top, and CEditingBtnsPanel::RemoveButton().

Referenced by OnPopupClick().

◆ SetDragging()

void IMovableButton::SetDragging ( bool  dragging)

Definition at line 242 of file editingbtnspanel.cpp.

References m_dragging.

Referenced by CButtonPanel::SetMovingButton().

◆ SetLocked()

void IMovableButton::SetLocked ( bool  locked)

◆ SetOriginalPosition()

void IMovableButton::SetOriginalPosition ( wxPoint  p)

Definition at line 729 of file editingbtnspanel.hpp.

Referenced by CEditingBtnsPanel::PlaceButtons().

◆ SetRemoved()

void IMovableButton::SetRemoved ( bool  removed)

◆ 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 

◆ VerifySelection()

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

Member Data Documentation

◆ m_dragging

bool IMovableButton::m_dragging

Definition at line 701 of file editingbtnspanel.hpp.

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

◆ m_locked

bool IMovableButton::m_locked

Definition at line 702 of file editingbtnspanel.hpp.

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

◆ m_menu

wxMenu IMovableButton::m_menu

Definition at line 707 of file editingbtnspanel.hpp.

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

◆ m_OrigId

int IMovableButton::m_OrigId

Definition at line 699 of file editingbtnspanel.hpp.

Referenced by onMouseClick(), and OnPopupClickUpdate().

◆ m_Position

wxPoint IMovableButton::m_Position

Definition at line 700 of file editingbtnspanel.hpp.

Referenced by MoveButton().

◆ m_removed

bool IMovableButton::m_removed

◆ m_ScrollPos

wxPoint IMovableButton::m_ScrollPos

Definition at line 706 of file editingbtnspanel.hpp.

Referenced by SetScrollPos().

◆ m_Sizer

wxSizer* IMovableButton::m_Sizer

◆ m_TopSizer1

wxSizer * IMovableButton::m_TopSizer1

Definition at line 704 of file editingbtnspanel.hpp.

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

◆ m_TopSizer2

wxSizer * IMovableButton::m_TopSizer2

Definition at line 704 of file editingbtnspanel.hpp.

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

◆ m_TopSizer3

wxSizer * IMovableButton::m_TopSizer3

Definition at line 704 of file editingbtnspanel.hpp.

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

◆ m_TopSizerRemoved

wxSizer * IMovableButton::m_TopSizerRemoved

Definition at line 704 of file editingbtnspanel.hpp.

Referenced by CopyButton(), and SetSizers().

◆ m_win_top

wxWindow* IMovableButton::m_win_top

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 Sat Jun 15 11:52:55 2024 by rev. 669887