some fixes for headless mode

This commit is contained in:
Volker Fischer 2020-06-20 17:26:52 +02:00
parent 70d2a0e069
commit b7b39ba6f2
4 changed files with 12 additions and 21 deletions

View file

@ -171,6 +171,11 @@ LED bar: lbr
#define LOW_BOUND_SIG_METER ( -50.0 ) // dB #define LOW_BOUND_SIG_METER ( -50.0 ) // dB
#define UPPER_BOUND_SIG_METER ( 0.0 ) // dB #define UPPER_BOUND_SIG_METER ( 0.0 ) // dB
// defines for LED level meter CMultiColorLEDBar
#define NUM_STEPS_LED_BAR 8
#define RED_BOUND_LED_BAR 7
#define YELLOW_BOUND_LED_BAR 5
// maximum number of connected clients at the server (must not be larger than 256) // maximum number of connected clients at the server (must not be larger than 256)
#define MAX_NUM_CHANNELS 50 // max number channels for server #define MAX_NUM_CHANNELS 50 // max number channels for server

View file

@ -24,27 +24,17 @@
#pragma once #pragma once
#ifndef HEADLESS #include <QFrame>
# include <QFrame> #include <QPixmap>
# include <QPixmap> #include <QTimer>
# include <QTimer> #include <QLayout>
# include <QLayout> #include <QProgressBar>
# include <QProgressBar> #include <QStackedLayout>
# include <QStackedLayout>
#endif
#include "util.h" #include "util.h"
#include "global.h" #include "global.h"
/* Definitions ****************************************************************/
// defines for LED level meter CMultiColorLEDBar
#define NUM_STEPS_LED_BAR 8
#define RED_BOUND_LED_BAR 7
#define YELLOW_BOUND_LED_BAR 5
/* Classes ********************************************************************/ /* Classes ********************************************************************/
#ifndef HEADLESS
class CMultiColorLEDBar : public QWidget class CMultiColorLEDBar : public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -98,4 +88,3 @@ protected:
CVector<cLED*> vecpLEDs; CVector<cLED*> vecpLEDs;
QProgressBar* pProgressBar; QProgressBar* pProgressBar;
}; };
#endif

View file

@ -43,7 +43,6 @@
#include "util.h" #include "util.h"
#include "serverlogging.h" #include "serverlogging.h"
#include "serverlist.h" #include "serverlist.h"
#include "multicolorledbar.h"
#include "recorder/jamrecorder.h" #include "recorder/jamrecorder.h"

View file

@ -38,6 +38,7 @@
# include <QLineEdit> # include <QLineEdit>
# include <QDateTime> # include <QDateTime>
# include <QDesktopServices> # include <QDesktopServices>
# include "ui_aboutdlgbase.h"
#endif #endif
#include <QFile> #include <QFile>
#include <QUrl> #include <QUrl>
@ -59,9 +60,6 @@ using namespace std; // because of the library: "vector"
#else #else
# include <sys/time.h> # include <sys/time.h>
#endif #endif
#ifndef HEADLESS
# include "ui_aboutdlgbase.h"
#endif
class CClient; // forward declaration of CClient class CClient; // forward declaration of CClient