mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Merged changes from trunk 1699:1751 into 2.1-staging
git-svn-id: svn://localhost/ardour2/branches/2.1-staging@1752 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
45d3ec1437
commit
87726495c3
182 changed files with 5678 additions and 3275 deletions
|
|
@ -256,6 +256,13 @@ ActionManager::uncheck_toggleaction (const char * name)
|
|||
delete [] group_name;
|
||||
}
|
||||
|
||||
/** Examine the state of a Configuration setting and a toggle action, and toggle the Configuration
|
||||
* setting if its state doesn't match the toggle action.
|
||||
* @param group Action group.
|
||||
* @param action Action name.
|
||||
* @param Method to set the state of the Configuration setting.
|
||||
* @param Method to get the state of the Configuration setting.
|
||||
*/
|
||||
void
|
||||
ActionManager::toggle_config_state (const char* group, const char* action, bool (Configuration::*set)(bool), bool (Configuration::*get)(void) const)
|
||||
{
|
||||
|
|
@ -285,6 +292,12 @@ ActionManager::toggle_config_state (const char* group, const char* action, sigc:
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/** Set the state of a ToggleAction using a particular Configuration get() method
|
||||
* @param group Action group.
|
||||
* @param action Action name.
|
||||
* @param get Method to obtain the state that the ToggleAction should have.
|
||||
*/
|
||||
void
|
||||
ActionManager::map_some_state (const char* group, const char* action, bool (Configuration::*get)() const)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue