WIP: refactoring ongoing.

This commit is contained in:
Matthias Koefferlein 2020-02-07 19:05:45 +01:00
parent 24ad1b2d26
commit a2d4b02238
3 changed files with 5 additions and 4 deletions

1
TODO
View File

@ -35,4 +35,5 @@ Tests:
- adding of rulers/removing
- ruby plugin (debugging, re-running)
- changing of macro title, move macro to different place
- funktionieren die check marks vor den menus? (Mode, selection modes, ruler template)

View File

@ -1611,7 +1611,7 @@ AbstractMenu::find_item (tl::Extractor &extr)
} else {
std::string n;
extr.read (n, ".+>(");
extr.read (n, ".;+>(");
if (n.empty ()) {
@ -1629,7 +1629,7 @@ AbstractMenu::find_item (tl::Extractor &extr)
std::string nn;
if (extr.test (">")) {
extr.read (nn, ".+>(");
extr.read (nn, ".;+>(");
}
std::string name (parent->name ());
@ -1645,7 +1645,7 @@ AbstractMenu::find_item (tl::Extractor &extr)
std::string ndesc;
if (! nn.empty () && extr.test ("(")) {
extr.read_word_or_quoted (ndesc, " _.$");
extr.read_word_or_quoted (ndesc, " _.;$");
extr.test (")");
}

View File

@ -232,7 +232,7 @@ PluginDeclaration::init_menu (lay::Dispatcher *dispatcher)
title = std::string ();
if (implements_mouse_mode (title)) {
modes.push_back (std::make_pair (title, std::make_pair ("edit_menu.mode_menu.end;@toolbar.end", id ())));
modes.push_back (std::make_pair (title, std::make_pair ("edit_menu.mode_menu.end;@toolbar.end_modes", id ())));
}
// the primary mouse modes (special for LayoutView)