diff options
-rwxr-xr-x | indra/newview/llfloatersnapshot.cpp | 54 | ||||
-rwxr-xr-x | indra/newview/llfloatersnapshot.h | 1 | ||||
-rw-r--r-- | indra/newview/llfloatersocial.cpp | 9 | ||||
-rw-r--r-- | indra/newview/llfloatersocial.h | 6 | ||||
-rw-r--r-- | indra/newview/llsnapshotlivepreview.cpp | 28 | ||||
-rw-r--r-- | indra/newview/llsnapshotlivepreview.h | 54 |
6 files changed, 44 insertions, 108 deletions
diff --git a/indra/newview/llfloatersnapshot.cpp b/indra/newview/llfloatersnapshot.cpp index 65934aa82a..a0771ff220 100755 --- a/indra/newview/llfloatersnapshot.cpp +++ b/indra/newview/llfloatersnapshot.cpp @@ -28,63 +28,23 @@ #include "llfloatersnapshot.h" -#include "llfloaterreg.h" - -// Viewer includes #include "llagent.h" -#include "llagentcamera.h" -#include "llcallbacklist.h" -#include "llcriticaldamp.h" -#include "llfloaterperms.h" -#include "llui.h" #include "llfacebookconnect.h" +#include "llfloaterreg.h" #include "llfloatersocial.h" -#include "llfocusmgr.h" -#include "llbutton.h" +#include "llcheckboxctrl.h" #include "llcombobox.h" -#include "lleconomy.h" -#include "lllandmarkactions.h" -#include "llpanelsnapshot.h" +#include "llpostcard.h" +#include "llresmgr.h" // LLLocale +#include "llsdserialize.h" #include "llsidetraypanelcontainer.h" -#include "llsliderctrl.h" +#include "llsnapshotlivepreview.h" #include "llspinctrl.h" #include "llviewercontrol.h" -#include "lluictrlfactory.h" -#include "llviewerstats.h" -#include "llviewercamera.h" -#include "llviewerwindow.h" -#include "llviewermenufile.h" // upload_new_resource() -#include "llcheckboxctrl.h" -#include "llslurl.h" -#include "llsnapshotlivepreview.h" #include "lltoolfocus.h" #include "lltoolmgr.h" -#include "llwebsharing.h" -#include "llworld.h" -#include "llagentui.h" - -// Linden library includes -#include "llfontgl.h" -#include "llsys.h" -#include "llrender.h" -#include "v3dmath.h" -#include "llmath.h" -#include "lldir.h" -#include "llsdserialize.h" -#include "llgl.h" -#include "llglheaders.h" -#include "llimagejpeg.h" -#include "llimagepng.h" -#include "llimagebmp.h" -#include "llimagej2c.h" -#include "lllocalcliprect.h" -#include "llnotificationsutil.h" -#include "llpostcard.h" -#include "llresmgr.h" // LLLocale -#include "llvfile.h" -#include "llvfs.h" #include "llwebprofile.h" -#include "llwindow.h" +#include "llwebsharing.h" ///---------------------------------------------------------------------------- /// Local function declarations, constants, enums, and typedefs diff --git a/indra/newview/llfloatersnapshot.h b/indra/newview/llfloatersnapshot.h index afe135fa40..82af8c7a9d 100755 --- a/indra/newview/llfloatersnapshot.h +++ b/indra/newview/llfloatersnapshot.h @@ -27,7 +27,6 @@ #ifndef LL_LLFLOATERSNAPSHOT_H #define LL_LLFLOATERSNAPSHOT_H -#include "llimage.h" #include "llfloater.h" class LLSpinCtrl; diff --git a/indra/newview/llfloatersocial.cpp b/indra/newview/llfloatersocial.cpp index b717dc0f40..7ef8f9f9e3 100644 --- a/indra/newview/llfloatersocial.cpp +++ b/indra/newview/llfloatersocial.cpp @@ -31,11 +31,16 @@ #include "llagent.h" #include "llagentui.h" +#include "llcheckboxctrl.h" +#include "llcombobox.h" #include "llfacebookconnect.h" #include "llfloaterreg.h" #include "lliconctrl.h" +#include "llresmgr.h" // LLLocale +#include "llsdserialize.h" #include "llloadingindicator.h" #include "llslurl.h" +#include "llsnapshotlivepreview.h" #include "llviewerregion.h" #include "llviewercontrol.h" @@ -201,7 +206,7 @@ void LLSocialPhotoPanel::updateResolution(LLUICtrl* ctrl, void* data, BOOL do_up previewp->setSize(width, height); } - checkAspectRatio(view, width) ; + checkAspectRatio(width); previewp->getSize(width, height); @@ -230,7 +235,7 @@ void LLSocialPhotoPanel::setNeedRefresh(bool need) mNeedRefresh = need; } -void LLSocialPhotoPanel::checkAspectRatio(LLFloaterSnapshot *view, S32 index) +void LLSocialPhotoPanel::checkAspectRatio(S32 index) { LLSnapshotLivePreview *previewp = getPreviewView() ; diff --git a/indra/newview/llfloatersocial.h b/indra/newview/llfloatersocial.h index 1848481084..6411843b9c 100644 --- a/indra/newview/llfloatersocial.h +++ b/indra/newview/llfloatersocial.h @@ -30,7 +30,9 @@ #include "llfloater.h" #include "llviewertexture.h" -#include "llsnapshotlivepreview.h" +class LLIconCtrl; +class LLCheckBoxCtrl; +class LLSnapshotLivePreview; class LLSocialStatusPanel : public LLPanel { @@ -64,7 +66,7 @@ class LLSocialPhotoPanel : public LLPanel void updateResolution(LLUICtrl* ctrl, void* data, BOOL do_update = TRUE); void setNeedRefresh(bool need); - void checkAspectRatio(LLFloaterSnapshot *view, S32 index); + void checkAspectRatio(S32 index); LLSnapshotLivePreview* getPreviewView(); void updateControls(); diff --git a/indra/newview/llsnapshotlivepreview.cpp b/indra/newview/llsnapshotlivepreview.cpp index 70c0584231..7532ebfc57 100644 --- a/indra/newview/llsnapshotlivepreview.cpp +++ b/indra/newview/llsnapshotlivepreview.cpp @@ -27,9 +27,32 @@ #include "llviewerprecompiledheaders.h" -#include "llsnapshotlivepreview.h" - +#include "llagent.h" +#include "llagentcamera.h" +#include "llagentui.h" +#include "llcombobox.h" +#include "lleconomy.h" +#include "llfloaterperms.h" +#include "llfloaterreg.h" #include "llfloatersocial.h" +#include "llimagebmp.h" +#include "llimagej2c.h" +#include "llimagejpeg.h" +#include "llimagepng.h" +#include "lllandmarkactions.h" +#include "lllocalcliprect.h" +#include "llnotificationsutil.h" +#include "llslurl.h" +#include "llsnapshotlivepreview.h" +#include "lltoolfocus.h" +#include "llviewercontrol.h" +#include "llviewermenufile.h" // upload_new_resource() +#include "llviewerstats.h" +#include "llvfile.h" +#include "llvfs.h" +#include "llwebsharing.h" +#include "llwindow.h" +#include "llworld.h" const F32 AUTO_SNAPSHOT_TIME_DELAY = 1.f; @@ -39,7 +62,6 @@ F32 SHINE_OPACITY = 0.3f; F32 FALL_TIME = 0.6f; S32 BORDER_WIDTH = 6; -const S32 MAX_POSTCARD_DATASIZE = 1024 * 1024; // one megabyte const S32 MAX_TEXTURE_SIZE = 512 ; //max upload texture size 512 * 512 std::set<LLSnapshotLivePreview*> LLSnapshotLivePreview::sList; diff --git a/indra/newview/llsnapshotlivepreview.h b/indra/newview/llsnapshotlivepreview.h index 906ef7f1c1..fe3d257b02 100644 --- a/indra/newview/llsnapshotlivepreview.h +++ b/indra/newview/llsnapshotlivepreview.h @@ -27,62 +27,10 @@ #ifndef LL_LLSNAPSHOTLIVEPREVIEW_H #define LL_LLSNAPSHOTLIVEPREVIEW_H -#include "llfloaterreg.h" - -// Viewer includes -#include "llagent.h" -#include "llagentcamera.h" -#include "llcallbacklist.h" -#include "llcriticaldamp.h" -#include "llfloaterperms.h" -#include "llui.h" -#include "llfacebookconnect.h" -#include "llfocusmgr.h" -#include "llbutton.h" -#include "llcombobox.h" -#include "lleconomy.h" -#include "lllandmarkactions.h" #include "llpanelsnapshot.h" -#include "llsidetraypanelcontainer.h" -#include "llsliderctrl.h" -#include "llspinctrl.h" -#include "llviewercontrol.h" -#include "lluictrlfactory.h" -#include "llviewerstats.h" -#include "llviewercamera.h" #include "llviewerwindow.h" -#include "llviewermenufile.h" // upload_new_resource() -#include "llcheckboxctrl.h" -#include "llslurl.h" -#include "lltoolfocus.h" -#include "lltoolmgr.h" -#include "llwebsharing.h" -#include "llworld.h" -#include "llagentui.h" - -// Linden library includes -#include "llfontgl.h" -#include "llsys.h" -#include "llrender.h" -#include "v3dmath.h" -#include "llmath.h" -#include "lldir.h" -#include "llsdserialize.h" -#include "llgl.h" -#include "llglheaders.h" -#include "llimagejpeg.h" -#include "llimagepng.h" -#include "llimagebmp.h" -#include "llimagej2c.h" -#include "lllocalcliprect.h" -#include "llnotificationsutil.h" -#include "llpostcard.h" -#include "llresmgr.h" // LLLocale -#include "llvfile.h" -#include "llvfs.h" -#include "llwebprofile.h" -#include "llwindow.h" +class LLImageJPEG; ///---------------------------------------------------------------------------- /// Class LLSnapshotLivePreview |