Changeset 6963b52 in subsurface


Ignore:
Timestamp:
Jun 11, 2017, 1:50:30 PM (6 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
15c0a0a
Parents:
2261283
git-author:
Robert C. Helling <robert@…> (06/07/17 02:00:38)
git-committer:
Dirk Hohndel <dirk@…> (06/11/17 13:50:30)
Message:

Let command line version not open an X window

So we can run it on a headless system

Signed-off-by: Robert C. Helling <helling@…>

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/smtk2ssrf.pl

    rfacaa3e r6963b52  
    3636                             -maxlength => 200);
    3737        print $q->submit();
    38         print $q-end_form();
     38        print $q->end_form();
    3939
    4040# Here we could print some footer stuff as above
  • smtk-import/CMakeLists.txt

    rddd39f2 r6963b52  
    33project(smtk2ssrf)
    44cmake_minimum_required(VERSION 2.8.11)
     5
     6option(COMMANDLINE "Build command line version")
    57
    68set(CMAKE_AUTOMOC ON)
  • smtk-import/smtk_standalone.cpp

    rb641757 r6963b52  
    66#include <QApplication>
    77#include <QDebug>
     8#define COMMANDLINE 1
    89
    910extern "C" void smartrak_import(const char *file, struct dive_table *table);
     
    1819        char *infile, *outfile;
    1920        int i;
     21#ifndef COMMANDLINE
    2022        QApplication a(argc, argv);
    2123        Smrtk2ssrfcWindow w;
     24#else
     25        QCoreApplication a(argc, argv);
     26#endif
    2227
    2328        switch (argc) {
    2429        case 1:
     30#ifndef COMMANDLINE
    2531                w.show();
    2632                return a.exec();
     33#endif
    2734                break;
    2835        case 2:
Note: See TracChangeset for help on using the changeset viewer.