/** * @brief コンストラクタ. * @author yatagaik. * @param in parent 親ウィジェット. * @param in plugin このウィジェットを持ったプラグイン. */ MetaToolsToolTip::MetaToolsToolTip(QWidget *parent, const IPlugin *plugin) : QWidget(parent), m_plugin(plugin), m_ui(new Ui::MetaToolsToolTip), m_child(nullptr) { m_ui->setupUi(this); connect(m_ui->close_button, SIGNAL(clicked()), this, SLOT(OnClickCloseButton())); // m_ui->caption_bar->setObjectName("metatools_tool_tip_caption_bar"); }
//************************************************************************************* void CBCGPCaptionBar::OnLButtonUp(UINT nFlags, CPoint point) { CBCGPControlBar::OnLButtonUp(nFlags, point); if (m_bIsBtnPressed) { m_bIsBtnPressed = FALSE; InvalidateRect (m_rectButton); UpdateWindow (); if (!m_bBtnHasDropDownArrow && m_uiBtnID != 0) { ASSERT_VALID (GetOwner ()); GetOwner()->SendMessage (WM_COMMAND, m_uiBtnID); } } else if (m_bIsCloseBtnPressed) { m_bIsCloseBtnPressed = FALSE; InvalidateRect (m_rectClose); UpdateWindow (); if (OnClickCloseButton()) { ShowControlBar (FALSE, FALSE, FALSE); } } else if (m_nHyperlinkPressed >= 0) { if (m_nHyperlinkPressed == m_nHyperlinkHighlighted) { ASSERT_VALID (GetOwner ()); GetOwner()->SendMessage(BCGM_ON_CLICK_CAPTIONBAR_HYPERLINK, m_nHyperlinkPressed); } m_nHyperlinkPressed = -1; } }