summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelnavmeshrebake.h
diff options
context:
space:
mode:
authorprep <none@none>2012-06-13 10:50:46 -0400
committerprep <none@none>2012-06-13 10:50:46 -0400
commitde1e1db9600a03ab5b0dc3f04a5bdcee30632f05 (patch)
tree80edcc1a02b8bd5d890ad288a01529230d0ff7a7 /indra/newview/llpanelnavmeshrebake.h
parenta45310e2af0abdcdb7a5d0ade1bd3c66af3dfae1 (diff)
WIP for path-702.
Diffstat (limited to 'indra/newview/llpanelnavmeshrebake.h')
-rw-r--r--indra/newview/llpanelnavmeshrebake.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/indra/newview/llpanelnavmeshrebake.h b/indra/newview/llpanelnavmeshrebake.h
new file mode 100644
index 0000000000..81710a140d
--- /dev/null
+++ b/indra/newview/llpanelnavmeshrebake.h
@@ -0,0 +1,77 @@
+/**
+ * @file llpanelenavmeshrebake.h
+ * @author
+ * @brief
+ *
+ * $LicenseInfo:firstyear=2002&license=viewerlgpl$
+ * Second Life Viewer Source Code
+ * Copyright (C) 2010, Linden Research, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation;
+ * version 2.1 of the License only.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Linden Research, Inc., 945 Battery Street, San Francisco, CA 94111 USA
+ * $/LicenseInfo$
+ */
+
+#ifndef LL_NAVMESHREBAKE_H
+#define LL_NAVMESHREBAKE_H
+
+
+class LLPanelNavMeshRebake : public LLPanel
+{
+ LOG_CLASS(LLPanelNavMeshRebake);
+
+public:
+
+ typedef enum navmesh_rebake_mode_t
+ {
+ NMRM_Visible,
+ NMRM_Visible_Waiting_Response,
+ NVRM_Hiddeb
+ } ESNavMeshRebakeMode;
+
+ void reparent( LLView* rootp );
+
+ static LLPanelNavMeshRebake* getInstance();
+ static void setMode( ESNavMeshRebakeMode mode );
+ static void clearMode( ESNavMeshRebakeMode mode );
+ /*virtual*/ BOOL postBuild();
+ /*virtual*/ void setVisible( BOOL visible );
+
+
+ /*virtual*/ void draw(){/*updatePosition(); */LLPanel::draw();}
+ /*virtual*/ BOOL handleToolTip( S32 x, S32 y, MASK mask );
+
+
+protected:
+ LLPanelNavMeshRebake();
+
+
+private:
+ static LLPanelNavMeshRebake* getPanel();
+ void onNavMeshRebakeClick();
+ //void updatePosition();
+
+ LLButton* mNavMeshRebakeButton;
+
+
+ LLHandle<LLPanel> mOriginalParent;
+
+
+ bool mAttached;
+};
+
+#endif //LL_NAVMESHREBAKE_H
+