Removed llnotifications.h from all headers by adding llnotificationsptr.h

Fixed many more includes
master
James Cook 2009-11-24 22:55:56 -08:00
parent 458430be91
commit 0e351bedb6
51 changed files with 115 additions and 13 deletions

View File

@ -147,6 +147,7 @@ set(llui_HEADER_FILES
llmultifloater.h
llmultisliderctrl.h
llmultislider.h
llnotificationptr.h
llnotifications.h
llnotificationslistener.h
llpanel.h

View File

@ -0,0 +1,41 @@
/**
* @file llnotificationptr.h
*
* $LicenseInfo:firstyear=2008&license=viewergpl$
*
* Copyright (c) 2008-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab
* to you under the terms of the GNU General Public License, version 2.0
* ("GPL"), unless you have obtained a separate licensing agreement
* ("Other License"), formally executed by you and Linden Lab. Terms of
* the GPL can be found in doc/GPL-license.txt in this distribution, or
* online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
*
* There are special exceptions to the terms and conditions of the GPL as
* it is applied to this Source Code. View the full text of the exception
* in the file doc/FLOSS-exception.txt in this software distribution, or
* online at
* http://secondlifegrid.net/programs/open_source/licensing/flossexception
*
* By copying, modifying or distributing this software, you acknowledge
* that you have read and understood your obligations described above,
* and agree to abide by those obligations.
*
* ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
* WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
* COMPLETENESS OR PERFORMANCE.
* $/LicenseInfo$
*/
#ifndef LLNOTIFICATIONPTR_H
#define LLNOTIFICATIONPTR_H
// Many classes just store a single LLNotificationPtr
// and llnotifications.h is very large, so define this ligher header.
#include <boost/shared_ptr.hpp>
class LLNotification;
typedef boost::shared_ptr<LLNotification> LLNotificationPtr;
#endif

View File

@ -103,9 +103,7 @@
#include "llpointer.h"
#include "llinitparam.h"
#include "llnotificationslistener.h"
class LLNotification;
typedef boost::shared_ptr<LLNotification> LLNotificationPtr;
#include "llnotificationptr.h"
typedef enum e_notification_priority

View File

@ -58,6 +58,7 @@
#include "llmoveview.h"
#include "llnavigationbar.h" // to show/hide navigation bar when changing mouse look state
#include "llnearbychatbar.h"
#include "llnotifications.h"
#include "llparcel.h"
#include "llsdutil.h"
#include "llsidetray.h"

View File

@ -41,6 +41,7 @@
#include "llinventorybridge.h"
#include "llinventoryobserver.h"
#include "llinventorypanel.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llviewerregion.h"
#include "llvoavatarself.h"

View File

@ -63,6 +63,7 @@
#include "lleconomy.h"
#include "llfloaterreg.h"
#include "llfocusmgr.h"
#include "llnotifications.h"
#include "llscrolllistctrl.h"
#include "llsdserialize.h"
#include "llvfs.h"

View File

@ -40,6 +40,7 @@
#include "llimfloater.h" // for LLIMFloater
#include "lllayoutstack.h"
#include "llnearbychatbar.h"
#include "llnotifications.h"
#include "llspeakbutton.h"
#include "llsplitbutton.h"
#include "llsyswellwindow.h"

View File

@ -53,6 +53,7 @@
#include "llbutton.h"
#include "llinventoryobserver.h"
#include "llinventorymodel.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llresmgr.h"
#include "llimview.h"

View File

@ -32,6 +32,7 @@
#include "llviewerprecompiledheaders.h" // must be first include
#include "llchiclet.h"
#include "llagent.h"
#include "llavataractions.h"
#include "llbottomtray.h"
@ -42,6 +43,7 @@
#include "llfloaterreg.h"
#include "lllocalcliprect.h"
#include "llmenugl.h"
#include "llnotifications.h"
#include "lloutputmonitorctrl.h"
#include "llscriptfloater.h"
#include "lltextbox.h"

View File

@ -33,7 +33,9 @@
#include "llviewerprecompiledheaders.h"
#include "lldelayedgestureerror.h"
#include <list>
#include "llnotifications.h"
#include "llnotify.h"
#include "llcallbacklist.h"
#include "llinventory.h"

View File

@ -34,6 +34,7 @@
#include "lleventnotifier.h"
#include "llnotifications.h"
#include "message.h"
#include "llnotify.h"

View File

@ -36,6 +36,7 @@
// library includes
#include "indra_constants.h"
#include "llnotifications.h"
// viewer includes
#include "llagent.h" // for gAgent.inPrelude()

View File

@ -46,6 +46,7 @@
#include "llagent.h"
#include "llcombobox.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llsavedsettingsglue.h"
#include "llviewertexturelist.h"

View File

@ -48,6 +48,7 @@
#include "llframetimer.h"
#include "lliconctrl.h"
#include "lllineeditor.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llparcel.h"
#include "llslurl.h"

View File

@ -49,6 +49,7 @@
#include "llavataractions.h"
#include "llinventorymodel.h"
#include "llnamelistctrl.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llresmgr.h"
#include "llscrolllistctrl.h"

View File

@ -39,6 +39,7 @@
#include "llcachename.h"
#include "llfocusmgr.h"
#include "llnotifications.h"
#include "llparcel.h"
#include "message.h"
#include "lluserauth.h"

View File

@ -35,7 +35,9 @@
#include "llfloater.h"
#include "lllayoutstack.h"
#include "llnotifications.h"
//#include "llnotifications.h"
class LLNotification;
class LLFloaterNotificationConsole :
public LLFloater

View File

@ -37,6 +37,7 @@
#include "llfloaterreg.h"
#include "llfloaterland.h"
#include "lllineeditor.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llparcel.h"
#include "llselectmgr.h"

View File

@ -42,6 +42,7 @@
#include "lldatapacker.h"
#include "llinventory.h"
#include "llmultigesture.h"
#include "llnotifications.h"
#include "llstl.h"
#include "llstring.h" // todo: remove
#include "llvfile.h"

View File

@ -36,6 +36,7 @@
#include "llnotificationhandler.h"
#include "llagentdata.h"
#include "llnotifications.h"
#include "lltoastimpanel.h"
#include "llviewerwindow.h"

View File

@ -70,6 +70,7 @@
#include "lltoolbar.h"
#include "llviewermessage.h"
#include "llviewerwindow.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llviewerregion.h"
#include "llvoicechannel.h"

View File

@ -38,6 +38,7 @@
#include "llviewercontrol.h"
#include "llviewerwindow.h"
#include "llnotificationmanager.h"
#include "llnotifications.h"
using namespace LLNotificationsUI;

View File

@ -36,7 +36,7 @@
#include "llwindow.h"
#include "llnotifications.h"
//#include "llnotifications.h"
#include "llchannelmanager.h"
#include "llchat.h"

View File

@ -36,7 +36,9 @@
#include "llnotificationmanager.h"
#include "llnearbychathandler.h"
#include "llnotifications.h"
#include "boost/bind.hpp"

View File

@ -40,6 +40,7 @@
#include "llimview.h"
#include "llimfloater.h"
#include "llnotificationmanager.h"
#include "llnotifications.h"
using namespace LLNotificationsUI;

View File

@ -38,6 +38,7 @@
#include "llviewercontrol.h"
#include "llviewerwindow.h"
#include "llnotificationmanager.h"
#include "llnotifications.h"
#include "llscriptfloater.h"
using namespace LLNotificationsUI;

View File

@ -36,6 +36,7 @@
#include "llfloaterreg.h"
#include "llnearbychat.h"
#include "llnotificationhandler.h"
#include "llnotifications.h"
#include "lltoastnotifypanel.h"
#include "llviewercontrol.h"
#include "llviewerwindow.h"

View File

@ -42,6 +42,7 @@
#include "lliconctrl.h"
#include "lllineeditor.h"
#include "llnamelistctrl.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llpanelgrouproles.h"
#include "llscrolllistctrl.h"

View File

@ -51,6 +51,7 @@
#include "llfloaterpreference.h"
#include "llfocusmgr.h"
#include "lllineeditor.h"
#include "llnotifications.h"
#include "llstartup.h"
#include "lltextbox.h"
#include "llui.h"

View File

@ -43,6 +43,7 @@
#include "lldir.h"
#include "llfloaterreg.h"
#include "llmultigesture.h"
#include "llnotifications.h"
#include "llvfile.h"
// newview

View File

@ -43,6 +43,7 @@
#include "llfloaterreg.h"
#include "llinventorymodel.h"
#include "lllineeditor.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llresmgr.h"
#include "roles_constants.h"

View File

@ -45,7 +45,7 @@
#include "llkeyboard.h"
#include "lllineeditor.h"
#include "llhelp.h"
#include "llnotifications.h"
#include "llresmgr.h"
#include "llscrollbar.h"
#include "llscrollcontainer.h"

View File

@ -37,6 +37,7 @@
#include "llchannelmanager.h"
#include "llchiclet.h"
#include "llfloaterreg.h"
#include "llnotifications.h"
#include "llscreenchannel.h"
#include "lltoastnotifypanel.h"
#include "llviewerwindow.h"

View File

@ -66,6 +66,7 @@
#include "llmemorystream.h"
#include "llmessageconfig.h"
#include "llmoveview.h"
#include "llnotifications.h"
#include "llteleporthistory.h"
#include "llregionhandle.h"
#include "llsd.h"

View File

@ -72,12 +72,14 @@
#include "llfocusmgr.h"
#include "llappviewer.h"
#include "lltrans.h"
// library includes
#include "imageids.h"
#include "llfloaterreg.h"
#include "llfontgl.h"
#include "llrect.h"
#include "llerror.h"
#include "llnotifications.h"
#include "llparcel.h"
#include "llstring.h"
#include "message.h"

View File

@ -36,6 +36,7 @@
#include "llbutton.h"
#include "llfocusmgr.h"
#include "llnotifications.h"
#include "llviewercontrol.h"
using namespace LLNotificationsUI;

View File

@ -37,7 +37,7 @@
#include "llpanel.h"
#include "llmodaldialog.h"
#include "lltimer.h"
#include "llnotifications.h"
#include "llnotificationptr.h"
#include "llviewercontrol.h"

View File

@ -40,7 +40,7 @@
#include "lltoastpanel.h"
#include "llfloater.h"
#include "llui.h"
#include "llnotifications.h"
#include "llnotificationptr.h"
#include "llalertdialog.h"
class LLButton;

View File

@ -39,6 +39,7 @@
#include "llbutton.h"
#include "lliconctrl.h"
#include "llinventoryfunctions.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llviewertexteditor.h"

View File

@ -38,7 +38,7 @@
#include "lldarray.h"
#include "lltimer.h"
#include "llviewermessage.h"
#include "llnotifications.h"
#include "llnotificationptr.h"
class LLButton;

View File

@ -33,6 +33,8 @@
#include "llviewerprecompiledheaders.h"
#include "lltoastimpanel.h"
#include "llnotifications.h"
const S32 LLToastIMPanel::DEFAULT_MESSAGE_MAX_LINE_COUNT = 6;
//--------------------------------------------------------------------------

View File

@ -33,7 +33,12 @@
#include "llviewerprecompiledheaders.h"
#include "lltoastnotifypanel.h"
// project includes
#include "llviewercontrol.h"
// library includes
#include "llnotifications.h"
#include "lluiconstants.h"
#include "llrect.h"
#include "lltrans.h"

View File

@ -35,13 +35,14 @@
#include "llpanel.h"
#include "llfontgl.h"
#include "llnotifications.h"
#include "llnotificationptr.h"
#include "llbutton.h"
#include "lltoastpanel.h"
#include "lliconctrl.h"
#include "lltexteditor.h"
#include "lltextbox.h"
class LLNotificationForm;
/**
* Toast panel for notification.
@ -68,7 +69,7 @@ protected:
private:
void adjustPanelForScriptNotice(const LLNotificationFormPtr form);
void adjustPanelForScriptNotice(const boost::shared_ptr<LLNotificationForm> form);
void adjustPanelForTipNotice();
// panel elements

View File

@ -34,6 +34,8 @@
#include "lltoastpanel.h"
#include "llnotifications.h"
//static
const S32 LLToastPanel::MIN_PANEL_HEIGHT = 40; // VPAD(4)*2 + ICON_HEIGHT(32)
@ -46,12 +48,19 @@ LLToastPanel::~LLToastPanel()
{
}
//virtual
std::string LLToastPanel::getTitle()
{
// *TODO: create Title and localize it. If it will be required.
return mNotification->getMessage();
}
//virtual
const LLUUID& LLToastPanel::getID()
{
return mNotification->id();
}
//snap to the message height if it is visible
void LLToastPanel::snapToMessageHeight(LLTextBase* message, S32 maxLineCount)
{

View File

@ -35,7 +35,7 @@
#include "llpanel.h"
#include "lltextbox.h"
#include "llnotifications.h"
#include "llnotificationptr.h"
#include <string>
@ -57,7 +57,7 @@ public:
virtual ~LLToastPanel() = 0;
virtual std::string getTitle();
virtual const LLUUID& getID() { return mNotification->id();}
virtual const LLUUID& getID();
static const S32 MIN_PANEL_HEIGHT;
protected:

View File

@ -35,10 +35,13 @@
#include "message.h"
#include "lltooldraganddrop.h"
// library headers
#include "llfloaterreg.h"
#include "llinstantmessage.h"
#include "lldir.h"
#include "llnotifications.h"
// project headers
#include "llagent.h"
#include "llagentwearables.h"
#include "llviewercontrol.h"

View File

@ -33,6 +33,7 @@
#include "llviewerprecompiledheaders.h"
#include "llviewerinventory.h"
#include "llnotifications.h"
#include "message.h"
#include "indra_constants.h"

View File

@ -51,6 +51,7 @@
#include "llfontgl.h"
#include "llinstantmessage.h"
#include "llinventorypanel.h"
#include "llnotifications.h"
#include "llpermissionsflags.h"
#include "llrect.h"
#include "llsecondlifeurls.h"

View File

@ -39,6 +39,7 @@
#include "indra_constants.h"
#include "llcachename.h"
#include "llgl.h"
#include "llnotifications.h"
#include "llparcel.h"
#include "llsecondlifeurls.h"
#include "message.h"

View File

@ -50,6 +50,7 @@
#include "llmemorystream.h"
#include "llmenugl.h"
#include "llnotecard.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llpanelplaces.h"
#include "llpreview.h"

View File

@ -40,6 +40,7 @@
#include "llvoavatar.h"
#include "llviewerinventory.h"
#include "llviewerstats.h"
#include "llnotifications.h"
#include "llnotify.h"
#include "llinventorymodel.h"
#include "lltrans.h"