added Id property. Changed acceleration keys for fitting menu. Added version info form the command line

This commit is contained in:
nemu
2009-02-27 11:52:00 +00:00
parent 6e35fd0292
commit 78ca65648f
2 changed files with 20 additions and 6 deletions

View File

@@ -29,14 +29,28 @@
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include <iostream>
using namespace std;
#include <qapplication.h>
#include "PTextEdit.h"
#include "PFitOutputHandler.h"
int main( int argc, char ** argv )
{
if (argc == 2) {
if (!strcmp(argv[1], "--help") || !strcmp(argv[1], "-h")) {
cout << endl << "usage: musrgui [<msr-files>] | -h, --help | -v, --version";
cout << endl << endl;
return 0;
} else if (!strcmp(argv[1], "--version") || !strcmp(argv[1], "-v")) {
cout << endl << "musrgui version: $Id$";
cout << endl << endl;
return 0;
}
}
QApplication a( argc, argv );
PTextEdit * mw = new PTextEdit();