Rearranging and cleaning up some assorted code
This commit is contained in:
@@ -43,18 +43,18 @@
|
|||||||
#include "lltimer.h"
|
#include "lltimer.h"
|
||||||
|
|
||||||
#include "llcalc.h"
|
#include "llcalc.h"
|
||||||
//#include "llclipboard.h"
|
#include "llclipboard.h"
|
||||||
#include "llcontrol.h"
|
#include "llcontrol.h"
|
||||||
#include "llbutton.h"
|
#include "llbutton.h"
|
||||||
#include "llfocusmgr.h"
|
#include "llfocusmgr.h"
|
||||||
#include "llkeyboard.h"
|
#include "llkeyboard.h"
|
||||||
|
#include "llmenugl.h"
|
||||||
#include "llrect.h"
|
#include "llrect.h"
|
||||||
#include "llresmgr.h"
|
#include "llresmgr.h"
|
||||||
#include "llstring.h"
|
#include "llstring.h"
|
||||||
#include "llwindow.h"
|
#include "llwindow.h"
|
||||||
#include "llui.h"
|
#include "llui.h"
|
||||||
#include "lluictrlfactory.h"
|
#include "lluictrlfactory.h"
|
||||||
#include "llclipboard.h"
|
|
||||||
#include "../newview/lgghunspell_wrapper.h"
|
#include "../newview/lgghunspell_wrapper.h"
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -766,7 +766,7 @@ LLMenuGL* LLTextEditor::createUrlContextMenu(S32 x, S32 y, const std::string &in
|
|||||||
|
|
||||||
// create and return the context menu from the XUI file
|
// create and return the context menu from the XUI file
|
||||||
llassert(LLMenuGL::sMenuContainer != NULL);
|
llassert(LLMenuGL::sMenuContainer != NULL);
|
||||||
auto menu = LLUICtrlFactory::getInstance()->buildMenu(xui_file, LLMenuGL::sMenuContainer);
|
auto menu = LLUICtrlFactory::instance().buildMenu(xui_file, LLMenuGL::sMenuContainer);
|
||||||
if (menu)
|
if (menu)
|
||||||
{
|
{
|
||||||
if (mIsFriendSignal)
|
if (mIsFriendSignal)
|
||||||
@@ -1535,7 +1535,7 @@ BOOL LLTextEditor::handleRightMouseDown( S32 x, S32 y, MASK mask )
|
|||||||
const LLStyleSP style = segment ? segment->getStyle() : nullptr;
|
const LLStyleSP style = segment ? segment->getStyle() : nullptr;
|
||||||
auto submenu = (style && style->isLink()) ? createUrlContextMenu(x, y, style->getLinkHREF()) : nullptr;
|
auto submenu = (style && style->isLink()) ? createUrlContextMenu(x, y, style->getLinkHREF()) : nullptr;
|
||||||
// Add url menu to base menu if we have a selection, otherwise make it the menu.
|
// Add url menu to base menu if we have a selection, otherwise make it the menu.
|
||||||
auto menu = (submenu && !hasSelection()) ? submenu : LLUICtrlFactory::getInstance()->buildMenu("menu_texteditor.xml", LLMenuGL::sMenuContainer);
|
auto menu = (submenu && !hasSelection()) ? submenu : LLUICtrlFactory::instance().buildMenu("menu_texteditor.xml", LLMenuGL::sMenuContainer);
|
||||||
mPopupMenuHandle = menu->getHandle();
|
mPopupMenuHandle = menu->getHandle();
|
||||||
if (menu)
|
if (menu)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -43,14 +43,11 @@
|
|||||||
#include "lleditmenuhandler.h"
|
#include "lleditmenuhandler.h"
|
||||||
|
|
||||||
#include "llpreeditor.h"
|
#include "llpreeditor.h"
|
||||||
#include "llmenugl.h"
|
|
||||||
|
|
||||||
class LLFontGL;
|
class LLFontGL;
|
||||||
class LLScrollbar;
|
|
||||||
class LLViewBorder;
|
|
||||||
class LLKeywordToken;
|
class LLKeywordToken;
|
||||||
|
class LLMenuGL;
|
||||||
class LLTextCmd;
|
class LLTextCmd;
|
||||||
class LLUICtrlFactory;
|
|
||||||
|
|
||||||
class LLTextEditor : public LLUICtrl, LLEditMenuHandler, protected LLPreeditor
|
class LLTextEditor : public LLUICtrl, LLEditMenuHandler, protected LLPreeditor
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -461,6 +461,7 @@ static void settings_to_globals()
|
|||||||
BTN_HEIGHT_SMALL = gSavedSettings.getS32("ButtonHeightSmall");
|
BTN_HEIGHT_SMALL = gSavedSettings.getS32("ButtonHeightSmall");
|
||||||
BTN_HEIGHT = gSavedSettings.getS32("ButtonHeight");
|
BTN_HEIGHT = gSavedSettings.getS32("ButtonHeight");
|
||||||
|
|
||||||
|
extern S32 MENU_BAR_HEIGHT;
|
||||||
MENU_BAR_HEIGHT = gSavedSettings.getS32("MenuBarHeight");
|
MENU_BAR_HEIGHT = gSavedSettings.getS32("MenuBarHeight");
|
||||||
extern S32 STATUS_BAR_HEIGHT;
|
extern S32 STATUS_BAR_HEIGHT;
|
||||||
STATUS_BAR_HEIGHT = gSavedSettings.getS32("StatusBarHeight");
|
STATUS_BAR_HEIGHT = gSavedSettings.getS32("StatusBarHeight");
|
||||||
|
|||||||
@@ -217,6 +217,8 @@ private:
|
|||||||
LLTextEditor* mEditor;
|
LLTextEditor* mEditor;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// LLFloaterItemProperties
|
// LLFloaterItemProperties
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -232,5 +234,6 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // LL_LLFLOATERMARKETPLACELISTINGS_H
|
#endif // LL_LLFLOATERMARKETPLACELISTINGS_H
|
||||||
|
|||||||
@@ -45,6 +45,7 @@
|
|||||||
#include "llfloatersearchreplace.h"
|
#include "llfloatersearchreplace.h"
|
||||||
#include "llinventorymodel.h"
|
#include "llinventorymodel.h"
|
||||||
#include "lllineeditor.h"
|
#include "lllineeditor.h"
|
||||||
|
#include "llmenugl.h"
|
||||||
#include "llnotificationsutil.h"
|
#include "llnotificationsutil.h"
|
||||||
#include "llresmgr.h"
|
#include "llresmgr.h"
|
||||||
#include "roles_constants.h"
|
#include "roles_constants.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user