diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-11-16 18:57:41 +0200 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-11-16 18:57:41 +0200 |
commit | e7ef0512a27adce621b8523f6cb81a8daa73e12d (patch) | |
tree | 826f354a609b57db9a878dfe88fa19fc9caa70ce /indra/newview/llpanelsnapshot.cpp | |
parent | 557a64f8076666be767eea7567e3375aa71aa1e4 (diff) |
EXP-1562 WIP Disable custom resolution controls by default (when "Current Window" is pre-select).
Diffstat (limited to 'indra/newview/llpanelsnapshot.cpp')
-rw-r--r-- | indra/newview/llpanelsnapshot.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llpanelsnapshot.cpp b/indra/newview/llpanelsnapshot.cpp index fdae521ac5..90e32f973f 100644 --- a/indra/newview/llpanelsnapshot.cpp +++ b/indra/newview/llpanelsnapshot.cpp @@ -74,6 +74,16 @@ LLFloaterSnapshot::ESnapshotFormat LLPanelSnapshot::getImageFormat() const return LLFloaterSnapshot::SNAPSHOT_FORMAT_JPEG; } +void LLPanelSnapshot::enableControls(BOOL enable) +{ + setCtrlsEnabled(enable); + if (enable) + { + // Make sure only relevant controls are enabled/shown. + updateCustomResControls(); + } +} + LLSpinCtrl* LLPanelSnapshot::getWidthSpinner() { return getChild<LLSpinCtrl>(getWidthSpinnerName()); |