NCBI C++ ToolKit
|
Search Toolkit Book for IMovableButton
#include <gui/packages/pkg_sequence_edit/editingbtnspanel.hpp>
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 |
Definition at line 695 of file editingbtnspanel.hpp.
|
inline |
Definition at line 709 of file editingbtnspanel.hpp.
IMovableButton::IMovableButton | ( | wxPanel * | parent, |
wxWindowID | id, | ||
const wxString & | label = wxEmptyString , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 |
||
) |
Definition at line 210 of file editingbtnspanel.cpp.
References ID_POPUP_A, ID_POPUP_B, ID_POPUP_C, ID_POPUP_REMOVE, m_menu, OnKeyDown(), onMouseClick(), OnPopupClick(), OnPopupClickUpdate(), OnRightClick(), wxEVT_COMMAND_MENU_SELECTED, and wxID_ANY.
|
inlinevirtual |
Definition at line 711 of file editingbtnspanel.hpp.
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().
void IMovableButton::CopyButton | ( | wxSizer * | sizer, |
wxPoint | p | ||
) |
Definition at line 331 of file editingbtnspanel.cpp.
References CButtonPanel::CreateButton(), DIST_BETWEEN_BUTTONS, FindUnoccupiedPosition(), CButtonPanel::GetScrollPos(), m_locked, m_TopSizer1, m_TopSizer2, m_TopSizer3, m_TopSizerRemoved, m_win_top, SetLocked(), SetScrollPos(), and SetSizers().
Referenced by OnPopupClick().
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().
|
virtual |
Definition at line 282 of file editingbtnspanel.cpp.
References DIST_BETWEEN_BUTTONS, m_Sizer, NULL, r(), r1, and row.
Referenced by CopyButton(), CButtonPanel::Layout(), and CEditingBtnsPanel::PlaceButtons().
|
inline |
Definition at line 727 of file editingbtnspanel.hpp.
Referenced by CButtonPanel::CreateButton(), CEditingBtnsPanel::EditButton(), CEditingBtnsPanel::PlaceButtons(), CEditingBtnsPanel::RemoveButton(), and CEditingBtnsPanel::SaveSettings().
|
inline |
Definition at line 728 of file editingbtnspanel.hpp.
Referenced by CButtonPanel::Layout(), and CEditingBtnsPanel::SaveSettings().
|
virtual |
Definition at line 256 of file editingbtnspanel.cpp.
References m_Sizer, r(), and r1.
Referenced by CEditingBtnsPanel::PlaceButtons().
|
virtual |
Definition at line 445 of file editingbtnspanel.cpp.
References DIST_BETWEEN_BUTTONS, CButtonPanel::GetScrollPos(), m_dragging, m_Position, m_removed, r(), and SetScrollPos().
Referenced by OnChar(), and CButtonPanel::onMouseClick().
|
virtual |
Definition at line 499 of file editingbtnspanel.cpp.
References CButtonPanel::GetScrollPos(), m_dragging, MoveButton(), and SetScrollPos().
Referenced by CButtonPanel::OnChar(), and OnKeyDown().
|
virtual |
Definition at line 494 of file editingbtnspanel.cpp.
References OnChar().
Referenced by IMovableButton().
|
virtual |
Definition at line 414 of file editingbtnspanel.cpp.
References GetScreenRect(), m_dragging, m_locked, m_OrigId, m_removed, m_Sizer, m_win_top, r(), CButtonPanel::SetMovingButton(), and VerifySelection().
Referenced by IMovableButton().
void IMovableButton::OnPopupClick | ( | wxCommandEvent & | evt | ) |
Definition at line 351 of file editingbtnspanel.cpp.
References CopyButton(), CEditingBtnsPanel::EditButton(), ID_POPUP_A, ID_POPUP_B, ID_POPUP_C, ID_POPUP_EDIT, ID_POPUP_REMOVE, m_TopSizer1, m_TopSizer2, m_TopSizer3, m_win_top, and RemoveButton().
Referenced by IMovableButton().
void IMovableButton::OnPopupClickUpdate | ( | wxUpdateUIEvent & | event | ) |
Definition at line 377 of file editingbtnspanel.cpp.
References ID_BUTTON_DYNAMIC, and m_OrigId.
Referenced by IMovableButton().
|
virtual |
Definition at line 399 of file editingbtnspanel.cpp.
References DeleteButton(), GetScreenRect(), m_locked, m_menu, m_removed, and r().
Referenced by IMovableButton().
|
private |
Definition at line 382 of file editingbtnspanel.cpp.
References m_win_top, and CEditingBtnsPanel::RemoveButton().
Referenced by OnPopupClick().
|
virtual |
Definition at line 242 of file editingbtnspanel.cpp.
References m_dragging.
Referenced by CButtonPanel::SetMovingButton().
|
virtual |
Definition at line 230 of file editingbtnspanel.cpp.
References m_dragging, and m_locked.
Referenced by CopyButton(), CEditingBtnsPanel::PlaceButtons(), and CEditingBtnsPanel::x_LockButtons().
|
inline |
Definition at line 729 of file editingbtnspanel.hpp.
Referenced by CEditingBtnsPanel::PlaceButtons().
|
virtual |
Definition at line 237 of file editingbtnspanel.cpp.
References m_removed.
Referenced by CEditingBtnsPanel::CreateControls(), and CEditingBtnsPanel::PlaceButtons().
void IMovableButton::SetScrollPos | ( | wxPoint | scrollpos | ) |
Definition at line 326 of file editingbtnspanel.cpp.
References m_ScrollPos.
Referenced by CopyButton(), MoveButton(), OnChar(), and CButtonPanel::SetMovingButton().
|
virtual |
Definition at line 247 of file editingbtnspanel.cpp.
References m_TopSizer1, m_TopSizer2, m_TopSizer3, m_TopSizerRemoved, and m_win_top.
Referenced by CopyButton(), CEditingBtnsPanel::CreateControls(), and CEditingBtnsPanel::PlaceButtons().
|
pure virtual |
Implemented in CFeatureMovableButtonAa, CFeatureMovableButtonNa, CFeatureMovableButton, and CMovableButton.
Referenced by onMouseClick().
|
private |
Definition at line 701 of file editingbtnspanel.hpp.
Referenced by MoveButton(), OnChar(), onMouseClick(), SetDragging(), and SetLocked().
|
private |
Definition at line 702 of file editingbtnspanel.hpp.
Referenced by CopyButton(), DeleteButton(), onMouseClick(), OnRightClick(), and SetLocked().
|
private |
Definition at line 707 of file editingbtnspanel.hpp.
Referenced by AddDynamicMenu(), IMovableButton(), and OnRightClick().
|
private |
Definition at line 699 of file editingbtnspanel.hpp.
Referenced by onMouseClick(), and OnPopupClickUpdate().
|
private |
Definition at line 700 of file editingbtnspanel.hpp.
Referenced by MoveButton().
|
private |
Definition at line 703 of file editingbtnspanel.hpp.
Referenced by DeleteButton(), MoveButton(), onMouseClick(), OnRightClick(), and SetRemoved().
|
private |
Definition at line 706 of file editingbtnspanel.hpp.
Referenced by SetScrollPos().
|
private |
Definition at line 704 of file editingbtnspanel.hpp.
Referenced by DeleteButton(), FindUnoccupiedPosition(), IsOccupiedPosition(), and onMouseClick().
|
private |
Definition at line 704 of file editingbtnspanel.hpp.
Referenced by CopyButton(), OnPopupClick(), and SetSizers().
|
private |
Definition at line 704 of file editingbtnspanel.hpp.
Referenced by CopyButton(), OnPopupClick(), and SetSizers().
|
private |
Definition at line 704 of file editingbtnspanel.hpp.
Referenced by CopyButton(), OnPopupClick(), and SetSizers().
|
private |
Definition at line 704 of file editingbtnspanel.hpp.
Referenced by CopyButton(), and SetSizers().
|
private |
Definition at line 705 of file editingbtnspanel.hpp.
Referenced by CopyButton(), onMouseClick(), OnPopupClick(), RemoveButton(), and SetSizers().