@@ -111,9 +111,9 @@ MainWindow::MainWindow(const std::shared_ptr<QStringList> _log_messages,
111111 qDebug () << " Done building MainWindow" ;
112112}
113113
114- /* *
115- * @brief Parse command line arguments
116- */
114+ /* *
115+ * @brief Parse command line arguments
116+ */
117117void MainWindow::set_cli_parser (const QCommandLineParser& cli_parser) {
118118 if (!cli_parser.value (" o" ).isEmpty ()) {
119119 QString filename = cli_parser.value (" o" );
@@ -124,9 +124,9 @@ void MainWindow::set_cli_parser(const QCommandLineParser& cli_parser) {
124124 }
125125}
126126
127- /* *
128- * @brief Open a new object file
129- */
127+ /* *
128+ * @brief Open a new object file
129+ */
130130void MainWindow::open ()
131131{
132132 QSettings settings;
@@ -174,9 +174,9 @@ void MainWindow::open()
174174 );
175175}
176176
177- /* *
178- * @brief Open a new object file
179- */
177+ /* *
178+ * @brief Open a new object file
179+ */
180180void MainWindow::save () {
181181 QString filename = QFileDialog::getSaveFileName (this , tr (" Save file" ), " " , tr (" POSCAR" ));
182182
@@ -189,9 +189,9 @@ void MainWindow::save() {
189189 statusBar ()->showMessage (" Save to " + filename + " ." );
190190}
191191
192- /* *
193- * @brief Close the application
194- */
192+ /* *
193+ * @brief Close the application
194+ */
195195void MainWindow::exit () {
196196 QMessageBox msgBox;
197197 msgBox.setText (" Exit program." );
@@ -214,16 +214,20 @@ void MainWindow::exit() {
214214 }
215215}
216216
217- /* *
218- * @brief Display about menu
219- */
217+ /* *
218+ * @brief Display about menu
219+ */
220220void MainWindow::about () {
221221 QMessageBox message_box;
222222 message_box.setStyleSheet (" QLabel{min-width: 250px; font-weight: normal;}" );
223223 message_box.setText (PROGRAM_NAME
224224 " version "
225225 PROGRAM_VERSION
226- " .\n\n Author:\n Ivo Filot <i.a.w.filot@tue.nl>\n\n "
226+ " .\n\n Maintainer:\n "
227+ " Ivo Filot <i.a.w.filot@tue.nl>\n\n "
228+ " Authors:\n "
229+ " Ivo Filot\n "
230+ " Joeri van Limpt\n\n "
227231 PROGRAM_NAME " is licensed under the GPLv3 license.\n\n "
228232 PROGRAM_NAME " is dynamically linked to Qt, which is licensed under LGPLv3.\n " );
229233 message_box.setIcon (QMessageBox::Information);
@@ -233,9 +237,9 @@ void MainWindow::about() {
233237 message_box.exec ();
234238}
235239
236- /* *
237- * @brief Set stereo projection
238- */
240+ /* *
241+ * @brief Set stereo projection
242+ */
239243void MainWindow::set_stereo (QString stereo_name) {
240244 this ->interface_window ->get_anaglyph_widget ()->set_stereo (stereo_name);
241245
@@ -251,11 +255,11 @@ void MainWindow::set_stereo(QString stereo_name) {
251255 this ->statusbar_projection_icon ->setPixmap (pixmap.scaled (16 , 16 ));
252256}
253257
254- /* *
255- * @brief moveEvent.
256- *
257- * @param QMoveEvent Parameter QMoveEvent.
258- */
258+ /* *
259+ * @brief moveEvent.
260+ *
261+ * @param QMoveEvent Parameter QMoveEvent.
262+ */
259263void MainWindow::moveEvent (QMoveEvent* event) {
260264 this ->interface_window ->get_anaglyph_widget ()->window_move_event ();
261265
@@ -352,16 +356,16 @@ void MainWindow::dragLeaveEvent(QDragLeaveEvent *event) {
352356 event->accept ();
353357}
354358
355- /* *
356- * @brief Clear statusbar when timer runs out
357- */
359+ /* *
360+ * @brief Clear statusbar when timer runs out
361+ */
358362void MainWindow::statusbar_timeout () {
359363 statusBar ()->showMessage (" " );
360364}
361365
362- /* *
363- * @brief Loads a theme.
364- */
366+ /* *
367+ * @brief Loads a theme.
368+ */
365369void MainWindow::load_theme () {
366370 // load theme
367371 QFile f (" :/assets/themes/darkorange/darkorange.qss" );
@@ -374,19 +378,19 @@ void MainWindow::load_theme() {
374378 }
375379}
376380
377- /* *
378- * @brief Show a message on the statusbar
379- *
380- * @param[in] message The message
381- */
381+ /* *
382+ * @brief Show a message on the statusbar
383+ *
384+ * @param[in] message The message
385+ */
382386void MainWindow::show_message_statusbar (const QString& message) {
383387 statusBar ()->showMessage (message);
384388 this ->statusbar_timer ->start (1000 );
385389}
386390
387- /* *
388- * @brief Show an about window
389- */
391+ /* *
392+ * @brief Show an about window
393+ */
390394void MainWindow::slot_debug_log () {
391395 this ->log_window ->show ();
392396}
0 commit comments