diff options
Diffstat (limited to 'linden/indra/newview/llpreviewscript.h')
-rw-r--r-- | linden/indra/newview/llpreviewscript.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/linden/indra/newview/llpreviewscript.h b/linden/indra/newview/llpreviewscript.h index 8e61435..4de886e 100644 --- a/linden/indra/newview/llpreviewscript.h +++ b/linden/indra/newview/llpreviewscript.h | |||
@@ -40,6 +40,7 @@ | |||
40 | #include "llcombobox.h" | 40 | #include "llcombobox.h" |
41 | #include "lliconctrl.h" | 41 | #include "lliconctrl.h" |
42 | #include "llframetimer.h" | 42 | #include "llframetimer.h" |
43 | #include "lltimer.h" | ||
43 | 44 | ||
44 | 45 | ||
45 | class LLMessageSystem; | 46 | class LLMessageSystem; |
@@ -53,7 +54,7 @@ class LLMenuBarGL; | |||
53 | class LLKeywordToken; | 54 | class LLKeywordToken; |
54 | 55 | ||
55 | // Inner, implementation class. LLPreviewScript and LLLiveLSLEditor each own one of these. | 56 | // Inner, implementation class. LLPreviewScript and LLLiveLSLEditor each own one of these. |
56 | class LLScriptEdCore : public LLPanel | 57 | class LLScriptEdCore : public LLPanel, public LLEventTimer |
57 | { | 58 | { |
58 | friend class LLPreviewScript; | 59 | friend class LLPreviewScript; |
59 | friend class LLPreviewLSL; | 60 | friend class LLPreviewLSL; |
@@ -96,6 +97,8 @@ public: | |||
96 | static void onBtnInsertFunction(LLUICtrl*, void*); | 97 | static void onBtnInsertFunction(LLUICtrl*, void*); |
97 | static void doSave( void* userdata, BOOL close_after_save ); | 98 | static void doSave( void* userdata, BOOL close_after_save ); |
98 | static void onBtnSave(void*); | 99 | static void onBtnSave(void*); |
100 | static void onSetExternalEditor(void* data); | ||
101 | static void onBtnXEd(void*); | ||
99 | static void onBtnUndoChanges(void*); | 102 | static void onBtnUndoChanges(void*); |
100 | static void onBtnSaveToDisc(void*); | 103 | static void onBtnSaveToDisc(void*); |
101 | static void onBtnLoadFromDisc(void*); | 104 | static void onBtnLoadFromDisc(void*); |
@@ -117,13 +120,21 @@ public: | |||
117 | static BOOL enablePasteMenu(void* userdata); | 120 | static BOOL enablePasteMenu(void* userdata); |
118 | static BOOL enableSelectAllMenu(void* userdata); | 121 | static BOOL enableSelectAllMenu(void* userdata); |
119 | static BOOL enableDeselectMenu(void* userdata); | 122 | static BOOL enableDeselectMenu(void* userdata); |
123 | static BOOL enableExternalEditor(void* userdata); | ||
120 | 124 | ||
121 | static BOOL hasChanged(void* userdata); | 125 | static BOOL hasChanged(void* userdata); |
122 | 126 | ||
123 | void selectFirstError(); | 127 | void selectFirstError(); |
128 | |||
129 | void autoSave(); | ||
130 | //dim external ed | ||
131 | void XedUpd(); | ||
132 | void xedLaunch(); | ||
124 | 133 | ||
125 | virtual BOOL handleKeyHere(KEY key, MASK mask); | 134 | virtual BOOL handleKeyHere(KEY key, MASK mask); |
126 | 135 | ||
136 | virtual BOOL tick(); | ||
137 | |||
127 | void enableSave(BOOL b) {mEnableSave = b;} | 138 | void enableSave(BOOL b) {mEnableSave = b;} |
128 | 139 | ||
129 | protected: | 140 | protected: |
@@ -137,6 +148,9 @@ protected: | |||
137 | 148 | ||
138 | private: | 149 | private: |
139 | std::string mSampleText; | 150 | std::string mSampleText; |
151 | std::string mAutosaveFilename; | ||
152 | std::string mXfname; | ||
153 | struct stat mXstbuf; | ||
140 | std::string mHelpURL; | 154 | std::string mHelpURL; |
141 | std::string mScriptTitle; | 155 | std::string mScriptTitle; |
142 | LLTextEditor* mEditor; | 156 | LLTextEditor* mEditor; |
@@ -155,6 +169,7 @@ private: | |||
155 | LLFrameTimer mLiveHelpTimer; | 169 | LLFrameTimer mLiveHelpTimer; |
156 | S32 mLiveHelpHistorySize; | 170 | S32 mLiveHelpHistorySize; |
157 | BOOL mEnableSave; | 171 | BOOL mEnableSave; |
172 | BOOL mEnableXEd; | ||
158 | BOOL mHasScriptData; | 173 | BOOL mHasScriptData; |
159 | }; | 174 | }; |
160 | 175 | ||