1.1 --- a/shortcuts.cpp Thu Feb 25 11:03:52 2010 +0000
1.2 +++ b/shortcuts.cpp Mon Jun 14 13:59:17 2010 +0000
1.3 @@ -41,3 +41,19 @@
1.4 cout <<endl;
1.5 }
1.6 }
1.7 +
1.8 +void Switchboard::printLaTeX ()
1.9 +{
1.10 + QString g;
1.11 + foreach (g,actions.uniqueKeys())
1.12 + {
1.13 + cout <<"Group: "<<g.toStdString()<<endl;
1.14 + QList <QAction*> values=actions.values(g);
1.15 + for (int i=0;i<values.size();++i)
1.16 + if (!values.at(i)->shortcut().toString().isEmpty())
1.17 + cout<<QString (" %1& %2\\\\ ")
1.18 + .arg(values.at(i)->text().left(30),30)
1.19 + .arg(values.at(i)->shortcut().toString()).toStdString()<<endl;
1.20 + cout <<endl;
1.21 + }
1.22 +}