diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 75b7c0cb07..5a37493f4f 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -582,6 +582,7 @@ set(viewer_SOURCE_FILES llxmlrpclistener.cpp llxmlrpctransaction.cpp noise.cpp + panel_prefs_firestorm.cpp pipeline.cpp qtoolalign.cpp rlvhandler.cpp @@ -1128,6 +1129,7 @@ set(viewer_HEADER_FILES llxmlrpctransaction.h macmain.h noise.h + panel_prefs_firestorm.h pipeline.h qtoolalign.h rlvdefines.h diff --git a/indra/newview/panel_prefs_firestorm.cpp b/indra/newview/panel_prefs_firestorm.cpp new file mode 100644 index 0000000000..c1d4ce59af --- /dev/null +++ b/indra/newview/panel_prefs_firestorm.cpp @@ -0,0 +1,55 @@ +/*${License blank}*/ +#include "llviewerprecompiledheaders.h" +#include "panel_prefs_firestorm.h" + + +static LLRegisterPanelClassWrapper t_pref_fs("panel_preference_firestorm"); + +PanelPreferenceFirestorm::PanelPreferenceFirestorm() : LLPanelPreference(), m_calcLineEditor(NULL), m_acLineEditor(NULL), m_tp2LineEditor(NULL), m_clearchatLineEditor(NULL), m_musicLineEditor(NULL) +{ +} + + +BOOL PanelPreferenceFirestorm::postBuild() +{ + m_calcLineEditor = getChild("PhoenixCmdLineCalc"); + m_acLineEditor = getChild("PhoenixCmdLineAutocorrect"); + m_tp2LineEditor = getChild("PhoenixCmdLineTP2"); + m_clearchatLineEditor = getChild("PhoenixCmdLineClearChat"); + m_musicLineEditor = getChild("PhoenixCmdLineMusic"); + m_aoLineEditor = getChild("PhoenixCmdLineAO"); + if(m_calcLineEditor) + { + m_calcLineEditor->setEnabled(FALSE); + } + if(m_acLineEditor) + { + m_acLineEditor->setEnabled(FALSE); + } + if(m_tp2LineEditor) + { + m_tp2LineEditor->setEnabled(FALSE); + } + if(m_clearchatLineEditor) + { + m_clearchatLineEditor->setEnabled(FALSE); + } + if(m_musicLineEditor) + { + m_musicLineEditor->setEnabled(FALSE); + } + if(m_aoLineEditor) + { + m_aoLineEditor->setEnabled(FALSE); + } + return LLPanelPreference::postBuild(); +} + +void PanelPreferenceFirestorm::apply() +{ +} + + +void PanelPreferenceFirestorm::cancel() +{ +} diff --git a/indra/newview/panel_prefs_firestorm.h b/indra/newview/panel_prefs_firestorm.h new file mode 100644 index 0000000000..8ab8032e82 --- /dev/null +++ b/indra/newview/panel_prefs_firestorm.h @@ -0,0 +1,24 @@ +/*${License blank}*/ +#ifndef panel_prefs_firestorm +#define panel_prefs_firestorm +#include "llfloaterpreference.h" +#include "lllineeditor.h" +class LLLineEditor; +class PanelPreferenceFirestorm : public LLPanelPreference +{ +public: + PanelPreferenceFirestorm(); + + /*virtual*/ BOOL postBuild(); + /*virtual*/ void apply(); + /*virtual*/ void cancel(); + +protected: + LLLineEditor* m_calcLineEditor; + LLLineEditor* m_acLineEditor; + LLLineEditor* m_tp2LineEditor; + LLLineEditor* m_clearchatLineEditor; + LLLineEditor* m_musicLineEditor; + LLLineEditor* m_aoLineEditor; +}; +#endif \ No newline at end of file diff --git a/indra/newview/skins/default/xui/en/floater_preferences.xml b/indra/newview/skins/default/xui/en/floater_preferences.xml index ca57f59281..bcc0f61c73 100644 --- a/indra/newview/skins/default/xui/en/floater_preferences.xml +++ b/indra/newview/skins/default/xui/en/floater_preferences.xml @@ -3,7 +3,7 @@ legacy_header_height="18" open_centered="true" default_tab_group="1" - height="460" + height="500" layout="topleft" name="Preferences" help_topic="preferences" @@ -18,7 +18,7 @@ layout="topleft" right="-105" name="OK" - top="433" + top="467" width="90"> @@ -39,7 +39,7 @@ - - - - - - - (requires restart) - - - - Chat Tab Mode Orientation: - - + + + + + + + + (requires restart) + + + Chat Tab Mode Orientation: + + - (requires restart) - - - - - - - - + (requires restart) + + + + + + + + + Chat and IM enhancements: + + + + + - (requires restart) - - - - - - - - Chat and IM enhancements: - - - - - + text_color="White_25"> + (requires restart) + + + + +