musredit 1.0.0
Loading...
Searching...
No Matches
main.cpp File Reference

Entry point for the musredit application. More...

#include <iostream>
#include <memory>
#include <QApplication>
#include "PTextEdit.h"
#include "PFitOutputHandler.h"
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 Main entry point for the musredit application.
 

Detailed Description

Entry point for the musredit application.

This file contains the main() function which initializes the Qt application and creates the main editor window for musredit.

Author
Andreas Suter
Date
2010-2026

Definition in file main.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

Main entry point for the musredit application.

musredit is a simple editor-based interface to the musrfit programs, providing a graphical environment for creating, editing, and managing muon spin rotation (μSR) fit parameter files.

The application is built using the Qt framework and provides the following features:

  • Multi-document editing of msr (muon spin rotation) parameter files
  • Syntax highlighting for msr file format
  • Integration with musrfit analysis tools (musrfit, musrview, msr2data, etc.)
  • Recent file tracking and session management
Command Line Options:
  • No arguments: Launch the editor with an empty document
  • <msr-files>: Open the specified msr file(s) for editing
  • -h, --help: Display usage information and exit
  • -v, --version: Display version/git revision information and exit
License:
musredit is free software licensed under GPL v2 or later. See http://www.gnu.org/licenses for details.
Parameters
argcNumber of command-line arguments
argvArray of command-line argument strings
Returns
0 on successful execution or when displaying help/version, or the Qt application exit code from QApplication::exec()
See also
PTextEdit The main editor window class
https://qt.io Qt framework documentation

Definition at line 85 of file main.cpp.