diff --git a/src/musredit_qt5/mupp/mupp.cpp b/src/musredit_qt5/mupp/mupp.cpp index 822b0ea2..1b3b8425 100644 --- a/src/musredit_qt5/mupp/mupp.cpp +++ b/src/musredit_qt5/mupp/mupp.cpp @@ -42,6 +42,46 @@ #include "PmuppScript.h" #include "PmuppGui.h" +//------------------------------------------------------------------------ +/** + * @brief mupp_script_syntax + */ +void mupp_script_syntax() +{ + std::cout << std::endl; + std::cout << "SCRIPT COMMANDS:" << std::endl; + std::cout << " Lines starting with '#', '%', or '//' are comments and will be ignored." << std::endl; + std::cout << " The same is true for empty lines. Comments are also allowed at the end" << std::endl; + std::cout << " for a command, i.e. loadPath ./ # the best place ever." << std::endl; + std::cout << std::endl; + std::cout << " load : load a collection. is the filename of the" << std::endl; + std::cout << " collection (*.db, *.dat)" << std::endl; + std::cout << " loadPath : set the load path to ; accepting bash variables" << std::endl; + std::cout << " like $HOME, etc." << std::endl; + std::cout << " x : set a x-axis variable. is a data tag of" << std::endl; + std::cout << " the db/dat-file." << std::endl; + std::cout << " y : set a y-axis variable. is a data tag of" << std::endl; + std::cout << " the db/dat-file." << std::endl; + std::cout << " select : select collection , where is the row-number" << std::endl; + std::cout << " or the name of the collection to be selected." << std::endl; + std::cout << " selectAll : i.e. already set addX, addY will apply to ALL collections" << std::endl; + std::cout << " present." << std::endl; + std::cout << " savePath : sets the save path to ; accepting bash variables" << std::endl; + std::cout << " like $HOME, etc." << std::endl; + std::cout << " plot : where is the file name with extension under which" << std::endl; + std::cout << " the plot should be saved." << std::endl; + std::cout << " macro : where is the file name under which the root macro" << std::endl; + std::cout << " should be saved." << std::endl; + std::cout << " var = : defines a variable." << std::endl; + std::cout << " is a mathemathical expression where" << std::endl; + std::cout << " collection variables are addressed via the '$'," << std::endl; + std::cout << " e.g. dataT is addressed by $dataT, etc." << std::endl; + std::cout << " col : : links to the collection , where" << std::endl; + std::cout << " is the number of the collection as defined" << std::endl; + std::cout << " by the order of load, starting with 0." << std::endl; + std::cout << std::endl; +} + //------------------------------------------------------------------------ /** * @brief mupp_syntax @@ -58,30 +98,7 @@ void mupp_syntax() std::cout << " --path : path where to look for the " << std::endl; std::cout << " : list of file name(s) to be loaded." << std::endl; std::cout << " allowed formats are: db, dat, msr" << std::endl << std::endl; - std::cout << "SCRIPT COMMANDS:" << std::endl; - std::cout << " Lines starting with '#', '%', or '//' are comments and will be ignored." << std::endl; - std::cout << " The same is true for empty lines. Comments are also allowed at the end" << std::endl; - std::cout << " for a command, i.e. loadPath ./ # the best place ever." << std::endl; - std::cout << std::endl; - std::cout << " loadPath : set the load path to . Bash variables like" << std::endl; - std::cout << " $HOME are accepted." << std::endl; - std::cout << " load : will load a collection . Currently *.db and *.dat" << std::endl; - std::cout << " are handled." << std::endl; - std::cout << " selectAll : will select all loaded collections. Thie means every plot" << std::endl; - std::cout << " of variable x/y will be carried out to ALL collections." << std::endl; - std::cout << " select : selects collection , where is either the number" << std::endl; - std::cout << " of the collections, or its name, e.g. " << std::endl; - std::cout << " select YBCO-40nm-T5K-FC150mT-Escan.db" << std::endl; - std::cout << " x