LLViewerWindow Class Reference

#include <llviewerwindow.h>

Inheritance diagram for LLViewerWindow:

Inheritance graph
[legend]
Collaboration diagram for LLViewerWindow:

Collaboration graph
[legend]
List of all members.

Public Types

typedef enum LLViewerWindow::e_snapshot_type ESnapshotType
 SNAPSHOT_TYPE_COLOR
 SNAPSHOT_TYPE_DEPTH
 SNAPSHOT_TYPE_OBJECT_ID
enum  e_snapshot_type { SNAPSHOT_TYPE_COLOR, SNAPSHOT_TYPE_DEPTH, SNAPSHOT_TYPE_OBJECT_ID }

Public Member Functions

 LLViewerWindow (char *title, char *name, S32 x, S32 y, S32 width, S32 height, BOOL fullscreen, BOOL ignore_pixel_depth, S32 stereo_mode)
virtual ~LLViewerWindow ()
void initGLDefaults ()
void initBase ()
void adjustRectanglesForFirstUse (const LLRect &full_window)
void initWorldUI ()
BOOL handleTranslatedKeyDown (KEY key, MASK mask, BOOL repeated)
BOOL handleTranslatedKeyUp (KEY key, MASK mask)
void handleScanKey (KEY key, BOOL key_down, BOOL key_up, BOOL key_level)
BOOL handleUnicodeChar (llwchar uni_char, MASK mask)
BOOL handleMouseDown (LLWindow *window, LLCoordGL pos, MASK mask)
BOOL handleMouseUp (LLWindow *window, LLCoordGL pos, MASK mask)
BOOL handleCloseRequest (LLWindow *window)
void handleQuit (LLWindow *window)
BOOL handleRightMouseDown (LLWindow *window, LLCoordGL pos, MASK mask)
BOOL handleRightMouseUp (LLWindow *window, LLCoordGL pos, MASK mask)
BOOL handleMiddleMouseDown (LLWindow *window, LLCoordGL pos, MASK mask)
BOOL handleMiddleMouseUp (LLWindow *window, LLCoordGL pos, MASK mask)
void handleMouseMove (LLWindow *window, LLCoordGL pos, MASK mask)
void handleMouseLeave (LLWindow *window)
void handleResize (LLWindow *window, S32 x, S32 y)
void handleFocus (LLWindow *window)
void handleFocusLost (LLWindow *window)
BOOL handleActivate (LLWindow *window, BOOL activated)
void handleMenuSelect (LLWindow *window, S32 menu_item)
BOOL handlePaint (LLWindow *window, S32 x, S32 y, S32 width, S32 height)
void handleScrollWheel (LLWindow *window, S32 clicks)
BOOL handleDoubleClick (LLWindow *window, LLCoordGL pos, MASK mask)
void handleWindowBlock (LLWindow *window)
void handleWindowUnblock (LLWindow *window)
void handleDataCopy (LLWindow *window, S32 data_type, void *data)
LLViewgetRootView () const
const LLRectgetWindowRect () const
const LLRectgetVirtualWindowRect () const
S32 getWindowHeight () const
S32 getWindowWidth () const
S32 getWindowDisplayHeight () const
S32 getWindowDisplayWidth () const
LLWindowgetWindow () const
voidgetPlatformWindow () const
void focusClient () const
LLCoordGL getLastMouse () const
S32 getLastMouseX () const
S32 getLastMouseY () const
LLCoordGL getCurrentMouse () const
S32 getCurrentMouseX () const
S32 getCurrentMouseY () const
S32 getCurrentMouseDX () const
S32 getCurrentMouseDY () const
LLCoordGL getCurrentMouseDelta () const
LLStatgetMouseVelocityStat ()
BOOL getLeftMouseDown () const
BOOL getRightMouseDown () const
LLUICtrlgetTopCtrl () const
BOOL hasTopCtrl (LLView *view) const
void setupViewport (S32 x_offset=0, S32 y_offset=0)
void setup3DRender ()
void setup2DRender ()
BOOL isPickPending ()
LLVector3 mouseDirectionGlobal (const S32 x, const S32 y) const
LLVector3 mouseDirectionCamera (const S32 x, const S32 y) const
BOOL getActive () const
void getTargetWindow (BOOL &fullscreen, S32 &width, S32 &height) const
const LLStringgetInitAlert ()
void saveLastMouse (const LLCoordGL &point)
void setCursor (ECursorType c)
void showCursor ()
void hideCursor ()
void moveCursorToCenter ()
void setShowProgress (const BOOL show)
BOOL getShowProgress () const
void moveProgressViewToFront ()
void setProgressString (const LLString &string)
void setProgressPercent (const F32 percent)
void setProgressMessage (const LLString &msg)
void setProgressCancelButtonVisible (BOOL b, const LLString &label)
LLProgressViewgetProgressView () const
void updateObjectUnderCursor ()
BOOL handlePerFrameHover ()
BOOL handleKey (KEY key, MASK mask)
void handleScrollWheel (S32 clicks)
void setNormalControlsVisible (BOOL visible)
void setKeyboardFocus (LLUICtrl *new_focus, void(*on_focus_lost)(LLUICtrl *old_focus))
LLUICtrlgetKeyboardFocus ()
BOOL hasKeyboardFocus (const LLUICtrl *possible_focus) const
BOOL childHasKeyboardFocus (const LLView *parent) const
void setMouseCapture (LLMouseHandler *new_captor)
LLMouseHandlergetMouseCaptor () const
void setTopCtrl (LLUICtrl *new_top)
void reshape (S32 width, S32 height)
void sendShapeToSim ()
void draw ()
void updateDebugText ()
void drawDebugText ()
BOOL saveSnapshot (const LLString &filename, S32 image_width, S32 image_height, BOOL show_ui=TRUE, BOOL do_rebuild=FALSE, ESnapshotType type=SNAPSHOT_TYPE_COLOR)
BOOL rawSnapshot (LLImageRaw *raw, S32 image_width, S32 image_height, BOOL keep_window_aspect=TRUE, BOOL show_ui=TRUE, BOOL do_rebuild=FALSE, ESnapshotType type=SNAPSHOT_TYPE_COLOR)
BOOL saveImageNumbered (LLImageRaw *raw, const LLString &extension=LLString())
void playSnapshotAnimAndSound ()
void renderSelections (BOOL for_gl_pick, BOOL pick_parcel_walls, BOOL for_hud)
void performPick ()
void hitObjectOrLandGlobalAsync (S32 x, S32 y_from_bot, MASK mask, void(*callback)(S32 x, S32 y, MASK mask), BOOL pick_transparent=FALSE, BOOL pick_parcel_walls=FALSE)
void hitObjectOrLandGlobalImmediate (S32 x, S32 y, void(*callback)(S32 x, S32 y, MASK mask), BOOL pick_transparent)
void hitUIElementAsync (S32 x, S32 y_from_bot, MASK mask, void(*callback)(S32 x, S32 y, MASK mask))
void hitUIElementImmediate (S32 x, S32 y, void(*callback)(S32 x, S32 y, MASK mask))
LLViewerObjectgetObjectUnderCursor (const F32 depth=16.0f)
LLViewerObjectlastObjectHit ()
LLViewerObjectlastNonFloraObjectHit ()
const LLVector3dlastObjectHitOffset ()
const LLVector3dlastNonFloraObjectHitOffset ()
BOOL mousePointOnLandGlobal (const S32 x, const S32 y, LLVector3d *land_pos_global)
BOOL mousePointOnPlaneGlobal (LLVector3d &point, const S32 x, const S32 y, const LLVector3d &plane_point, const LLVector3 &plane_normal)
LLVector3d clickPointInWorldGlobal (const S32 x, const S32 y_from_bot, LLViewerObject *clicked_object) const
BOOL clickPointOnSurfaceGlobal (const S32 x, const S32 y, LLViewerObject *objectp, LLVector3d &point_global) const
void dumpState ()
void toggleFullscreen (BOOL show_progress)
BOOL checkSettings ()
void restartDisplay (BOOL show_progress_bar)
BOOL changeDisplaySettings (BOOL fullscreen, LLCoordScreen size, BOOL disable_vsync, BOOL show_progress_bar)
BOOL getIgnoreDestroyWindow ()
F32 getDisplayAspectRatio () const
const LLVector2getDisplayScale () const
void calcDisplayScale ()
void drawPickBuffer () const
LLAlertDialogalertXml (const std::string &xml_filename, LLAlertDialog::alert_callback_t callback=NULL, void *user_data=NULL)
LLAlertDialogalertXml (const std::string &xml_filename, const LLString::format_map_t &args, LLAlertDialog::alert_callback_t callback=NULL, void *user_data=NULL)
LLAlertDialogalertXmlEditText (const std::string &xml_filename, const LLString::format_map_t &args, LLAlertDialog::alert_callback_t callback, void *user_data, LLAlertDialog::alert_text_callback_t text_callback, void *text_data, const LLString::format_map_t &edit_args=LLString::format_map_t(), BOOL draw_asterixes=FALSE)

Static Public Member Functions

static void loadUserImage (void **cb_data, const LLUUID &uuid)
static void saveMovieNumbered (void *)
static void movieSize (S32 new_width, S32 new_height)
static bool alertCallback (S32 modal)

Public Attributes

LLWindowmWindow

Protected Attributes

BOOL mActive
BOOL mWantFullscreen
BOOL mShowFullscreenProgress
LLRect mWindowRect
LLRect mVirtualWindowRect
LLViewmRootView
LLVector2 mDisplayScale
LLCoordGL mCurrentMousePoint
LLCoordGL mLastMousePoint
LLCoordGL mCurrentMouseDelta
LLStat mMouseVelocityStat
BOOL mLeftMouseDown
BOOL mRightMouseDown
LLProgressViewmProgressView
LLTextBoxmToolTip
BOOL mToolTipBlocked
LLRect mToolTipStickyRect
BOOL mMouseInWindow
BOOL mFocusCycleMode
MASK mLastMask
LLToolmToolStored
BOOL mSuppressToolbox
BOOL mHideCursorPermanent
LLCoordGL mPickPoint
LLCoordGL mPickOffset
MASK mPickMask
BOOL mPickPending
void(* mPickCallback )(S32 x, S32 y, MASK mask)
LLString mOverlayTitle
BOOL mIgnoreActivate
U8mPickBuffer
LLString mInitAlert
LLDebugTextmDebugText

Static Protected Attributes

static char sSnapshotBaseName [LL_MAX_PATH]
static char sSnapshotDir [LL_MAX_PATH]
static char sMovieBaseName [LL_MAX_PATH]

Private Member Functions

void switchToolByMask (MASK mask)
void destroyWindow ()
void drawMouselookInstructions ()
void stopGL (BOOL save_state=TRUE)
void restoreGL (const LLString &progress_message=LLString::null)
void initFonts (F32 zoom_factor=1.f)
void analyzeHit (S32 x, S32 y_from_bot, LLViewerObject *objectp, U32 te_offset, LLUUID *hit_object_id_p, S32 *hit_face_p, LLVector3d *hit_pos_p, BOOL *hit_land, F32 *hit_u_coord, F32 *hit_v_coord)

Detailed Description

Definition at line 64 of file llviewerwindow.h.


Member Typedef Documentation

typedef enum LLViewerWindow::e_snapshot_type LLViewerWindow::ESnapshotType


Member Enumeration Documentation

enum LLViewerWindow::e_snapshot_type

Enumerator:
SNAPSHOT_TYPE_COLOR 
SNAPSHOT_TYPE_DEPTH 
SNAPSHOT_TYPE_OBJECT_ID 

Definition at line 213 of file llviewerwindow.h.


Constructor & Destructor Documentation

LLViewerWindow::LLViewerWindow ( char *  title,
char *  name,
S32  x,
S32  y,
S32  width,
S32  height,
BOOL  fullscreen,
BOOL  ignore_pixel_depth,
S32  stereo_mode 
)

Definition at line 1457 of file llviewerwindow.cpp.

References alertCallback(), app_force_exit(), LLFeatureManager::applyRecommendedFeatures(), LLWindowManager::createWindow(), f, FALSE, LLControlBase::firePropertyChanged(), gBumpImageList, LLControlGroup::getBOOL(), LLControlGroup::getControl(), LLControlGroup::getF32(), LLViewerImageList::getMaxVideoRamSetting(), LLWindow::getPixelAspectRatio(), LLControlGroup::getS32(), LLWindow::getSize(), LLControlGroup::getString(), LLFeatureManager::getVersion(), getWindowHeight(), getWindowWidth(), gFeatureManagerp, gGLManager, gImageList, gNoRender, gPipeline, gResMgr, gSavedSettings, gSettingsFileName, gShowOverlayTitle, LLBumpImageList::init(), LLViewerImageList::init(), LLPipeline::init(), LLViewerImage::initClass(), LLVertexBuffer::initClass(), LLFontManager::initClass(), initFonts(), initGLDefaults(), LLFeatureManager::initGraphicsFeatureMasks(), LLFeatureList::isFeatureAvailable(), LLFeatureManager::isSafe(), llendl, llmax(), llround(), llwarns, mCurrentMousePoint, mDebugText, mDisplayScale, LLGLManager::mHasVertexBufferObject, mInitAlert, mOverlayTitle, mPickBuffer, mRootView, LLVector2::mV, mVirtualWindowRect, mWindow, mWindowRect, LLCoord::mX, LLCoord::mY, NULL, PICK_DIAMETER, LLStringBase< char >::replaceChar(), S32, LLControlGroup::saveToFile(), LLRectBase< Type >::set(), LLControlGroup::setBOOL(), LLWindow::setCallbacks(), LLAlertDialog::setDisplayCallback(), LLControlGroup::setS32(), LLUI::setScaleFactor(), LLWinDebug::setupExceptionHandler(), LLVector2::setVec(), size, sMovieBaseName, sSnapshotBaseName, sSnapshotDir, stop_glerror, TRUE, LLSplashScreen::update(), VX, and VY.

LLViewerWindow::~LLViewerWindow (  )  [virtual]

Definition at line 1988 of file llviewerwindow.cpp.

