From 089fc07d207c71ce1401e72f09c31ad8c45872e2 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:44:58 -0500 Subject: Second Life viewer sources 1.17.0.12 --- linden/indra/newview/llpanelclassified.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'linden/indra/newview/llpanelclassified.h') diff --git a/linden/indra/newview/llpanelclassified.h b/linden/indra/newview/llpanelclassified.h index 498f8a5..0ebac2c 100644 --- a/linden/indra/newview/llpanelclassified.h +++ b/linden/indra/newview/llpanelclassified.h @@ -63,10 +63,14 @@ public: /*virtual*/ void draw(); - void refresh(); + /*virtual*/ void refresh(); void apply(); + // If can close, return TRUE. If cannot close, pop save/discard dialog + // and return FALSE. + BOOL canClose(); + // Setup a new classified, including creating an id, giving a sane // initial position, etc. void initNewClassified(); @@ -94,6 +98,8 @@ public: static void callbackConfirmPublish(S32 option, void* data); protected: + static void saveCallback(S32 option, void* data); + static void onClickUpdate(void* data); static void onClickTeleport(void* data); static void onClickMap(void* data); @@ -107,6 +113,8 @@ protected: protected: BOOL mInFinder; + bool mDirty; + bool mForceClose; LLUUID mClassifiedID; LLUUID mRequestedID; LLUUID mCreatorID; @@ -115,7 +123,6 @@ protected: // Data will be requested on first draw BOOL mDataRequested; - BOOL mEnableCommit; // For avatar panel classifieds only, has the user been charged // yet for this classified? That is, have they saved once? -- cgit v1.1