Changeset 4447 in ntrip


Ignore:
Timestamp:
Jul 29, 2012, 2:42:11 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncapp.cpp

    r4346 r4447  
    6161  QApplication(argc, argv, GUIenabled) {
    6262
     63  _GUIenabled  = GUIenabled;
    6364  _logFileFlag = 0;
    6465  _logFile     = 0;
  • trunk/BNC/src/bncapp.h

    r4346 r4447  
    6464    QWidget* mainWindow() const {return _mainWindow;};
    6565    void setMainWindow(QWidget* mainWindow){_mainWindow = mainWindow;}
     66    bool GUIenabled() const {return _GUIenabled;}
    6667  protected:
    6768    virtual bool event(QEvent* ev);
     
    137138    e_mode              _mode;
    138139    QWidget*            _mainWindow;
     140    bool                _GUIenabled;
    139141 public:
    140142    bncPPPclient*       _bncPPPclient;
  • trunk/BNC/src/bncmain.cpp

    r4446 r4447  
    106106
    107107#ifdef Q_WS_X11
    108   bool useGUI = getenv("DISPLAY") != 0;
     108  bool GUIenabled = getenv("DISPLAY") != 0;
    109109#else
    110   bool useGUI = true;
     110  bool GUIenabled = true;
    111111#endif
    112112 
    113   bncApp app(argc, argv, useGUI);
     113  bncApp app(argc, argv, GUIenabled);
    114114
    115115  app.setApplicationName("BNC");
Note: See TracChangeset for help on using the changeset viewer.