[Libreoffice-commits] core.git: include/svtools svtools/source
Andrzej J.R. Hunt
andrzej at ahunt.org
Thu Aug 1 09:28:31 PDT 2013
include/svtools/dialogcontrolling.hxx | 1 +
svtools/source/misc/dialogcontrolling.cxx | 9 +++++++++
2 files changed, 10 insertions(+)
New commits:
commit ce33ac1da4b3345684e69dc0d5adff375fcb4a13
Author: Andrzej J.R. Hunt <andrzej at ahunt.org>
Date: Tue Jul 30 11:35:38 2013 +0200
Add enableOnRadioCheck for 2 dependent windows.
This is needed for the embedded db selector that is
to be added to the database setup wizard.
Change-Id: I5bbf4bf51472ca84c678b97991b9763fc062a88f
Reviewed-on: https://gerrit.libreoffice.org/5198
Reviewed-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Tested-by: LuboÅ¡ LuÅák <l.lunak at suse.cz>
diff --git a/include/svtools/dialogcontrolling.hxx b/include/svtools/dialogcontrolling.hxx
index 56d31d4..95153ea 100644
--- a/include/svtools/dialogcontrolling.hxx
+++ b/include/svtools/dialogcontrolling.hxx
@@ -157,6 +157,7 @@ namespace svt
disabled when it's unchecked
*/
void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow );
+ void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2 );
void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 );
void enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3, Window& _rDependentWindow4, Window& _rDependentWindow5 );
diff --git a/svtools/source/misc/dialogcontrolling.cxx b/svtools/source/misc/dialogcontrolling.cxx
index 52b8656..e89a97c 100644
--- a/svtools/source/misc/dialogcontrolling.cxx
+++ b/svtools/source/misc/dialogcontrolling.cxx
@@ -181,6 +181,15 @@ namespace svt
}
//---------------------------------------------------------------------
+ void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2 )
+ {
+ PDialogController pController( new RadioDependentEnabler( _rRadio ) );
+ pController->addDependentWindow( _rDependentWindow1 );
+ pController->addDependentWindow( _rDependentWindow2 );
+ m_pImpl->aControllers.push_back( pController );
+ }
+
+ //---------------------------------------------------------------------
void ControlDependencyManager::enableOnRadioCheck( RadioButton& _rRadio, Window& _rDependentWindow1, Window& _rDependentWindow2, Window& _rDependentWindow3 )
{
PDialogController pController( new RadioDependentEnabler( _rRadio ) );
More information about the Libreoffice-commits
mailing list