Icons positions migrating
Hello,
is there any way to migrate icons placement setting, or some file that has this property stored in it? We would like to save icons placement somehow and use it in reinstallation of the program.
Thank you for answering.
Lukáš Bendík
Comments
-
We are using something here to do that. It is based on a configuration file with lines like:
toolbar1;t;0,0;s; toolbar2;b;3,;h;
so syntax is:<name>;<top|bottom|left|right>;<position>;<show|hide>;
Then you need some code to open the file, read lines, make a list of ; separated lines, do a (command "-toolbar" ...) for each line/list.
One tip though, first "let them all float" (-toolbar ... "float"
) before positioning them.
Hardest part is probably making the list of a line, you can do something like this. ssv stands for "semicolon separated value", which is a line from config:(setq ssvrest (strcat (vl-string-right-trim ";" ssv) ";")) (setq ssvlist nil) (while (/= (vl-string-position (ascii ";") ssvrest) nil) (setq firstitem (substr ssvrest 1 (vl-string-position (ascii ";") ssvrest))) (setq ssvrest (substr ssvrest (+ (vl-string-position (ascii ";") ssvrest) 2))) (if (= ssvlist nil) (setq ssvlist (list firstitem)) (setq ssvlist (append ssvlist (list firstitem))) ) )
End of head start.0