85int main(
int argc,
char ** argv )
87 Q_INIT_RESOURCE(musredit);
90 if (!strcmp(argv[1],
"--help") || !strcmp(argv[1],
"-h")) {
91 std::cout << std::endl <<
"usage: musredit [<msr-files>] | -h, --help | -v, --version";
92 std::cout << std::endl << std::endl;
94 }
else if (!strcmp(argv[1],
"--version") || !strcmp(argv[1],
"-v")) {
96 std::cout << std::endl <<
"musredit git-branch: " << GIT_BRANCH <<
", git-rev: " << GIT_CURRENT_SHA1;
98 std::cout << std::endl <<
"musredit git-branch: unknown, git-rev: unknown.";
100 std::cout << std::endl << std::endl;
105 QApplication a( argc, argv );
107 std::unique_ptr<PTextEdit> mw = std::make_unique<PTextEdit>();
108 mw->setWindowTitle(
"MusrFit Editor" );
109 mw->resize( mw->getEditW(), mw->getEditH() );
112 a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
113 a.connect( &a, SIGNAL( aboutToQuit() ), mw.get(), SLOT( aboutToQuit() ) );
Main window class for the musredit application.
int main(int argc, char **argv)
Main entry point for the musredit application.