Custom actions now support explicit single selections

FossilOrigin-Name: e422f84c485ada3ae538712434ae64ea80021f8b
This commit is contained in:
kostas
2015-07-10 18:06:40 +00:00
parent 30d6cf3da4
commit 509a5d2fe1
6 changed files with 62 additions and 23 deletions

View File

@ -39,7 +39,7 @@ enum CustomActionContext
enum
{
MAX_CUSTOM_ACTIONS = 5
MAX_CUSTOM_ACTIONS = 9
};
struct CustomAction
@ -48,6 +48,7 @@ struct CustomAction
QString Description;
QString Command;
CustomActionContext Context;
bool MultipleSelection;
CustomAction()
{
@ -69,6 +70,7 @@ struct CustomAction
Description.clear();
Command.clear();
Context = ACTION_CONTEXT_FILES;
MultipleSelection = true;
}
};