References LLSelectMgr::cleanup(), LLPipeline::cleanup(), LLSky::cleanup(), LLVertexBuffer::cleanupClass(), LLViewerImage::cleanupClass(), LLFontManager::cleanupClass(), LLWorldMapView::cleanupTextures(), LLFontGL::destroyDefaultFonts(), destroyWindow(), FALSE, gBumpImageList, LLView::getRect(), gFloaterAvatarList, gFloaterCamera, gFloaterEventLog, gFloaterMap, gFloaterMute, gFloaterTools, gFloaterView, gHoverView, gHUDView, gImageList, gIMMgr, gMorphView, gNoRender, gNotifyBoxView, gPipeline, gResMgr, gSavedSettings, gSelectMgr, gSky, gStatusBar, llendl, llinfos, LLRectBase< Type >::mBottom, mDebugText, mPickBuffer, mRootView, mToolTip, NULL, LLControlGroup::setS32(), LLMorphView::setVisible(), LLBumpImageList::shutdown(), LLViewerImageList::shutdown(), stop_glerror, and stopGL().


Member Function Documentation

void LLViewerWindow::adjustRectanglesForFirstUse ( const LLRect full_window  ) 

Definition at line 1819 of file llviewerwindow.cpp.

References adjust_rect_bottom_center(), adjust_rect_top_left(), adjust_rect_top_right(), LLControlGroup::getRect(), LLRectBase< Type >::getWidth(), gSavedSettings, r, and LLControlGroup::setRect().

Referenced by initBase().

bool LLViewerWindow::alertCallback ( S32  modal  )  [static]

Definition at line 5135 of file llviewerwindow.cpp.

References LLAgent::cameraMouselook(), LLAgent::changeCameraToDefault(), gAgent, and gNoRender.

Referenced by LLViewerWindow().

LLAlertDialog * LLViewerWindow::alertXml ( const std::string &  xml_filename,
const LLString::format_map_t args,
LLAlertDialog::alert_callback_t  callback = NULL,
void user_data = NULL 
)

Definition at line 5163 of file llviewerwindow.cpp.

References LLAgent::cameraMouselook(), LLAgent::changeCameraToDefault(), gAgent, gNoRender, llendl, llinfos, NULL, and LLAlertDialog::showXml().

LLAlertDialog * LLViewerWindow::alertXml ( const std::string &  xml_filename,
LLAlertDialog::alert_callback_t  callback = NULL,
void user_data = NULL 
)

Definition at line 5156 of file llviewerwindow.cpp.

Referenced by LLPanelEstateInfo::accessAddCore(), LLPanelEstateInfo::accessAddCore3(), LLPanelEstateInfo::accessRemoveCore(), LLPanelEstateInfo::accessRemoveCore2(), LLMuteList::add(), LLPanelEstateInfo::addAllowedGroup2(), LLToolBrushLand::alertNoTerraform(), app_user_quit(), LLPanelGroupMembersSubTab::apply(), LLPanelGroupGeneral::apply(), LLPanelGroup::apply(), LLFloaterCustomize::askToSaveAllIfDirty(), LLPanelGroupRoles::attemptTransition(), LLPanelGroup::attemptTransition(), auction_j2c_upload_done(), auction_tga_upload_done(), LLFloaterBuyCurrency::buyCurrency(), LLTaskInvFVBridge::buyItem(), LLFloaterBuyLand::buyLand(), callback_download_complete(), LLViewerParcelMgr::callbackDivideLand(), LLPanelClassified::callbackGotPriceForListing(), LLViewerParcelMgr::callbackJoinLand(), LLFloaterMute::callbackMuteByName(), LLScriptEdCore::canClose(), LLPreviewNotecard::canClose(), LLPreviewGesture::canClose(), changeDisplaySettings(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLConfirmationManager::confirm(), LLPanelGridTools::confirmKick(), create_new_landmark(), LLToolDragAndDrop::dad3dWearCategory(), LLToolDragAndDrop::dad3dWearItem(), LLViewerParcelMgr::deedLandToGroup(), derez_objects(), dialog_choose_gender_first_start(), LLURLDispatcherImpl::dispatchApp(), do_disconnect(), LLFloaterSellLandUI::doSellLand(), draw(), LLHTTPUpdateResponder::error(), LLAssetUploadResponder::error(), LLToolDragAndDrop::giveInventory(), LLToolDragAndDrop::giveInventoryCategory(), handle_give_money_dialog(), handle_leave_group(), handle_save_to_xml(), handle_take(), LLPanelGroupRolesSubTab::handleActionCheck(), LLPanelGroupTab::handleClickHelp(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLToolDragAndDrop::handleCopyProtectedItem(), LLPanelEstateCovenant::handleDragAndDrop(), LLPromptShowFile::handleEvent(), LLPromptShowURL::handleEvent(), LLWorldCreateLandmark::handleEvent(), LLWorldSetBusy::handleEvent(), LLToolsLink::handleEvent(), LLObjectReturn::handleEvent(), LLHelpMOTD::handleEvent(), LLAvatarGiveCard::handleEvent(), LLAvatarEject::handleEvent(), LLAvatarFreeze::handleEvent(), LLEmptyLostAndFound::handleEvent(), LLEmptyTrash::handleEvent(), LLPanelGroupRoles::handleNotifyCallback(), idle_startup(), LLVOTree::initClass(), LLVOGrass::initClass(), join_group_callback(), LLPanelGroups::leave(), LLFloaterOpenObject::moveToInventory(), LLPanelEditWearable::onBtnCreateNew(), LLScriptEdCore::onBtnHelp(), LLFloaterLandmark::onBtnNew(), LLFloaterAnimPreview::onBtnOK(), LLScriptEdCore::onBtnUndoChanges(), LLFloaterTOS::onCancel(), LLPanelEstateInfo::onClickAddAllowedAgent(), LLPanelEstateInfo::onClickAddAllowedGroup(), LLPanelEstateInfo::onClickAddBannedAgent(), LLPanelEstateInfo::onClickAddEstateManager(), LLPanelPlace::onClickAuction(), LLPanelRegionTerrainInfo::onClickBakeTerrain(), LLPanelLandGeneral::onClickBuyPass(), LLPanelWeb::onClickClearCache(), LLPanelNetwork::onClickClearCache(), LLPanelWeb::onClickClearCookies(), LLPanelEvent::onClickCreateEvent(), LLPanelPermissions::onClickDeedToGroup(), LLPanelAvatarPicks::onClickDelete(), LLPanelAvatarClassified::onClickDelete(), LLPanelObjectTools::onClickDeleteAllOwnedBy(), LLPanelObjectTools::onClickDeleteAllScriptedOwnedBy(), LLPanelObjectTools::onClickDeletePublicOwnedBy(), LLFloaterAvatarList::onClickEject(), LLFloaterAvatarList::onClickEjectFromEstate(), LLPanelGridTools::onClickFlushMapVisibilityCaches(), LLFloaterAvatarList::onClickFreeze(), LLFloaterAvatarList::onClickGohomerEject(), LLFloaterAvatarList::onClickGohomerOff(), LLFloaterAvatarList::onClickGohomerSendAway(), LLFloaterAvatarList::onClickGohomerSendHome(), LLFloaterAvatarList::onClickGohomerSendHomeByKey(), LLFloaterAvatarList::onClickGohomerWarn(), LLPanelRegionInfo::onClickHelp(), LLPanelGroupGeneral::onClickJoin(), LLPanelRegionGeneralInfo::onClickKickAll(), LLPanelFriends::onClickModifyStatus(), LLFloaterAvatarList::onClickMute(), LLPanelAvatarClassified::onClickNew(), LLPanelLogin::onClickNewAccount(), LLPanelAvatarSecondLife::onClickPartnerHelp(), LLPanelAvatarSecondLife::onClickPublishHelp(), LLFloaterPostcard::onClickPublishHelp(), LLPanelLandOptions::onClickPublishHelp(), LLFloaterNetwork2080::onClickQueue(), LLPanelFriends::onClickRemove(), LLPanelNetwork::onClickResetCache(), LLPanelMsgs::onClickResetDialogs(), LLPanelRegionDebugInfo::onClickRestart(), LLPanelLandObjects::onClickReturnGroupObjects(), LLPanelLandObjects::onClickReturnOtherObjects(), LLPanelLandObjects::onClickReturnOwnerList(), LLPanelLandObjects::onClickReturnOwnerObjects(), LLPanelRegionDebugInfo::onClickReturnScriptedAll(), LLPanelRegionDebugInfo::onClickReturnScriptedOtherLand(), LLFloaterReporter::onClickSend(), LLFloaterPostcard::onClickSend(), LLPanelGroupNotices::onClickSendMessage(), LLPanelPick::onClickSet(), LLPanelLandOptions::onClickSet(), LLPanelNetwork::onClickSetCache(), LLPanelMsgs::onClickSkipDialogs(), LLPanelLandGeneral::onClickStartAuction(), LLPanelGroupVoting::impl::onClickSubmitProposal(), LLPanelRegionTerrainInfo::onClickUploadRaw(), LLPanelGroupVoting::impl::onClickViewHistoryItem(), LLPanelGroupVoting::impl::onClickViewProposalItem(), LLPanelAvatarWeb::onClickWebProfileHelp(), LLPanelLandOptions::onCommitAny(), LLPanelPermissions::onCommitClickAction(), LLPanelNetwork::onCommitPort(), LLFloaterTopObjects::onDisableAll(), LLPreviewTexture::onFileLoadedForSave(), LLPanelEstateInfo::onKickUserCommit(), LLPanelEstateCovenant::onLoadComplete(), LLLiveLSLEditor::onReset(), LLFloaterTopObjects::onReturnAll(), LLLiveLSLEditor::onRunningCheckboxClicked(), LLLiveLSLEditor::onSaveBytecodeComplete(), LLPreviewLSL::onSaveBytecodeComplete(), LLFloaterCompileQueue::onSaveBytecodeComplete(), LLPreviewLSL::onSaveComplete(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLWearable::onSaveNewAssetComplete(), LLLiveLSLEditor::onSaveTextComplete(), LLFloaterCompileQueue::onSaveTextComplete(), LLViewerTextEditor::openEmbeddedNotecard(), LLWearableBridge::openItem(), optionally_prepare_video(), optionally_start_music(), LLViewerRequiredVoiceVersion::post(), LLViewerForceCloseChatterBoxSession::post(), LLViewerChatterBoxSessionEventReply::post(), LLViewerChatterBoxSessionStartReply::post(), process_alert_core(), process_teleport_failed(), LLAvatarTracker::processChange(), LLGroupMgr::processCreateGroupReply(), LLFloaterReporter::processRegionInfo(), queue_actions(), LLTaskInvFVBridge::removeBatch(), LLTaskInvFVBridge::removeItem(), LLAgent::removeWearable(), request_friendship(), LLPanelFriends::requestFriendshipDialog(), LLPanelEstateCovenant::resetCovenantID(), rez_attachment(), LLLiveLSLEditor::saveIfNeeded(), LLPreviewGesture::saveIfNeeded(), LLWearable::saveNewAsset(), LLSnapshotLivePreview::saveTexture(), LLSelectMgr::selectDelete(), LLViewerParcelMgr::sendParcelDeed(), LLViewerParcelMgr::sendParcelGodForceOwner(), LLViewerParcelMgr::sendParcelGodForceToContent(), LLViewerParcelMgr::sendParcelRelease(), LLPanelEstateInfo::sendUpdate(), LLPanelRegionGeneralInfo::sendUpdate(), LLViewerParcelMgr::setupParcelBuy(), LLAgent::setWearable(), LLFloaterTrustNetRate::show(), LLFloaterOpenObject::show(), LLFloaterBuyContents::show(), LLFloaterBuy::show(), show_buy_currency(), show_first_run_dialog(), LLViewerTextEditor::showCopyToInvDialog(), LLFloaterReporter::showFromMenu(), LLViewerParcelMgr::startDeedLandToGroup(), LLViewerParcelMgr::startDivideLand(), LLViewerParcelMgr::startJoinLand(), LLViewerParcelMgr::startReleaseLand(), LLPanelClassified::titleIsValid(), update_app(), upload_done_callback(), upload_error(), upload_new_resource(), upload_pick(), LLFloaterPostcard::uploadCallback(), LLFloaterReporter::uploadDoneCallback(), LLAssetUploadResponder::uploadFailure(), use_circuit_callback(), LLFloaterReporter::validateReport(), LLPanelRegionTextureInfo::validateTextureSizes(), warn_move_inventory(), wear_inventory_category_on_avatar_step2(), and LLWearableBridge::wearOnAvatar().

LLAlertDialog * LLViewerWindow::alertXmlEditText ( const std::string &  xml_filename,
const LLString::format_map_t args,
LLAlertDialog::alert_callback_t  callback,
void user_data,
LLAlertDialog::alert_text_callback_t  text_callback,
void text_data,
const LLString::format_map_t edit_args = LLString::format_map_t(),
BOOL  draw_asterixes = FALSE 
)

Definition at line 5187 of file llviewerwindow.cpp.

References LLAgent::cameraMouselook(), LLAgent::changeCameraToDefault(), LLAlertDialog::createXml(), gAgent, gNoRender, llendl, llinfos, NULL, LLAlertDialog::setDrawAsterixes(), LLAlertDialog::setEditTextArgs(), LLAlertDialog::setEditTextCallback(), and LLAlertDialog::show().

Referenced by LLConfirmationManager::confirm(), handle_lure(), LLPanelAvatar::onClickFreeze(), LLPanelAvatar::onClickKick(), LLPanelGridTools::onClickKickAll(), LLPanelRegionGeneralInfo::onClickMessage(), LLPanelEstateInfo::onClickMessageEstate(), LLFloaterMute::onClickMuteByName(), and LLPanelAvatar::onClickUnfreeze().

void LLViewerWindow::analyzeHit ( S32  x,
S32  y_from_bot,
LLViewerObject objectp,
U32  te_offset,
LLUUID hit_object_id_p,
S32 hit_face_p,
LLVector3d hit_pos_p,
BOOL hit_land,
F32 hit_u_coord,
F32 hit_v_coord 
) [private]

Definition at line 3719 of file llviewerwindow.cpp.

References f, face, FALSE, FOR_SELECTION, gAgent, gCamera, LLPrimitive::getPCode(), LLAgent::getPosGlobalFromAgent(), LLViewerObject::getPositionGlobal(), LLViewerObject::getRenderPosition(), gPickFaces, gPipeline, LLPrimitive::isAvatar(), LL_PCODE_VOLUME, LLViewerObject::LL_VO_SURFACE_PATCH, llround(), mDisplayScale, LLViewerObject::mDrawable, LLViewerObject::mID, mousePointOnLandGlobal(), LLVector2::mV, NO_FACE, LLPointer< Type >::notNull(), LLUUID::null, LLPipeline::renderFaceForUVSelect(), S32, LLViewerCamera::setPerspective(), TRUE, VBLUE, VGREEN, VRED, VX, VY, and LLVector3d::zero.

Referenced by performPick().

void LLViewerWindow::calcDisplayScale (  ) 

Definition at line 5095 of file llviewerwindow.cpp.

References f, LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLWindow::getFullscreen(), LLRectBase< Type >::getHeight(), LLWindow::getPixelAspectRatio(), LLRectBase< Type >::getWidth(), gSavedSettings, initFonts(), llendl, llinfos, llmax(), llmin(), llround(), mDisplayScale, MIN_DISPLAY_SCALE, LLVector2::mV, mWindow, mWindowRect, LLVector2::setVec(), VX, and VY.

Referenced by reshape().

BOOL LLViewerWindow::changeDisplaySettings ( BOOL  fullscreen,
LLCoordScreen  size,
BOOL  disable_vsync,
BOOL  show_progress_bar 
)

Definition at line 4908 of file llviewerwindow.cpp.

References alertXml(), LLStartUp::canGoFullscreen(), FALSE, LLControlGroup::getBOOL(), LLWindow::getFullscreen(), LLFocusMgr::getKeyboardFocus(), LLWindow::getMaximized(), LLWindow::getPosition(), LLControlGroup::getS32(), LLWindow::getSize(), gFocusMgr, gSavedSettings, LLFloaterSnapshot::hide(), llendl, llformat(), llinfos, LLWindow::maximize(), mIgnoreActivate, mShowFullscreenProgress, mWantFullscreen, mWindow, LLCoord::mX, LLCoord::mY, NULL, reshape(), restoreGL(), S32, send_agent_pause(), send_agent_resume(), LLControlGroup::setBOOL(), LLFocusMgr::setKeyboardFocus(), LLWindow::setPosition(), LLControlGroup::setS32(), LLWindow::setSize(), size, stopGL(), LLWindow::switchContext(), and TRUE.

Referenced by LLPanelDisplay::applyResolution(), checkSettings(), and movieSize().

BOOL LLViewerWindow::checkSettings (  ) 

Definition at line 4865 of file llviewerwindow.cpp.

References LLStartUp::canGoFullscreen(), changeDisplaySettings(), FALSE, LLControlGroup::getBOOL(), LLWindow::getFullscreen(), LLControlGroup::getS32(), gSavedSettings, gViewerWindow, mShowFullscreenProgress, mWantFullscreen, mWindow, and TRUE.

Referenced by display().

BOOL LLViewerWindow::childHasKeyboardFocus ( const LLView parent  )  const

Definition at line 4569 of file llviewerwindow.cpp.

References LLFocusMgr::childHasKeyboardFocus(), and gFocusMgr.

Referenced by LLFolderView::handleKeyHere(), and LLFolderView::removeSelectedItems().

LLVector3d LLViewerWindow::clickPointInWorldGlobal ( const S32  x,
const S32  y_from_bot,
LLViewerObject clicked_object 
) const

Definition at line 3307 of file llviewerwindow.cpp.

References gAgent, LLAgent::getCameraPositionGlobal(), LLViewerObject::getPositionGlobal(), LLVector3d::magVec(), mouseDirectionGlobal(), and LLVector3d::setVec().

Referenced by clickPointOnSurfaceGlobal(), and LLToolGrab::handleHoverActive().

BOOL LLViewerWindow::clickPointOnSurfaceGlobal ( const S32  x,
const S32  y,
LLViewerObject objectp,
LLVector3d point_global 
) const

Definition at line 3328 of file llviewerwindow.cpp.

References clickPointInWorldGlobal(), FALSE, LLViewerObject::getPositionGlobal(), llendl, and llinfos.

void LLViewerWindow::destroyWindow (  )  [private]

Definition at line 4512 of file llviewerwindow.cpp.

References LLWindowManager::destroyWindow(), mWindow, and NULL.

Referenced by ~LLViewerWindow().

void LLViewerWindow::draw (  ) 

Definition at line 2228 of file llviewerwindow.cpp.

References alertXml(), LLAgent::cameraMouselook(), LLTextBox::draw(), LLView::draw(), LLTool::draw(), drawDebugText(), drawMouselookInstructions(), f, FALSE, gAgent, gCamera, LLControlGroup::getBOOL(), LLToolMgr::getCurrentTool(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLResMgr::getRes(), LLFocusMgr::getTopCtrl(), LLView::getVisible(), getWindowHeight(), getWindowWidth(), LLViewerCamera::getZoomFactor(), LLViewerCamera::getZoomSubRegion(), gFocusMgr, gFrameTime, glPopMatrix, glTranslatef, gResMgr, gSavedSettings, gShowOverlayTitle, gToolMgr, gViewerWindow, LLFontGL::HCENTER, LLFontGL::LEFT, llceil(), LLFONT_SANSSERIF, llround(), LLView::localPointToScreen(), mDisplayScale, microsecondsToTimecodeString(), mOverlayTitle, mRootView, mToolTip, LLVector2::mV, LLPanel::nextAlert(), LLUI::popMatrix(), LLUI::pushMatrix(), LLFontGL::renderUTF8(), S32, LLUI::setLineWidth(), LLUI::sGLScaleFactor, LLFontGL::sSansSerifBig, stop_glerror, LLFontGL::TOP, LLUI::translate(), TRUE, VX, and VY.

Referenced by display_startup(), and render_ui_2d().

void LLViewerWindow::drawDebugText (  ) 

Definition at line 2223 of file llviewerwindow.cpp.

References LLDebugText::draw(), and mDebugText.

Referenced by draw().

void LLViewerWindow::drawMouselookInstructions (  )  [private]

Definition at line 4522 of file llviewerwindow.cpp.

References f, LLFontGL::getLineHeight(), LLResMgr::getRes(), LLFontGL::getWidth(), getWindowHeight(), gl_rect_2d(), glColor4f, gResMgr, gViewerWindow, LLFontGL::LEFT, LLFONT_SANSSERIF, llround(), LLRectBase< Type >::mLeft, LLRectBase< Type >::mTop, LLFontGL::renderUTF8(), S32, LLRectBase< Type >::setLeftTopAndSize(), and LLFontGL::TOP.

Referenced by draw().

void LLViewerWindow::drawPickBuffer (  )  const

Definition at line 5054 of file llviewerwindow.cpp.

References f, FALSE, gl_line_2d(), gl_rect_2d(), glColor4fv, glPopMatrix, glTranslatef, llround(), mDisplayScale, mPickBuffer, mPickOffset, mPickPoint, LLVector2::mV, LLCoord::mX, LLCoord::mY, PICK_DIAMETER, PICK_HALF_WIDTH, VX, VY, and LLColor4::white.

Referenced by render_ui_2d().

void LLViewerWindow::dumpState (  ) 

Definition at line 4718 of file llviewerwindow.cpp.

References LLWindow::getMinimized(), LLWindow::getVisible(), llendl, llinfos, mActive, mWindow, and S32.

void LLViewerWindow::focusClient (  )  const [inline]

Definition at line 120 of file llviewerwindow.h.

References LLWindow::focusClient(), and mWindow.

BOOL LLViewerWindow::getActive (  )  const [inline]

Definition at line 148 of file llviewerwindow.h.

References mActive.

Referenced by audio_update_volume(), display(), display_startup(), main_loop(), and process_keystrokes_async().

LLCoordGL LLViewerWindow::getCurrentMouse (  )  const [inline]

Definition at line 125 of file llviewerwindow.h.

References mCurrentMousePoint.

Referenced by idle(), and LLHoverView::setHoverActive().

LLCoordGL LLViewerWindow::getCurrentMouseDelta (  )  const [inline]

Definition at line 130 of file llviewerwindow.h.

References mCurrentMouseDelta.

S32 LLViewerWindow::getCurrentMouseDX (  )  const [inline]

Definition at line 128 of file llviewerwindow.h.

References mCurrentMouseDelta, and LLCoord::mX.

Referenced by LLWorldMapView::handleHover(), LLToolGun::handleHover(), and LLToolCamera::handleHover().

S32 LLViewerWindow::getCurrentMouseDY (  )  const [inline]

Definition at line 129 of file llviewerwindow.h.

References mCurrentMouseDelta, and LLCoord::mY.

Referenced by LLWorldMapView::handleHover(), LLToolGun::handleHover(), and LLToolCamera::handleHover().

S32 LLViewerWindow::getCurrentMouseX (  )  const [inline]

Definition at line 126 of file llviewerwindow.h.

References mCurrentMousePoint, and LLCoord::mX.

Referenced by getObjectUnderCursor(), LLToolPie::pickAndShowMenu(), and LLHoverView::updateHover().

S32 LLViewerWindow::getCurrentMouseY (  )  const [inline]

Definition at line 127 of file llviewerwindow.h.

References mCurrentMousePoint, and LLCoord::mY.

Referenced by getObjectUnderCursor(), LLToolPie::pickAndShowMenu(), and LLHoverView::updateHover().

F32 LLViewerWindow::getDisplayAspectRatio (  )  const

Definition at line 5034 of file llviewerwindow.cpp.

References LLControlGroup::getBOOL(), LLControlGroup::getF32(), LLWindow::getFullscreen(), LLWindow::getNativeAspectRatio(), gSavedSettings, and mWindow.

Referenced by LLPanelDisplay::applyResolution(), idle_startup(), LLAgent::init(), LLPanelDisplay::postBuild(), and reshape().

const LLVector2& LLViewerWindow::getDisplayScale (  )  const [inline]

Definition at line 264 of file llviewerwindow.h.

References mDisplayScale.

Referenced by LLViewerCamera::getPixelVectors(), hitUIElementAsync(), LLViewerCamera::projectPosAgentToScreen(), LLViewerCamera::projectPosAgentToScreenEdge(), render_disconnected_background(), and LLManip::renderXYZ().

BOOL LLViewerWindow::getIgnoreDestroyWindow (  )  [inline]

Definition at line 262 of file llviewerwindow.h.

References mIgnoreActivate.

const LLString& LLViewerWindow::getInitAlert (  )  [inline]

Definition at line 154 of file llviewerwindow.h.

References mInitAlert.

Referenced by idle_startup().

LLUICtrl * LLViewerWindow::getKeyboardFocus (  ) 

Definition at line 4559 of file llviewerwindow.cpp.

References LLFocusMgr::getKeyboardFocus(), and gFocusMgr.

LLCoordGL LLViewerWindow::getLastMouse (  )  const [inline]

Definition at line 122 of file llviewerwindow.h.

References mLastMousePoint.

S32 LLViewerWindow::getLastMouseX (  )  const [inline]

Definition at line 123 of file llviewerwindow.h.

References mLastMousePoint, and LLCoord::mX.

S32 LLViewerWindow::getLastMouseY (  )  const [inline]

Definition at line 124 of file llviewerwindow.h.

References mLastMousePoint, and LLCoord::mY.

BOOL LLViewerWindow::getLeftMouseDown (  )  const [inline]

Definition at line 132 of file llviewerwindow.h.

References mLeftMouseDown.

Referenced by LLAgent::calcCameraPositionTargetGlobal(), LLToolGrab::handleHover(), LLToolCompGun::handleHover(), LLToolGrab::handleObjectHit(), LLToolCamera::pickCallback(), and LLAgent::resetView().

LLMouseHandler * LLViewerWindow::getMouseCaptor (  )  const

Definition at line 4579 of file llviewerwindow.cpp.

References LLFocusMgr::getMouseCapture(), and gFocusMgr.

LLStat* LLViewerWindow::getMouseVelocityStat (  )  [inline]

Definition at line 131 of file llviewerwindow.h.

References mMouseVelocityStat.

Referenced by LLHoverView::updateHover(), and LLAgent::updateLookAt().

LLViewerObject * LLViewerWindow::getObjectUnderCursor ( const F32  depth = 16.0f  ) 

Definition at line 3707 of file llviewerwindow.cpp.

References gCamera, getCurrentMouseX(), getCurrentMouseY(), LLCoordFrame::getOrigin(), gPipeline, mouseDirectionGlobal(), LLPipeline::pickObject(), and S32.

void* LLViewerWindow::getPlatformWindow (  )  const [inline]

Definition at line 119 of file llviewerwindow.h.

References LLWindow::getPlatformWindow(), and mWindow.

Referenced by display(), and idle_startup().

LLProgressView * LLViewerWindow::getProgressView (  )  const

Definition at line 4713 of file llviewerwindow.cpp.

References mProgressView.

BOOL LLViewerWindow::getRightMouseDown (  )  const [inline]

Definition at line 133 of file llviewerwindow.h.

References mRightMouseDown.

LLView* LLViewerWindow::getRootView (  )  const [inline]

Definition at line 111 of file llviewerwindow.h.

References mRootView.

Referenced by LLUploadDialog::centerDialog(), LLFloaterNameDesc::centerWindow(), LLPanelLogin::close(), LLToolDragAndDrop::dragOrDrop(), LLToolObjPicker::handleHover(), LLToolObjPicker::handleMouseDown(), LLToolObjPicker::handleMouseUp(), init_menus(), initWorldUI(), LLPanelLogin::LLPanelLogin(), and LLFloaterImport::postBuild().

BOOL LLViewerWindow::getShowProgress (  )  const

Definition at line 4665 of file llviewerwindow.cpp.

References LLView::getVisible(), and mProgressView.

Referenced by main_loop(), and process_keystrokes_async().

void LLViewerWindow::getTargetWindow ( BOOL fullscreen,
S32 width,
S32 height 
) const

Definition at line 4842 of file llviewerwindow.cpp.

References LLWindow::getFullscreen(), LLControlGroup::getS32(), getWindowDisplayHeight(), getWindowDisplayWidth(), gSavedSettings, gViewerWindow, mWantFullscreen, and mWindow.

Referenced by LLPanelDisplay::applyResolution(), LLPanelLogin::draw(), and LLPanelDisplay::postBuild().

LLUICtrl * LLViewerWindow::getTopCtrl (  )  const

Definition at line 4604 of file llviewerwindow.cpp.

References LLFocusMgr::getTopCtrl(), and gFocusMgr.

Referenced by LLToolDragAndDrop::dragOrDrop().

const LLRect& LLViewerWindow::getVirtualWindowRect (  )  const [inline]

Definition at line 113 of file llviewerwindow.h.

References mVirtualWindowRect.

Referenced by LLHoverView::draw(), LLFastTimerView::draw(), LLDebugView::LLDebugView(), login_show(), and LLViewerCamera::projectPosAgentToScreenEdge().

LLWindow* LLViewerWindow::getWindow ( void   )  const [inline]

Definition at line 118 of file llviewerwindow.h.

References mWindow.

Referenced by add_object(), LLPanelDisplay::applyResolution(), auction_j2c_upload_done(), auction_tga_upload_done(), LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToMouselook(), LLAgent::changeCameraToThirdPerson(), derez_objects(), LLFloaterJoystick::draw(), LLToolDragAndDrop::dropObject(), LLViewerCamera::getPixelVectors(), LLGammaListener::handleEvent(), handleFocusLost(), LLToolSelectRect::handleHover(), LLToolSelectLand::handleHover(), LLToolPlacer::handleHover(), LLToolPie::handleHover(), LLToolObjPicker::handleHover(), LLToolDragAndDrop::handleHover(), LLToolBrushLand::handleHover(), LLTool::handleHover(), LLToolTexEyedropper::handleHover(), LLManipScale::handleHover(), LLToolPie::handleMouseUp(), idle_startup(), initBase(), LLToolBar::layoutButtons(), LLInventoryModel::messageUpdateCore(), LLToolDragAndDrop::pickCallback(), LLPanelDisplay::postBuild(), LLDynamicTexture::preRender(), process_alert_core(), process_derez_ack(), process_frozen_message(), process_improved_im(), process_mean_collision_alert_message(), LLInventoryModel::processSaveAssetIntoInventory(), LLViewerObjectList::processUpdateCore(), LLViewerJoystick::scanJoystick(), LLFloaterColorPicker::showUI(), and LLViewerJoystick::updateCamera().

S32 LLViewerWindow::getWindowDisplayHeight (  )  const

Definition at line 4594 of file llviewerwindow.cpp.

References LLRectBase< Type >::getHeight(), and mWindowRect.

Referenced by LLPanelDisplay::applyResolution(), getTargetWindow(), LLFileTakeSnapshotToDisk::handleEvent(), LLViewDefaultUISize::handleEvent(), idle_startup(), LLDrawable::incrementVisible(), LLSnapshotLivePreview::LLSnapshotLivePreview(), LLFloaterSnapshot::Impl::onCommitResolution(), performPick(), LLDynamicTexture::preRender(), and LLHUDText::updateScreenPos().

S32 LLViewerWindow::getWindowDisplayWidth (  )  const

Definition at line 4599 of file llviewerwindow.cpp.

References LLRectBase< Type >::getWidth(), and mWindowRect.

Referenced by LLPanelDisplay::applyResolution(), getTargetWindow(), LLFileTakeSnapshotToDisk::handleEvent(), LLViewDefaultUISize::handleEvent(), LLSnapshotLivePreview::LLSnapshotLivePreview(), LLFloaterSnapshot::Impl::onCommitResolution(), performPick(), and LLHUDText::updateScreenPos().

S32 LLViewerWindow::getWindowHeight (  )  const

Definition at line 4584 of file llviewerwindow.cpp.

References LLRectBase< Type >::getHeight(), and mVirtualWindowRect.

Referenced by draw(), LLToolGun::draw(), LLProgressView::draw(), LLSnapshotLivePreview::draw(), drawMouselookInstructions(), LLManip::getMousePointOnPlaneGlobal(), handle_fullscreen_debug(), LLToolGrab::handleHoverActive(), handlePerFrameHover(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), LLManipRotate::highlightManipulators(), hud_render_text(), idle_startup(), initBase(), LLViewerWindow(), mouse_y_from_center(), mouseDirectionCamera(), mouseDirectionGlobal(), LLManipRotate::mouseToRay(), movieSize(), LLManip::nearestPointOnLineFromMouse(), LLFloaterCustomize::onBtnSnapshot(), LLFloaterAuction::onClickSnapshot(), process_alert_core(), rawSnapshot(), render_disconnected_background(), render_ui_2d(), LLHUDIcon::renderIcon(), LLManipTranslate::renderSnapGuides(), LLHUDText::renderText(), LLManipTranslate::renderTranslationHandles(), LLManip::renderXYZ(), LLConsole::reshape(), save_final_snapshot(), saveLastMouse(), saveMovieNumbered(), LLViewerCamera::setPerspective(), LLHUDText::updateAll(), LLPreviewTexture::updateAspectRatio(), and LLManipRotate::updateVisiblity().

const LLRect& LLViewerWindow::getWindowRect (  )  const [inline]

Definition at line 112 of file llviewerwindow.h.

References mWindowRect.

Referenced by LLViewerCamera::projectPosAgentToScreen().

S32 LLViewerWindow::getWindowWidth (  )  const

Definition at line 4589 of file llviewerwindow.cpp.

References LLRectBase< Type >::getWidth(), and mVirtualWindowRect.

Referenced by LLAgent::calcCustomizeAvatarUIOffset(), draw(), LLToolGun::draw(), LLProgressView::draw(), LLSnapshotLivePreview::draw(), LLConsole::draw(), LLManip::getMousePointOnPlaneGlobal(), handle_fullscreen_debug(), LLToolCamera::handleHover(), LLManipTranslate::handleHover(), LLToolGrab::handleHoverActive(), LLToolGrab::handleHoverInactive(), handlePerFrameHover(), LLManipTranslate::highlightManipulators(), LLManipScale::highlightManipulators(), idle_startup(), initBase(), LLToolBar::layoutButtons(), LLViewerWindow(), mouse_x_from_center(), mouseDirectionCamera(), mouseDirectionGlobal(), LLManipRotate::mouseToRay(), movieSize(), LLManip::nearestPointOnLineFromMouse(), LLFloaterCustomize::onBtnSnapshot(), LLFloaterAuction::onClickSnapshot(), process_alert_core(), rawSnapshot(), render_disconnected_background(), render_ui_2d(), LLHUDText::renderText(), LLManip::renderXYZ(), LLConsole::reshape(), save_final_snapshot(), saveLastMouse(), saveMovieNumbered(), LLViewerCamera::setPerspective(), LLFolderView::startRenamingSelectedItem(), LLDebugText::update(), LLHUDText::updateAll(), LLPreviewTexture::updateAspectRatio(), LLManipScale::updateSnapGuides(), and LLManipRotate::updateVisiblity().

BOOL LLViewerWindow::handleActivate ( LLWindow window,
BOOL  activated 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1312 of file llviewerwindow.cpp.

References audio_update_volume(), LLAgent::changeCameraToDefault(), LLAgent::clearAFK(), FALSE, gAgent, gAllowIdleAFK, LLWindow::getFullscreen(), LLStartUp::getStartupState(), gQuit, llendl, llinfos, llwarns, mActive, mIgnoreActivate, mWindow, restoreGL(), send_agent_pause(), send_agent_resume(), LLAgent::setAFK(), STATE_STARTED, stopGL(), and TRUE.

BOOL LLViewerWindow::handleCloseRequest ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1194 of file llviewerwindow.cpp.

References app_user_quit(), and FALSE.

void LLViewerWindow::handleDataCopy ( LLWindow window,
S32  data_type,
void data 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1436 of file llviewerwindow.cpp.

References LLWindow::bringToFront(), LLURLDispatcher::dispatch(), mWindow, and S32.

BOOL LLViewerWindow::handleDoubleClick ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 719 of file llviewerwindow.cpp.

References FALSE, gDebugClicks, LLToolMgr::getCurrentTool(), LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLFocusMgr::getTopCtrl(), gFocusMgr, gNoRender, gToolMgr, LLTool::handleDoubleClick(), LLView::handleDoubleClick(), LLMouseHandler::handleDoubleClick(), handleMouseDown(), LLUICtrl::hasFocus(), llendl, llinfos, llround(), mDisplayScale, mLeftMouseDown, mRootView, mToolTip, LLVector2::mV, LLCoord::mX, LLCoord::mY, LLView::pointInView(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLUICtrl::setFocus(), LLView::setVisible(), LLView::sMouseHandlerMessage, TRUE, VX, VY, x, and y.

void LLViewerWindow::handleFocus ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1214 of file llviewerwindow.cpp.

References gFocusMgr, gForegroundTime, gKeyboard, gShowTextEditCursor, gToolMgr, LLToolMgr::onAppFocusGained(), LLModalDialog::onAppFocusGained(), LLKeyboard::resetMaskKeys(), LLFocusMgr::setAppHasFocus(), TRUE, and LLFrameTimer::unpause().

void LLViewerWindow::handleFocusLost ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1237 of file llviewerwindow.cpp.

References FALSE, getWindow(), gFocusMgr, gForegroundTime, gKeyboard, gMenuBarView, gShowTextEditCursor, gToolMgr, gViewerWindow, NULL, LLToolMgr::onAppFocusLost(), LLFrameTimer::pause(), LLKeyboard::resetKeys(), LLMenuBarGL::resetMenuTrigger(), LLFocusMgr::setAppHasFocus(), LLFocusMgr::setMouseCapture(), LLWindow::setMouseClipping(), and showCursor().

BOOL LLViewerWindow::handleKey ( KEY  key,
MASK  mask 
)

Definition at line 2381 of file llviewerwindow.cpp.

References LLHoverView::cancelHover(), LLFocusMgr::childHasKeyboardFocus(), FALSE, LLView::focusNextRoot(), LLView::focusPrevRoot(), gChatBar, LLControlGroup::getBOOL(), LLChatBar::getCurrentChat(), LLMenuGL::getHighlightedItem(), LLFocusMgr::getKeyboardFocus(), LLMenuGL::getKeyboardMode(), LLFocusMgr::getTopCtrl(), gFloaterView, gFocusMgr, gGestureList, gGestureManager, gHoverView, gMenuBarView, gMenuHolder, gSavedSettings, gToolMgr, LLMenuBarGL::handleAcceleratorKey(), LLView::handleKey(), LLMenuGL::handleKey(), LLFloaterEditUI::handleKey(), LLViewerMenuHolderGL::hideMenus(), LLChatBar::inputEditorHasFocus(), LLMenuItemGL::isActive(), KEY_DOWN, KEY_ESCAPE, KEY_HOME, KEY_LEFT, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_RIGHT, KEY_TAB, KEY_UP, MASK_ALT, MASK_CONTROL, MASK_NONE, MASK_SHIFT, mRootView, mToolTip, mToolTipBlocked, NULL, LLView::sEditingUI, LLFloaterView::setCycleMode(), LLHoverView::setTyping(), LLView::setVisible(), toggle_debug_menus(), LLGestureList::trigger(), trigger_hippo_bug(), LLGestureManager::triggerGesture(), and TRUE.

Referenced by LLViewerKeyboard::handleKey().

void LLViewerWindow::handleMenuSelect ( LLWindow window,
S32  menu_item 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1369 of file llviewerwindow.cpp.

BOOL LLViewerWindow::handleMiddleMouseDown ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1124 of file llviewerwindow.cpp.

References gVoiceClient, LLVoiceClient::middleMouseState(), and TRUE.

BOOL LLViewerWindow::handleMiddleMouseUp ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1132 of file llviewerwindow.cpp.

References gVoiceClient, LLVoiceClient::middleMouseState(), and TRUE.

BOOL LLViewerWindow::handleMouseDown ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 594 of file llviewerwindow.cpp.

References LLHoverView::cancelHover(), LLWindow::captureMouse(), LLTool::clipMouseWhenDown(), FALSE, gDebugClicks, gDisconnected, LLToolMgr::getCurrentTool(), LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLFocusMgr::getTopCtrl(), gFocusMgr, gHoverView, gMenuBarView, gMouseIdleTimer, gToolMgr, LLTool::handleMouseDown(), LLView::handleMouseDown(), LLMouseHandler::handleMouseDown(), LLUICtrl::hasFocus(), llendl, llinfos, llround(), mDisplayScale, mLeftMouseDown, mRootView, mToolTip, mToolTipBlocked, LLVector2::mV, mWindow, LLCoord::mX, LLCoord::mY, NULL, LLView::pointInView(), LLFrameTimer::reset(), LLMenuBarGL::resetMenuTrigger(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLUICtrl::setFocus(), LLFocusMgr::setKeyboardFocus(), LLWindow::setMouseClipping(), LLView::setVisible(), LLView::sMouseHandlerMessage, TRUE, VX, VY, x, and y.

Referenced by handleDoubleClick().

void LLViewerWindow::handleMouseLeave ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1183 of file llviewerwindow.cpp.

References FALSE, LLFocusMgr::getMouseCapture(), gFocusMgr, llassert, mMouseInWindow, mToolTip, NULL, and LLView::setVisible().

void LLViewerWindow::handleMouseMove ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1140 of file llviewerwindow.cpp.

References LLAgent::clearAFK(), FALSE, gAgent, gAwayTimer, LLFrameTimer::getElapsedTimeF32(), LLFocusMgr::getMouseCapture(), LLView::getVisible(), gFocusMgr, gHoverView, gMouseIdleTimer, llround(), mCurrentMousePoint, mDisplayScale, MIN_AFK_TIME, mMouseInWindow, mToolTip, mToolTipBlocked, mToolTipStickyRect, LLVector2::mV, mWindow, LLCoord::mX, LLCoord::mY, LLRectBase< Type >::pointInRect(), LLFrameTimer::reset(), S32, saveLastMouse(), LLHoverView::setTyping(), LLView::setVisible(), LLWindow::showCursorFromMouseMove(), TRUE, VX, VY, x, and y.

BOOL LLViewerWindow::handleMouseUp ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 813 of file llviewerwindow.cpp.

References LLHoverView::cancelHover(), LLTool::clipMouseWhenDown(), FALSE, gDebugClicks, LLToolMgr::getCurrentTool(), LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLFocusMgr::getTopCtrl(), gFocusMgr, gHoverView, gMouseIdleTimer, gToolMgr, LLView::handleMouseUp(), LLMouseHandler::handleMouseUp(), llendl, llinfos, llround(), mDisplayScale, mLeftMouseDown, mRootView, mToolTip, LLVector2::mV, mWindow, LLCoord::mX, LLCoord::mY, NULL, LLView::pointInView(), LLWindow::releaseMouse(), LLFrameTimer::reset(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLWindow::setMouseClipping(), LLView::setVisible(), LLView::sMouseHandlerMessage, TRUE, VX, VY, x, and y.

BOOL LLViewerWindow::handlePaint ( LLWindow window,
S32  x,
S32  y,
S32  width,
S32  height 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1374 of file llviewerwindow.cpp.

References FALSE, gAgent, LLStat::getMeanPerSec(), LLAgent::getName(), LLWindow::getPlatformWindow(), LLAgent::getPositionGlobal(), LLStat::getPrev(), gNoRender, gViewerStats, LLVector3d::mdV, LLViewerStats::mFPSStat, LLViewerStats::mSimPhysicsFPS, LLViewerStats::mSimTimeDilation, S32, and TRUE.

BOOL LLViewerWindow::handlePerFrameHover (  ) 

Definition at line 2688 of file llviewerwindow.cpp.

References LLModalDialog::activeCount(), LLStat::addValue(), ADJUST_VERTICAL_NO, LLHoverView::cancelHover(), CHAT_BAR_HEIGHT, LLKeyboard::currentKey(), LLKeyboard::currentMask(), LLSelectMgr::deselectUnused(), LLViewerParcelMgr::deselectUnused(), f, FALSE, LLView::findRootMostFocusRoot(), LLUICtrl::focusFirstItem(), gBottomPanel, gChatBar, gConsole, gEditMenuHandler, LLToolMgr::getBaseTool(), LLControlGroup::getBOOL(), LLToolMgr::getCurrentTool(), LLToolMgr::getCurrentToolset(), LLWindow::getCursorPosition(), LLFloaterView::getCycleMode(), LLFrameTimer::getElapsedTimeF32(), LLControlGroup::getF32(), LLBottomPanel::getFocusIndicator(), LLRectBase< Type >::getHeight(), LLFocusMgr::getKeyboardFocus(), LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLView::getParent(), LLView::getRect(), LLSelectMgr::getSelection(), LLFocusMgr::getTopCtrl(), LLView::getVisible(), LLRectBase< Type >::getWidth(), getWindowHeight(), getWindowWidth(), gFaceEditToolset, gFloaterTools, gFloaterView, gFocusMgr, gFrameIntervalSeconds, gHoverView, gKeyboard, gMouseIdleTimer, gMouselookToolset, gNoRender, gNotifyBoxView, gOverlayBar, gParcelMgr, gPipeline, gSavedSettings, gSelectMgr, gSnapshotFloaterView, gToolBar, gToolDragAndDrop, gToolGun, gToolInspect, gToolMgr, gToolNull, gToolPie, LLTool::handleHover(), LLView::handleHover(), LLMouseHandler::handleHover(), LLView::handleToolTip(), LLFloaterView::highlightFocusedFloater(), LLView::isCtrl(), LLWindow::isCursorHidden(), LLView::isFocusRoot(), LLView::isInEnabledChain(), LLView::isInVisibleChain(), LLFloater::isMinimized(), LLMouseHandler::isView(), lldebugst, llendl, llinfos, llmin(), llround(), lltrunc(), LLVector2::magVec(), mask, MASK_CONTROL, LLRectBase< Type >::mBottom, mCurrentMouseDelta, mCurrentMousePoint, mLastMousePoint, mMouseInWindow, mMouseVelocityStat, mRootView, mSuppressToolbox, mToolTip, mToolTipBlocked, mToolTipStickyRect, LLRectBase< Type >::mTop, LLVector2::mV, mWindow, mWindowRect, LLCoord::mX, LLCoord::mY, NULL, LLFloater::open(), OVERLAY_BAR_HEIGHT, LLView::pointInView(), LLOverlayBar::refresh(), LLChatBar::refresh(), LLToolBar::refresh(), LLFocusMgr::releaseFocusIfNeeded(), LLConsole::reshape(), LLFloaterView::reshape(), LLView::reshape(), LLTextBox::reshapeToFitText(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLCoord::set(), LLFloaterView::setCycleMode(), LLView::setOrigin(), LLView::setRect(), LLFloaterView::setSnapOffsetBottom(), LLVector2::setVec(), LLFloater::setVisible(), LLView::setVisible(), LLTextBox::setWrappedText(), LLUI::sGLScaleFactor, LLView::sMouseHandlerMessage, LLPipeline::sRenderProcessBeacons, LLUI::sShowXUINames, LLChatBar::startChat(), STATUS_BAR_HEIGHT, LLFloaterView::syncFloaterTabOrder(), LLRectBase< Type >::translate(), LLView::translateIntoRect(), TRUE, LLHoverView::updateHover(), LLFloaterTools::updatePopup(), LLView::updateRect(), VX, VY, x, and y.

Referenced by idle(), and idle_startup().

void LLViewerWindow::handleQuit ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1203 of file llviewerwindow.cpp.

References app_force_quit(), and NULL.

void LLViewerWindow::handleResize ( LLWindow window,
S32  x,
S32  y 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1208 of file llviewerwindow.cpp.

References reshape().

BOOL LLViewerWindow::handleRightMouseDown ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 907 of file llviewerwindow.cpp.

References CAMERA_MODE_CUSTOMIZE_AVATAR, LLHoverView::cancelHover(), LLWindow::captureMouse(), LLTool::clipMouseWhenDown(), FALSE, gAgent, gDebugClicks, LLAgent::getCameraMode(), LLToolMgr::getCurrentTool(), LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLFocusMgr::getTopCtrl(), gFocusMgr, gHoverView, gMenuBarView, gToolMgr, gToolPie, LLToolPie::handleRightMouseDown(), LLTool::handleRightMouseDown(), LLView::handleRightMouseDown(), LLMouseHandler::handleRightMouseDown(), LLUICtrl::hasFocus(), llendl, llinfos, llround(), mDisplayScale, mRightMouseDown, mRootView, mToolTip, LLVector2::mV, mWindow, LLCoord::mX, LLCoord::mY, NULL, LLView::pointInView(), LLMenuBarGL::resetMenuTrigger(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLUICtrl::setFocus(), LLFocusMgr::setKeyboardFocus(), LLWindow::setMouseClipping(), LLView::setVisible(), LLView::sMouseHandlerMessage, TRUE, VX, VY, x, and y.

BOOL LLViewerWindow::handleRightMouseUp ( LLWindow window,
LLCoordGL  pos,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1031 of file llviewerwindow.cpp.

References LLHoverView::cancelHover(), LLTool::clipMouseWhenDown(), FALSE, gDebugClicks, LLToolMgr::getCurrentTool(), LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLFocusMgr::getTopCtrl(), gFocusMgr, gHoverView, gMouseIdleTimer, gToolMgr, LLView::handleRightMouseUp(), LLMouseHandler::handleRightMouseUp(), llendl, llinfos, llround(), mDisplayScale, mRightMouseDown, mRootView, mToolTip, LLVector2::mV, mWindow, LLCoord::mX, LLCoord::mY, NULL, LLView::pointInView(), LLWindow::releaseMouse(), LLFrameTimer::reset(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLWindow::setMouseClipping(), LLView::setVisible(), LLView::sMouseHandlerMessage, TRUE, VX, VY, x, and y.

void LLViewerWindow::handleScanKey ( KEY  key,
BOOL  key_down,
BOOL  key_up,
BOOL  key_level 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1304 of file llviewerwindow.cpp.

References gViewerKeyboard, and LLViewerKeyboard::scanKey().

void LLViewerWindow::handleScrollWheel ( S32  clicks  ) 

Definition at line 2612 of file llviewerwindow.cpp.

References FALSE, gAgent, LLFocusMgr::getMouseCapture(), LLMouseHandler::getName(), LLFocusMgr::getTopCtrl(), gFocusMgr, gMouseIdleTimer, gWorldPointer, LLAgent::handleScrollWheel(), LLView::handleScrollWheel(), LLMouseHandler::handleScrollWheel(), llendl, llinfos, mCurrentMousePoint, mRootView, mToolTip, LLCoord::mX, LLCoord::mY, LLFrameTimer::reset(), S32, LLView::screenPointToLocal(), LLMouseHandler::screenPointToLocal(), LLView::sDebugMouseHandling, LLView::setVisible(), and LLView::sMouseHandlerMessage.

void LLViewerWindow::handleScrollWheel ( LLWindow window,
S32  clicks 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1421 of file llviewerwindow.cpp.

References gViewerWindow, and handleScrollWheel().

Referenced by handleScrollWheel().

BOOL LLViewerWindow::handleTranslatedKeyDown ( KEY  key,
MASK  mask,
BOOL  repeated 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1273 of file llviewerwindow.cpp.

References LLAgent::clearAFK(), FALSE, gAgent, gAwayTimer, LLFrameTimer::getElapsedTimeF32(), gViewerKeyboard, gVoiceClient, LLViewerKeyboard::handleKey(), KEY_RETURN, LLVoiceClient::keyDown(), MASK_NONE, and MIN_AFK_TIME.

BOOL LLViewerWindow::handleTranslatedKeyUp ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1295 of file llviewerwindow.cpp.

References FALSE, gVoiceClient, and LLVoiceClient::keyUp().

BOOL LLViewerWindow::handleUnicodeChar ( llwchar  uni_char,
MASK  mask 
) [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 2570 of file llviewerwindow.cpp.

References FALSE, LLFocusMgr::getKeyboardFocus(), LLKeyboard::getKeyRepeated(), LLFocusMgr::getTopCtrl(), gFocusMgr, gKeyboard, gMenuBarView, gViewerKeyboard, LLViewerKeyboard::handleKey(), LLView::handleUnicodeChar(), KEY_RETURN, MASK_CONTROL, MASK_NONE, and TRUE.

void LLViewerWindow::handleWindowBlock ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1426 of file llviewerwindow.cpp.

References send_agent_pause().

void LLViewerWindow::handleWindowUnblock ( LLWindow window  )  [virtual]

Reimplemented from LLWindowCallbacks.

Definition at line 1431 of file llviewerwindow.cpp.

References send_agent_resume().

BOOL LLViewerWindow::hasKeyboardFocus ( const LLUICtrl possible_focus  )  const

Definition at line 4564 of file llviewerwindow.cpp.

References LLFocusMgr::getKeyboardFocus(), and gFocusMgr.

Referenced by LLFolderView::draw().

BOOL LLViewerWindow::hasTopCtrl ( LLView view  )  const

Definition at line 4609 of file llviewerwindow.cpp.

References LLFocusMgr::getTopCtrl(), and gFocusMgr.

Referenced by LLFolderView::deleteAllChildren(), and LLFolderView::~LLFolderView().

void LLViewerWindow::hideCursor (  ) 

Definition at line 2087 of file llviewerwindow.cpp.

References LLHoverView::cancelHover(), FALSE, gHoverView, LLWindow::hideCursor(), mToolTip, mWindow, and LLView::setVisible().

Referenced by LLAgent::changeCameraToMouselook(), LLWorldMapView::handleHover(), LLToolGun::handleHover(), LLToolCamera::handleMouseDown(), LLFloaterImagePreview::handleMouseDown(), LLFloaterAnimPreview::handleMouseDown(), LLToolGrab::handleObjectHit(), LLToolGun::handleSelect(), and LLToolPie::pickAndShowMenu().

void LLViewerWindow::hitObjectOrLandGlobalAsync ( S32  x,
S32  y_from_bot,
MASK  mask,
void(*)(S32 x, S32 y, MASK mask callback,
BOOL  pick_transparent = FALSE,
BOOL  pick_parcel_walls = FALSE 
)

Definition at line 3346 of file llviewerwindow.cpp.

References LLCamera::calcAgentFrustumPlanes(), DEG_TO_RAD, LLWindow::delayInputProcessing(), f, FALSE, FOR_SELECTION, gCamera, LLCamera::getFar(), LLCamera::getNear(), LLCoordFrame::getOrigin(), LLCoordFrame::getUpAxis(), LLView::getVisible(), gFloaterTools, gLastHitNonFloraObjectFace, gLastHitNonFloraObjectID, gLastHitNonFloraObjectOffset, gLastHitNonFloraPosGlobal, gLastHitObjectFace, gLastHitObjectID, gLastHitObjectOffset, gLastHitParcelWall, gLastHitPosGlobal, glClear, glPopMatrix, gNoRender, gObjectList, gPickTransparent, gUseGLPick, llround(), LLCamera::mAgentFrustum, mDisplayScale, mouseDirectionGlobal(), mPickCallback, mPickMask, mPickOffset, mPickPending, mPickPoint, LLVector2::mV, mWindow, PICK_DIAMETER, PICK_HALF_WIDTH, LLViewerObjectList::renderObjectsForSelect(), S32, LLCoord::set(), LLCamera::setAspect(), LLCamera::setFar(), LLCamera::setNear(), LLUUID::setNull(), LLCoordFrame::setOrigin(), LLCoordFrame::setOriginAndLookAt(), LLViewerCamera::setPerspective(), setupViewport(), LLCamera::setView(), LLDrawPoolAlpha::sShowDebugAlpha, stop_glerror, TRUE, VX, VY, and LLVector3d::zeroVec().

Referenced by LLToolDragAndDrop::dragOrDrop3D(), LLToolPipette::handleHover(), LLToolPipette::handleMouseDown(), LLToolPie::handleMouseDown(), LLToolObjPicker::handleMouseDown(), LLToolIndividual::handleMouseDown(), LLToolGrab::handleMouseDown(), LLToolCamera::handleMouseDown(), LLToolFace::handleMouseDown(), LLToolCompRotate::handleMouseDown(), LLToolCompCreate::handleMouseDown(), LLToolCompScale::handleMouseDown(), LLToolCompTranslate::handleMouseDown(), LLToolCompInspect::handleMouseDown(), LLToolPie::handleRightMouseDown(), hitObjectOrLandGlobalImmediate(), and LLHoverView::updateHover().

void LLViewerWindow::hitObjectOrLandGlobalImmediate ( S32  x,
S32  y,
void(*)(S32 x, S32 y, MASK mask callback,
BOOL  pick_transparent 
)

Definition at line 3692 of file llviewerwindow.cpp.

References LLKeyboard::currentMask(), gKeyboard, gNoRender, hitObjectOrLandGlobalAsync(), NULL, performPick(), and TRUE.

Referenced by LLToolDragAndDrop::dragOrDrop3D(), and raycast_for_new_obj_pos().

void LLViewerWindow::hitUIElementAsync ( S32  x,
S32  y_from_bot,
MASK  mask,
void(*)(S32 x, S32 y, MASK mask callback 
)

Definition at line 3454 of file llviewerwindow.cpp.

References DEG_TO_RAD, f, FALSE, gCamera, getDisplayScale(), LLCamera::getFar(), LLCamera::getNear(), LLCoordFrame::getOrigin(), LLCoordFrame::getUpAxis(), gLastHitUIElement, glClear, glPopMatrix, gNoRender, gUseGLPick, gViewerWindow, mouseDirectionGlobal(), mPickCallback, mPickMask, mPickOffset, mPickPending, mPickPoint, LLVector2::mV, PICK_DIAMETER, PICK_HALF_WIDTH, LLCoord::set(), LLCamera::setAspect(), LLCamera::setFar(), LLCamera::setNear(), LLCoordFrame::setOrigin(), LLCoordFrame::setOriginAndLookAt(), setup2DRender(), setupViewport(), LLCamera::setView(), stop_glerror, TRUE, VX, and VY.

Referenced by hitUIElementImmediate().

void LLViewerWindow::hitUIElementImmediate ( S32  x,
S32  y,
void(*)(S32 x, S32 y, MASK mask callback 
)

Definition at line 3436 of file llviewerwindow.cpp.

References LLKeyboard::currentMask(), gKeyboard, gNoRender, hitUIElementAsync(), NULL, performPick(), and TRUE.

void LLViewerWindow::initBase (  ) 

Definition at line 1663 of file llviewerwindow.cpp.

References LLView::addChild(), adjustRectanglesForFirstUse(), f, FALSE, FOLLOWS_ALL, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, gColors, gConsole, gDebugView, LLControlGroup::getBOOL(), LLControlGroup::getColor(), LLControlGroup::getF32(), LLControlGroup::getS32(), getWindow(), getWindowHeight(), getWindowWidth(), gFloaterView, gHUDView, gNotifyBoxView, gSavedSettings, gSnapshotFloaterView, gViewerWindow, height, llassert, LLRectBase< Type >::mBottom, MENU_BAR_HEIGHT, LLRectBase< Type >::mLeft, mProgressView, LLRectBase< Type >::mRight, mRootView, mToolTip, LLRectBase< Type >::mTop, LLFontGL::NORMAL, S32, LLTextBox::setBackgroundColor(), LLTextBox::setBackgroundVisible(), LLTextBox::setBorderColor(), LLTextBox::setBorderDropshadowVisible(), LLTextBox::setBorderVisible(), LLTextBox::setColor(), LLView::setFollows(), LLView::setFollowsAll(), LLTextBox::setFontStyle(), LLWindow::setGamma(), LLTextBox::setHPad(), setProgressCancelButtonVisible(), setShowProgress(), LLView::setVisible(), LLTextBox::setVPad(), STATUS_BAR_HEIGHT, TRUE, and width.

void LLViewerWindow::initFonts ( F32  zoom_factor = 1.f  )  [private]

Definition at line 4813 of file llviewerwindow.cpp.

References LLFontGL::destroyGL(), gDirUtilp, LLDir::getAppRODataDir(), LLControlGroup::getF32(), LLControlGroup::getString(), gSavedSettings, LLFontGL::initDefaultFonts(), mDisplayScale, LLVector2::mV, VX, and VY.

Referenced by calcDisplayScale(), LLViewerWindow(), rawSnapshot(), and restoreGL().

void LLViewerWindow::initGLDefaults (  ) 

Definition at line 1630 of file llviewerwindow.cpp.

References gBox, gCone, gCylinder, glBlendFunc, glShadeModel, gSphere, LLVOAvatar::initVertexPrograms(), LLCylinder::prerender(), LLSphere::prerender(), LLBox::prerender(), and LLCone::prerender().

Referenced by LLViewerWindow(), and restoreGL().

void LLViewerWindow::initWorldUI (  ) 

Definition at line 1857 of file llviewerwindow.cpp.

References LLView::addChild(), LLFloaterView::adjustToFitScreen(), CHAT_BAR_HEIGHT, LLUISingleton< LLFloaterChatterBox >::createInstance(), FALSE, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, gBottomPanel, gChatBar, LLMenuGL::getBackgroundColor(), LLControlGroup::getBOOL(), LLRectBase< Type >::getHeight(), LLUIInstanceMgr< LLFloaterChat, LLFloaterChat >::getInstance(), LLSingleton< LLIMMgr >::getInstance(), LLControlGroup::getRect(), LLView::getRect(), getRootView(), LLRectBase< Type >::getWidth(), gFloaterAvatarList, gFloaterEventLog, gFloaterMap, gFloaterMute, gFloaterProject, gFloaterTools, gFloaterView, gFloaterWorldMap, gHoverView, gIMMgr, gMenuBarView, gMenuHolder, gMorphView, gOverlayBar, gSavedPerAccountSettings, gSavedSettings, gStatusBar, gToolBar, gViewerWindow, height, init_menus(), LLWorldMapView::initClass(), LLFloaterChat::loadHistory(), LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mRootView, LLRectBase< Type >::mTop, NULL, pre_init_menus(), S32, LLView::sendChildToFront(), LLRectBase< Type >::set(), LLView::setFollows(), LLControlGroup::setRect(), LLFloaterWorldMap::setVisible(), LLFloater::setVisible(), LLMorphView::setVisible(), LLFloaterMap::setVisible(), LLView::setVisible(), LLFloaterMove::show(), LLFloaterCamera::show(), STATUS_BAR_HEIGHT, LLRectBase< Type >::stretch(), TOOL_BAR_HEIGHT, LLRectBase< Type >::translate(), TRUE, and width.

Referenced by idle_startup().

BOOL LLViewerWindow::isPickPending (  )  [inline]

Definition at line 142 of file llviewerwindow.h.

References mPickPending.

Referenced by display().

LLViewerObject * LLViewerWindow::lastNonFloraObjectHit (  ) 

Definition at line 4646 of file llviewerwindow.cpp.

References LLViewerObjectList::findObject(), gLastHitNonFloraObjectID, and gObjectList.

Referenced by LLToolDragAndDrop::pickCallback().

const LLVector3d & LLViewerWindow::lastNonFloraObjectHitOffset (  ) 

Definition at line 4651 of file llviewerwindow.cpp.

References gLastHitNonFloraObjectOffset.

Referenced by handle_sit_or_stand().

LLViewerObject * LLViewerWindow::lastObjectHit (  ) 

Definition at line 4635 of file llviewerwindow.cpp.

References LLViewerObjectList::findObject(), gLastHitObjectID, and gObjectList.

Referenced by enable_detach(), LLAvatarTrustNetRate::handleEvent(), LLAvatarSendIM::handleEvent(), LLAttachmentEnableDrop::handleEvent(), LLAttachmentDetach::handleEvent(), LLAttachmentDrop::handleEvent(), LLEnablePayObject::handleEvent(), LLAvatarAddFriend::handleEvent(), LLAvatarInviteToGroup::handleEvent(), LLAvatarEnableAddFriend::handleEvent(), LLAvatarGiveCard::handleEvent(), LLAvatarEnableFreezeEject::handleEvent(), LLAvatarEject::handleEvent(), LLAvatarDebug::handleEvent(), LLAvatarFreeze::handleEvent(), LLObjectMute::handleEvent(), LLObjectEnableMute::handleEvent(), LLToolTexEyedropper::handleMouseDown(), LLManipTranslate::handleMouseDown(), LLManipScale::handleMouseDown(), LLManipRotate::handleMouseDown(), LLToolPie::handleMouseUp(), LLToolPie::pickAndShowMenu(), LLToolPipette::pickCallback(), LLToolIndividual::pickCallback(), LLToolCamera::pickCallback(), LLToolFace::pickCallback(), LLToolCompRotate::pickCallback(), LLToolCompScale::pickCallback(), LLToolCompTranslate::pickCallback(), LLToolCompInspect::pickCallback(), and LLHoverView::pickCallback().

const LLVector3d & LLViewerWindow::lastObjectHitOffset (  ) 

Definition at line 4640 of file llviewerwindow.cpp.

References gLastHitObjectOffset.

Referenced by LLHoverView::pickCallback().

static void LLViewerWindow::loadUserImage ( void **  cb_data,
const LLUUID uuid 
) [static]

LLVector3 LLViewerWindow::mouseDirectionCamera ( const S32  x,
const S32  y 
) const

Definition at line 3859 of file llviewerwindow.cpp.

References f, gCamera, LLCamera::getAspect(), LLCamera::getView(), getWindowHeight(), getWindowWidth(), height, LLVector3::mV, S32, LLQuaternion::setQuat(), VZ, and width.

LLVector3 LLViewerWindow::mouseDirectionGlobal ( const S32  x,
const S32  y 
) const

Definition at line 3830 of file llviewerwindow.cpp.

References f, gCamera, LLCoordFrame::getAtAxis(), LLCoordFrame::getLeftAxis(), LLCoordFrame::getUpAxis(), LLCamera::getView(), getWindowHeight(), getWindowWidth(), height, LLVector3::normVec(), S32, and width.

Referenced by clickPointInWorldGlobal(), getObjectUnderCursor(), hitObjectOrLandGlobalAsync(), hitUIElementAsync(), mousePointOnLandGlobal(), mousePointOnPlaneGlobal(), LLManip::nearestPointOnLineFromMouse(), and raycast_for_new_obj_pos().

BOOL LLViewerWindow::mousePointOnLandGlobal ( const S32  x,
const S32  y,
LLVector3d land_pos_global 
)

Definition at line 3918 of file llviewerwindow.cpp.

References FALSE, gAgent, LLAgent::getCameraPositionGlobal(), LLViewerRegion::getLand(), LLSurface::getMetersPerGrid(), gWorldPointer, i, j, LLAgent::mDrawDistance, LLSurface::mGridsPerEdge, mouseDirectionGlobal(), LLVector3::mV, LLSurface::resolveHeightRegion(), S32, LLVector3d::setVec(), TRUE, VX, VY, and VZ.

Referenced by analyzeHit(), LLToolBrushLand::brush(), LLToolSelectLand::handleDoubleClick(), LLToolSelectLand::handleHover(), LLToolSelectLand::handleMouseDown(), LLToolBrushLand::handleMouseDown(), and LLToolBrushLand::render().

BOOL LLViewerWindow::mousePointOnPlaneGlobal ( LLVector3d point,
const S32  x,
const S32  y,
const LLVector3d plane_point,
const LLVector3 plane_normal 
)

Definition at line 3887 of file llviewerwindow.cpp.

References gAgent, LLAgent::getCameraPositionGlobal(), llabs(), LLVector3d::magVec(), mouseDirectionGlobal(), LLVector3d::normVec(), and LLVector3d::setVec().

Referenced by LLAgent::calcFocusOffset(), and LLManip::getMousePointOnPlaneGlobal().

void LLViewerWindow::moveCursorToCenter (  ) 

Definition at line 2668 of file llviewerwindow.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), mCurrentMouseDelta, mCurrentMousePoint, mLastMousePoint, mVirtualWindowRect, S32, LLCoord::set(), LLUI::setCursorPositionScreen(), x, and y.

Referenced by LLAgent::changeCameraToMouselook(), handle_focus(), handle_move(), LLToolGun::handleDeselect(), LLLandEdit::handleEvent(), LLLandBuild::handleEvent(), LLObjectEdit::handleEvent(), LLObjectBuild::handleEvent(), LLWorldMapView::handleHover(), LLToolGun::handleHover(), LLToolCamera::handleHover(), LLToolGrab::handleHoverActive(), LLToolCamera::handleMouseUp(), LLToolGrab::handleObjectHit(), LLToolGun::handleSelect(), and LLToolCamera::pickCallback().

void LLViewerWindow::moveProgressViewToFront (  ) 

Definition at line 4671 of file llviewerwindow.cpp.

References LLView::addChild(), mProgressView, mRootView, and LLView::removeChild().

Referenced by idle_startup().

void LLViewerWindow::movieSize ( S32  new_width,
S32  new_height 
) [static]

Definition at line 4243 of file llviewerwindow.cpp.

References changeDisplaySettings(), FALSE, LLControlGroup::getBOOL(), LLWindow::getFullscreen(), LLWindow::getSize(), getWindowHeight(), getWindowWidth(), gSavedSettings, gViewerWindow, mWindow, S32, LLWindow::setSize(), size, and TRUE.

Referenced by LLFileSetWindowSize::handleEvent().

void LLViewerWindow::performPick (  ) 

Definition at line 3524 of file llviewerwindow.cpp.

References analyzeHit(), LLAgent::calcFocusOffset(), FALSE, gAgent, LLViewerObject::getChildren(), LLXform::getParent(), LLPrimitive::getPCode(), LLViewerObjectList::getSelectedObject(), getWindowDisplayHeight(), getWindowDisplayWidth(), GL_NAME_INDEX_OFFSET, GL_NAME_PARCEL_WALL, GL_NAME_UI_RESERVED, gLastHitHUDIcon, gLastHitLand, gLastHitNonFloraObjectFace, gLastHitNonFloraObjectID, gLastHitNonFloraObjectOffset, gLastHitNonFloraPosGlobal, gLastHitObjectFace, gLastHitObjectID, gLastHitObjectOffset, gLastHitParcelWall, gLastHitPosGlobal, gLastHitUCoord, gLastHitUIElement, gLastHitVCoord, gLastPickAlpha, gNoRender, gObjectList, gPickFaces, gViewerWindow, LLHUDIcon::handlePick(), i, LLUUID::isNull(), LL_PCODE_LEGACY_GRASS, LL_PCODE_LEGACY_TREE, LL_PCODE_TREE_NEW, llabs(), llclamp(), llround(), LLViewerObject::mbCanSelect, mDisplayScale, mPickBuffer, mPickCallback, mPickMask, mPickOffset, mPickPending, mPickPoint, LLVector2::mV, LLCoord::mX, LLCoord::mY, NO_FACE, NULL, PICK_DIAMETER, PICK_HALF_WIDTH, S32, TRUE, VX, and VY.

Referenced by display(), hitObjectOrLandGlobalImmediate(), and hitUIElementImmediate().

void LLViewerWindow::playSnapshotAnimAndSound (  ) 

Definition at line 4300 of file llviewerwindow.cpp.

References ANIM_AGENT_SNAPSHOT, ANIM_REQUEST_START, f, gAgent, LLControlGroup::getString(), gSavedSettings, send_sound_trigger(), and LLAgent::sendAnimationRequest().

Referenced by LLFileTakeSnapshotToDisk::handleEvent(), LLFloaterSnapshot::Impl::onClickKeep(), and LLFloaterAuction::onClickSnapshot().

BOOL LLViewerWindow::rawSnapshot ( LLImageRaw raw,
S32  image_width,
S32  image_height,
BOOL  keep_window_aspect = TRUE,
BOOL  show_ui = TRUE,
BOOL  do_rebuild = FALSE,
ESnapshotType  type = SNAPSHOT_TYPE_COLOR 
)

Definition at line 4308 of file llviewerwindow.cpp.

References display(), f, F32_to_U8(), FALSE, gCamera, gDisplaySwapBuffers, LLControlGroup::getBOOL(), LLImageBase::getData(), LLCamera::getFar(), LLImageBase::getHeight(), LLRectBase< Type >::getHeight(), LLCamera::getNear(), LLImageBase::getWidth(), LLRectBase< Type >::getWidth(), getWindowHeight(), getWindowWidth(), glClear, gObjectList, gPickTransparent, gPipeline, gSavedSettings, gWorldPointer, LLPipeline::hasRenderDebugFeatureMask(), i, initFonts(), llceil(), llclamp(), llfloor(), llmax(), llround(), mWindowRect, LLPipeline::RENDER_DEBUG_FEATURE_UI, LLViewerObjectList::renderObjectsForSelect(), LLPipeline::resetDrawOrders(), LLHUDText::reshape(), LLImageRaw::resize(), S32, LLImageRaw::scale(), send_agent_pause(), send_agent_resume(), setCursor(), setup3DRender(), setupViewport(), LLViewerCamera::setZoomParameters(), SNAPSHOT_TYPE_COLOR, SNAPSHOT_TYPE_DEPTH, SNAPSHOT_TYPE_OBJECT_ID, LLPipeline::sShowHUDAttachments, stop_glerror, LLPipeline::toggleRenderDebugFeature(), TRUE, UI_CURSOR_ARROW, and UI_CURSOR_WAIT.

Referenced by LLFileTakeSnapshotToDisk::handleEvent(), LLFloaterCustomize::onBtnSnapshot(), LLFloaterAuction::onClickSnapshot(), LLSnapshotLivePreview::onIdle(), saveSnapshot(), and LLFloaterReporter::takeScreenshot().

void LLViewerWindow::renderSelections ( BOOL  for_gl_pick,
BOOL  pick_parcel_walls,
BOOL  for_hud 
)

Definition at line 3140 of file llviewerwindow.cpp.

References depth, f, FALSE, func, gAgent, gCamera, LLCamera::getAspect(), LLAgent::getAvatarObject(), LLControlGroup::getBOOL(), LLToolMgr::getCurrentTool(), LLVOAvatar::getHUDBBox(), LLDrawable::getPositionAgent(), LLSelectMgr::getSelection(), LLDrawable::getVOVolume(), glColor4fv, glLoadMatrixf, glOrtho, glPopMatrix, glTranslatef, gParcelMgr, gSavedSettings, gSelectMgr, gSphere, gToolMgr, gToolRotate, gToolStretch, gToolTranslate, LLTool::isAlwaysRendered(), LLDrawable::isLight(), llmax(), LLViewerObject::mDrawable, LLVOAvatar::mHUDCurZoom, OGL_TO_CFR_ROTATION, LLViewerObject::permModify(), LLViewerObject::permMove(), LLTool::render(), LLSphere::render(), LLViewerParcelMgr::renderParcelCollision(), LLSelectMgr::renderSilhouettes(), SELECT_TYPE_HUD, LLSelectMgr::sRenderLightRadius, stop_glerror, TRUE, LLSelectMgr::updateSilhouettes(), and VX.

Referenced by render_hud_elements(), render_ui_3d(), and LLViewerObjectList::renderObjectsForSelect().

void LLViewerWindow::reshape ( S32  width,
S32  height 
)

Definition at line 2119 of file llviewerwindow.cpp.

References calcDisplayScale(), FALSE, gCamera, getDisplayAspectRatio(), LLWindow::getFullscreen(), LLWindow::getMaximized(), LLWindow::getSize(), gNoRender, gQuit, gSavedSettings, gViewerStats, llceil(), llround(), LLRectBase< Type >::mBottom, mDisplayScale, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mRootView, LLRectBase< Type >::mTop, LLVector2::mV, mVirtualWindowRect, mWantFullscreen, mWindow, mWindowRect, LLCoord::mX, LLCoord::mY, LLHUDText::reshape(), LLView::reshape(), sendShapeToSim(), LLCamera::setAspect(), LLControlGroup::setBOOL(), LLControlGroup::setS32(), LLUI::setScaleFactor(), LLViewerStats::setStat(), setupViewport(), LLCamera::setViewHeightInPixels(), LLView::sForceReshape, LLUI::sGLScaleFactor, LLViewerStats::ST_WINDOW_HEIGHT, LLViewerStats::ST_WINDOW_WIDTH, VX, and VY.

Referenced by LLPanelDisplay::applyResolution(), changeDisplaySettings(), LLViewDefaultUISize::handleEvent(), and handleResize().

void LLViewerWindow::restartDisplay ( BOOL  show_progress_bar  ) 

Definition at line 4894 of file llviewerwindow.cpp.

References llendl, llinfos, restoreGL(), and stopGL().

Referenced by LLPanelDisplay2::apply().

void LLViewerWindow::restoreGL ( const LLString progress_message = LLString::null  )  [private]

Definition at line 4769 of file llviewerwindow.cpp.

References FALSE, gBumpImageList, LLView::getVisible(), gFloaterCustomize, gGLManager, gImageList, gPipeline, gRestoreGL, gRestoreGLTimer, gSky, LLWinDebug::handleException(), initFonts(), initGLDefaults(), llendl, llinfos, llwarns, LLGLManager::mIsDisabled, LLVisualParamHint::requestHintUpdates(), LLFrameTimer::reset(), LLVOAvatar::restoreGL(), LLDynamicTexture::restoreGL(), LLBumpImageList::restoreGL(), LLViewerImageList::restoreGL(), LLManipTranslate::restoreGL(), LLDrawPoolWater::restoreGL(), LLPipeline::restoreGL(), LLSky::restoreGL(), LLGLState::restoreGL(), setProgressString(), setShowProgress(), and TRUE.

Referenced by changeDisplaySettings(), handleActivate(), and restartDisplay().

BOOL LLViewerWindow::saveImageNumbered ( LLImageRaw raw,
const LLString extension = LLString() 
)

Definition at line 4024 of file llviewerwindow.cpp.

References LLImageFormatted::createFromExtension(), FALSE, LLFilePicker::FFSAVE_ALL, LLFilePicker::FFSAVE_BMP, LLFilePicker::FFSAVE_J2C, LLFilePicker::FFSAVE_TGA, gDirUtilp, LLControlGroup::getBOOL(), LLDir::getDirDelimiter(), LLFilePicker::getFirstFile(), LLFilePicker::getSaveFile(), gSavedSettings, gViewerWindow, i, LLFilePicker::instance(), LL_MAX_PATH, llendl, llformat(), llwarns, mWindow, S32, LLImageBase::setSizeOverride(), sSnapshotBaseName, sSnapshotDir, LLWindow::stat(), and TRUE.

Referenced by LLFileTakeSnapshotToDisk::handleEvent(), and LLSnapshotLivePreview::saveLocal().

void LLViewerWindow::saveLastMouse ( const LLCoordGL point  ) 

Definition at line 3102 of file llviewerwindow.cpp.

References getWindowHeight(), getWindowWidth(), mCurrentMousePoint, LLCoord::mX, and LLCoord::mY.

Referenced by handleMouseMove().

void LLViewerWindow::saveMovieNumbered ( void  )  [static]

Definition at line 4137 of file llviewerwindow.cpp.

References FALSE, LLFilePicker::FFSAVE_AVI, gbCapturing, gDirUtilp, LLDir::getDirDelimiter(), LLFilePicker::getFirstFile(), LLFilePicker::getSaveFile(), getWindowHeight(), getWindowWidth(), gMovieMaker, gViewerWindow, i, LLFilePicker::instance(), LL_MAX_PATH, mWindow, S32, sMovieBaseName, sSnapshotDir, LLWindow::stat(), and TRUE.

Referenced by LLFileSaveMovie::handleEvent().

BOOL LLViewerWindow::saveSnapshot ( const LLString filename,
S32  image_width,
S32  image_height,
BOOL  show_ui = TRUE,
BOOL  do_rebuild = FALSE,
ESnapshotType  type = SNAPSHOT_TYPE_COLOR 
)

Definition at line 4271 of file llviewerwindow.cpp.

References llendl, llinfos, llwarns, rawSnapshot(), and TRUE.

Referenced by process_alert_core(), and save_final_snapshot().

void LLViewerWindow::sendShapeToSim (  ) 

Definition at line 2099 of file llviewerwindow.cpp.

References _PREHASH_AgentData, _PREHASH_AgentHeightWidth, _PREHASH_AgentID, _PREHASH_CircuitCode, _PREHASH_GenCounter, _PREHASH_Height, _PREHASH_HeightWidthBlock, _PREHASH_SessionID, _PREHASH_Width, LLMessageSystem::addU16Fast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLRectBase< Type >::getHeight(), LLAgent::getID(), LLAgent::getSessionID(), LLRectBase< Type >::getWidth(), gMessageSystem, LLMessageSystem::mOurCircuitCode, mWindowRect, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().

Referenced by idle_startup(), process_agent_movement_complete(), and reshape().

void LLViewerWindow::setCursor ( ECursorType  c  ) 

Definition at line 2077 of file llviewerwindow.cpp.

References mWindow, and LLWindow::setCursor().

Referenced by LLWorldMapView::handleHover(), LLToolPipette::handleHover(), LLToolGun::handleHover(), LLToolGrab::handleHover(), LLToolCamera::handleHover(), LLProgressView::handleHover(), LLManipTranslate::handleHover(), LLManipRotate::handleHover(), LLManip::handleHover(), LLFolderViewItem::handleHover(), LLFloaterImagePreview::handleHover(), LLFloaterAnimPreview::handleHover(), LLToolGrab::handleHoverActive(), LLToolGrab::handleHoverFailed(), LLToolGrab::handleHoverInactive(), LLManipTranslate::handleMouseDownOnPart(), rawSnapshot(), save_final_snapshot(), and LLShaderMgr::setShaders().

void LLViewerWindow::setKeyboardFocus ( LLUICtrl new_focus,
void(*)(LLUICtrl *old_focus)  on_focus_lost 
)

Definition at line 4554 of file llviewerwindow.cpp.

References gFocusMgr, and LLFocusMgr::setKeyboardFocus().

Referenced by LLAgent::changeCameraToCustomizeAvatar(), LLAgent::changeCameraToMouselook(), LLFolderView::draw(), LLFolderViewItem::handleHover(), and LLFolderView::handleKeyHere().

void LLViewerWindow::setMouseCapture ( LLMouseHandler new_captor  ) 

Definition at line 4574 of file llviewerwindow.cpp.

References gFocusMgr, and LLFocusMgr::setMouseCapture().

Referenced by LLAgent::changeCameraToCustomizeAvatar(), LLFolderViewItem::handleMouseDown(), LLFloaterImagePreview::handleMouseDown(), LLFloaterColorPicker::handleMouseDown(), LLFloaterAnimPreview::handleMouseDown(), LLColorSwatchCtrl::handleMouseDown(), LLFolderViewItem::handleMouseUp(), LLFloaterImagePreview::handleMouseUp(), LLFloaterColorPicker::handleMouseUp(), LLFloaterAnimPreview::handleMouseUp(), LLColorSwatchCtrl::handleMouseUp(), LLTool::setMouseCapture(), and LLFloaterTools::setObjectType().

void LLViewerWindow::setNormalControlsVisible ( BOOL  visible  ) 

Definition at line 2208 of file llviewerwindow.cpp.

References gBottomPanel, gMenuBarView, gStatusBar, LLMenuGL::setVisible(), and LLView::setVisible().

Referenced by idle_startup(), and reset_login().

void LLViewerWindow::setProgressCancelButtonVisible ( BOOL  b,
const LLString label 
)

Definition at line 4704 of file llviewerwindow.cpp.

References mProgressView, and LLProgressView::setCancelButtonVisible().

Referenced by display(), idle_startup(), initBase(), process_teleport_progress(), and process_teleport_start().

void LLViewerWindow::setProgressMessage ( const LLString msg  ) 

Definition at line 4688 of file llviewerwindow.cpp.

References mProgressView, and LLProgressView::setMessage().

Referenced by set_startup_status().

void LLViewerWindow::setProgressPercent ( const F32  percent  ) 

Definition at line 4696 of file llviewerwindow.cpp.

References mProgressView, and LLProgressView::setPercent().

Referenced by display(), idle_shutdown(), and set_startup_status().

void LLViewerWindow::setProgressString ( const LLString string  ) 

Definition at line 4680 of file llviewerwindow.cpp.

References mProgressView, and LLProgressView::setText().

Referenced by display(), idle_shutdown(), restoreGL(), and set_startup_status().

void LLViewerWindow::setShowProgress ( const BOOL  show  ) 

Definition at line 4657 of file llviewerwindow.cpp.

References mProgressView, and LLProgressView::setVisible().

Referenced by display(), idle_shutdown(), idle_startup(), initBase(), and restoreGL().

void LLViewerWindow::setTopCtrl ( LLUICtrl new_top  ) 

Definition at line 4614 of file llviewerwindow.cpp.

References gFocusMgr, and LLFocusMgr::setTopCtrl().

Referenced by LLFolderView::deleteAllChildren(), LLFolderView::finishRenamingItem(), LLUploadDialog::LLUploadDialog(), LLFolderView::revertRenamingItem(), LLFolderView::startRenamingSelectedItem(), and LLFolderView::~LLFolderView().

void LLViewerWindow::setup2DRender (  ) 

Definition at line 4629 of file llviewerwindow.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gl_state_for_2d(), and mWindowRect.

Referenced by display_startup(), hitUIElementAsync(), hud_render_text(), render_disconnected_background(), render_ui_2d(), and LLManip::renderXYZ().

void LLViewerWindow::setup3DRender (  ) 

Definition at line 4624 of file llviewerwindow.cpp.

References FALSE, gCamera, LLRectBase< Type >::getHeight(), LLCamera::getNear(), LLRectBase< Type >::getWidth(), MAX_FAR_PLANE, mWindowRect, NOT_FOR_SELECTION, and LLViewerCamera::setPerspective().

Referenced by display_update_camera(), LLToolSelectRect::handleRectangleSelection(), rawSnapshot(), and LLManip::renderXYZ().

void LLViewerWindow::setupViewport ( S32  x_offset = 0,
S32  y_offset = 0 
)

Definition at line 4619 of file llviewerwindow.cpp.

References LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), and mWindowRect.

Referenced by display(), hitObjectOrLandGlobalAsync(), hitUIElementAsync(), LLDynamicTexture::postRender(), rawSnapshot(), LLManip::renderTickText(), LLManip::renderTickValue(), reshape(), setup_hud_matrices(), and LLManip::setupSnapGuideRenderPass().

void LLViewerWindow::showCursor (  ) 

Definition at line 2082 of file llviewerwindow.cpp.

References mWindow, and LLWindow::showCursor().

Referenced by LLAgent::endAnimationUpdateUI(), LLToolGun::handleDeselect(), handleFocusLost(), LLToolCamera::handleHover(), LLWorldMapView::handleMouseUp(), LLFloaterImagePreview::handleMouseUp(), LLFloaterAnimPreview::handleMouseUp(), idle_startup(), LLFloaterTools::onClose(), LLToolGrab::onMouseCaptureLost(), LLFloaterImagePreview::onMouseCaptureLost(), LLFloaterAnimPreview::onMouseCaptureLost(), LLToolCamera::releaseMouse(), and reset_view_final().

void LLViewerWindow::stopGL ( BOOL  save_state = TRUE  )  [private]

Definition at line 4726 of file llviewerwindow.cpp.

References LLCylinder::cleanupGL(), LLSphere::cleanupGL(), LLBox::cleanupGL(), LLCone::cleanupGL(), LLPipeline::destroyGL(), LLDynamicTexture::destroyGL(), LLVOAvatar::destroyGL(), LLFontGL::destroyGL(), LLBumpImageList::destroyGL(), LLViewerImageList::destroyGL(), LLSky::destroyGL(), gBox, gBumpImageList, gCone, gCylinder, gGLManager, gImageDecodeThread, gImageList, gPipeline, gSky, gSphere, gTextureCache, gTextureFetch, llendl, llinfos, LLGLManager::mIsDisabled, LLThread::pause(), LLImageGL::sGlobalTextureMemory, stop_glerror, and TRUE.

Referenced by changeDisplaySettings(), handleActivate(), restartDisplay(), and ~LLViewerWindow().

void LLViewerWindow::switchToolByMask ( MASK  mask  )  [private]

void LLViewerWindow::toggleFullscreen ( BOOL  show_progress  ) 

Definition at line 4833 of file llviewerwindow.cpp.

References FALSE, LLWindow::getFullscreen(), mShowFullscreenProgress, mWantFullscreen, mWindow, and TRUE.

Referenced by LLViewFullscreen::handleEvent(), LLPanelLogin::handleKeyHere(), load_url_local_file(), and main().

void LLViewerWindow::updateDebugText (  ) 

Definition at line 584 of file llviewerwindow.cpp.

References mDebugText, and LLDebugText::update().

Referenced by idle().

void LLViewerWindow::updateObjectUnderCursor (  ) 


Member Data Documentation

BOOL LLViewerWindow::mActive [protected]

Definition at line 311 of file llviewerwindow.h.

Referenced by dumpState(), getActive(), and handleActivate().

LLCoordGL LLViewerWindow::mCurrentMouseDelta [protected]

Definition at line 321 of file llviewerwindow.h.

Referenced by getCurrentMouseDelta(), getCurrentMouseDX(), getCurrentMouseDY(), handlePerFrameHover(), and moveCursorToCenter().

LLCoordGL LLViewerWindow::mCurrentMousePoint [protected]

Definition at line 319 of file llviewerwindow.h.

Referenced by getCurrentMouse(), getCurrentMouseX(), getCurrentMouseY(), handleMouseMove(), handlePerFrameHover(), handleScrollWheel(), LLViewerWindow(), moveCursorToCenter(), and saveLastMouse().

class LLDebugText* LLViewerWindow::mDebugText [protected]

Definition at line 354 of file llviewerwindow.h.

Referenced by drawDebugText(), LLViewerWindow(), updateDebugText(), and ~LLViewerWindow().

LLVector2 LLViewerWindow::mDisplayScale [protected]

Definition at line 317 of file llviewerwindow.h.

Referenced by analyzeHit(), calcDisplayScale(), draw(), drawPickBuffer(), getDisplayScale(), handleDoubleClick(), handleMouseDown(), handleMouseMove(), handleMouseUp(), handleRightMouseDown(), handleRightMouseUp(), hitObjectOrLandGlobalAsync(), initFonts(), LLViewerWindow(), performPick(), and reshape().

BOOL LLViewerWindow::mFocusCycleMode [protected]

Definition at line 333 of file llviewerwindow.h.

BOOL LLViewerWindow::mHideCursorPermanent [protected]

Definition at line 340 of file llviewerwindow.h.

BOOL LLViewerWindow::mIgnoreActivate [protected]

Definition at line 349 of file llviewerwindow.h.

Referenced by changeDisplaySettings(), getIgnoreDestroyWindow(), and handleActivate().

LLString LLViewerWindow::mInitAlert [protected]

Definition at line 352 of file llviewerwindow.h.

Referenced by getInitAlert(), and LLViewerWindow().

MASK LLViewerWindow::mLastMask [protected]

Definition at line 336 of file llviewerwindow.h.

LLCoordGL LLViewerWindow::mLastMousePoint [protected]

Definition at line 320 of file llviewerwindow.h.

Referenced by getLastMouse(), getLastMouseX(), getLastMouseY(), handlePerFrameHover(), and moveCursorToCenter().

BOOL LLViewerWindow::mLeftMouseDown [protected]

Definition at line 323 of file llviewerwindow.h.

Referenced by getLeftMouseDown(), handleDoubleClick(), handleMouseDown(), and handleMouseUp().

BOOL LLViewerWindow::mMouseInWindow [protected]

Definition at line 332 of file llviewerwindow.h.

Referenced by handleMouseLeave(), handleMouseMove(), and handlePerFrameHover().

LLStat LLViewerWindow::mMouseVelocityStat [protected]

Definition at line 322 of file llviewerwindow.h.

Referenced by getMouseVelocityStat(), and handlePerFrameHover().

LLString LLViewerWindow::mOverlayTitle [protected]

Definition at line 347 of file llviewerwindow.h.

Referenced by draw(), and LLViewerWindow().

U8* LLViewerWindow::mPickBuffer [protected]

Definition at line 350 of file llviewerwindow.h.

Referenced by drawPickBuffer(), LLViewerWindow(), performPick(), and ~LLViewerWindow().

void(* LLViewerWindow::mPickCallback)(S32 x, S32 y, MASK mask) [protected]

Referenced by hitObjectOrLandGlobalAsync(), hitUIElementAsync(), and performPick().

MASK LLViewerWindow::mPickMask [protected]

Definition at line 343 of file llviewerwindow.h.

Referenced by hitObjectOrLandGlobalAsync(), hitUIElementAsync(), and performPick().

LLCoordGL LLViewerWindow::mPickOffset [protected]

Definition at line 342 of file llviewerwindow.h.

Referenced by drawPickBuffer(), hitObjectOrLandGlobalAsync(), hitUIElementAsync(), and performPick().

BOOL LLViewerWindow::mPickPending [protected]

Definition at line 344 of file llviewerwindow.h.

Referenced by hitObjectOrLandGlobalAsync(), hitUIElementAsync(), isPickPending(), and performPick().

LLCoordGL LLViewerWindow::mPickPoint [protected]

Definition at line 341 of file llviewerwindow.h.

Referenced by drawPickBuffer(), hitObjectOrLandGlobalAsync(), hitUIElementAsync(), and performPick().

LLProgressView* LLViewerWindow::mProgressView [protected]

Definition at line 326 of file llviewerwindow.h.

Referenced by getProgressView(), getShowProgress(), initBase(), moveProgressViewToFront(), setProgressCancelButtonVisible(), setProgressMessage(), setProgressPercent(), setProgressString(), and setShowProgress().

BOOL LLViewerWindow::mRightMouseDown [protected]

Definition at line 324 of file llviewerwindow.h.

Referenced by getRightMouseDown(), handleRightMouseDown(), and handleRightMouseUp().

LLView* LLViewerWindow::mRootView [protected]

Definition at line 316 of file llviewerwindow.h.

Referenced by draw(), getRootView(), handleDoubleClick(), handleKey(), handleMouseDown(), handleMouseUp(), handlePerFrameHover(), handleRightMouseDown(), handleRightMouseUp(), handleScrollWheel(), initBase(), initWorldUI(), LLViewerWindow(), moveProgressViewToFront(), reshape(), and ~LLViewerWindow().

BOOL LLViewerWindow::mShowFullscreenProgress [protected]

Definition at line 313 of file llviewerwindow.h.

Referenced by changeDisplaySettings(), checkSettings(), and toggleFullscreen().

BOOL LLViewerWindow::mSuppressToolbox [protected]

Definition at line 338 of file llviewerwindow.h.

Referenced by handlePerFrameHover().

LLTool* LLViewerWindow::mToolStored [protected]

Definition at line 337 of file llviewerwindow.h.

LLTextBox* LLViewerWindow::mToolTip [protected]

Definition at line 328 of file llviewerwindow.h.

Referenced by draw(), handleDoubleClick(), handleKey(), handleMouseDown(), handleMouseLeave(), handleMouseMove(), handleMouseUp(), handlePerFrameHover(), handleRightMouseDown(), handleRightMouseUp(), handleScrollWheel(), hideCursor(), initBase(), and ~LLViewerWindow().

BOOL LLViewerWindow::mToolTipBlocked [protected]

Definition at line 329 of file llviewerwindow.h.

Referenced by handleKey(), handleMouseDown(), handleMouseMove(), and handlePerFrameHover().

LLRect LLViewerWindow::mToolTipStickyRect [protected]

Definition at line 330 of file llviewerwindow.h.

Referenced by handleMouseMove(), and handlePerFrameHover().

LLRect LLViewerWindow::mVirtualWindowRect [protected]

Definition at line 315 of file llviewerwindow.h.

Referenced by getVirtualWindowRect(), getWindowHeight(), getWindowWidth(), LLViewerWindow(), moveCursorToCenter(), and reshape().

BOOL LLViewerWindow::mWantFullscreen [protected]

Definition at line 312 of file llviewerwindow.h.

Referenced by changeDisplaySettings(), checkSettings(), getTargetWindow(), reshape(), and toggleFullscreen().

LLWindow* LLViewerWindow::mWindow

Definition at line 308 of file llviewerwindow.h.

Referenced by calcDisplayScale(), changeDisplaySettings(), check_for_events(), checkSettings(), cleanup_saved_settings(), cmd_get_key(), destroyWindow(), display(), display_startup(), dumpState(), focusClient(), getDisplayAspectRatio(), getPlatformWindow(), getTargetWindow(), getWindow(), handleActivate(), handleDataCopy(), LLToolGun::handleDeselect(), handleMouseDown(), handleMouseMove(), handleMouseUp(), handlePerFrameHover(), handleRightMouseDown(), handleRightMouseUp(), LLToolGun::handleSelect(), hideCursor(), hitObjectOrLandGlobalAsync(), idle_startup(), LLViewerWindow(), load_url_local_file(), main_loop(), movieSize(), LLFloaterAvatarList::onClickGetKey(), LLPanelDisplay::onCommitAutoDetectAspect(), LLFloaterWorldMap::onCopySLURL(), LLItemBridge::performAction(), process_keystrokes_async(), LLFloaterAvatarList::processTrustNetReply(), render_ui_and_swap(), reshape(), saveImageNumbered(), saveMovieNumbered(), setCursor(), showCursor(), and toggleFullscreen().

LLRect LLViewerWindow::mWindowRect [protected]

Definition at line 314 of file llviewerwindow.h.

Referenced by calcDisplayScale(), getWindowDisplayHeight(), getWindowDisplayWidth(), getWindowRect(), handlePerFrameHover(), LLViewerWindow(), rawSnapshot(), reshape(), sendShapeToSim(), setup2DRender(), setup3DRender(), and setupViewport().

char LLViewerWindow::sMovieBaseName [static, protected]

Definition at line 360 of file llviewerwindow.h.

Referenced by LLViewerWindow(), and saveMovieNumbered().

char LLViewerWindow::sSnapshotBaseName [static, protected]

Definition at line 357 of file llviewerwindow.h.

Referenced by LLViewerWindow(), and saveImageNumbered().

char LLViewerWindow::sSnapshotDir [static, protected]

Definition at line 358 of file llviewerwindow.h.

Referenced by LLViewerWindow(), saveImageNumbered(), and saveMovieNumbered().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:59 2010 for Second Life Viewer by  doxygen 1.4.7