Esempio n. 1
0
void MainWindow::openLocation()
{
    if(isFullScreen())
    {
        setWidgetsVisible(true);
    }
    m_view->currentUrlBar()->selectAll();
    m_view->currentUrlBar()->setFocus();
}
Esempio n. 2
0
BOOL LLPanelClothingListItem::postBuild()
{
    LLPanelDeletableWearableListItem::postBuild();

    addWidgetToRightSide("btn_move_up");
    addWidgetToRightSide("btn_move_down");
    addWidgetToRightSide("btn_lock");
    addWidgetToRightSide("btn_edit_panel");

    setWidgetsVisible(false);
    reshapeWidgets();

    return TRUE;
}
Esempio n. 3
0
BOOL LLPanelDummyClothingListItem::postBuild()
{
    addWidgetToRightSide("btn_add_panel");

    setIconImage(LLInventoryIcon::getIcon(LLAssetType::AT_CLOTHING, LLInventoryType::IT_NONE, mWearableType, FALSE));
    updateItem(wearableTypeToString(mWearableType));

    // Make it look loke clothing item - reserve space for 'delete' button
    setLeftWidgetsWidth(getChildView("item_icon")->getRect().mLeft);

    setWidgetsVisible(false);
    reshapeWidgets();

    return TRUE;
}
Esempio n. 4
0
BOOL LLPanelDeletableWearableListItem::postBuild()
{
    LLPanelWearableListItem::postBuild();

    addWidgetToLeftSide("btn_delete");

    LLButton* delete_btn = getChild<LLButton>("btn_delete");
    // Reserve space for 'delete' button event if it is invisible.
    setLeftWidgetsWidth(delete_btn->getRect().mRight);

    setWidgetsVisible(false);
    reshapeWidgets();

    return TRUE;
}
Esempio n. 5
0
BOOL LLPanelInventoryListItemBase::postBuild()
{
	LLViewerInventoryItem* inv_item = getItem();
	if (inv_item)
	{
		mIconImage = LLInventoryIcon::getIcon(inv_item->getType(), inv_item->getInventoryType(), inv_item->getFlags(), FALSE);
		updateItem(inv_item->getName());
	}

	setNeedsRefresh(true);

	setWidgetsVisible(false);
	reshapeWidgets();

	return TRUE;
}
Esempio n. 6
0
void LLPanelWearableListItem::onMouseLeave(S32 x, S32 y, MASK mask)
{
    LLPanelInventoryListItemBase::onMouseLeave(x, y, mask);
    setWidgetsVisible(false);
    reshapeWidgets();
}
Esempio n. 7
0
void MainWindow::viewFullScreen(bool makeFullScreen)
{
    setWidgetsVisible(!makeFullScreen);
    KToggleFullScreenAction::setFullScreen(this, makeFullScreen);
}