some fixes for headless mode
This commit is contained in:
parent
70d2a0e069
commit
b7b39ba6f2
4 changed files with 12 additions and 21 deletions
|
@ -171,6 +171,11 @@ LED bar: lbr
|
|||
#define LOW_BOUND_SIG_METER ( -50.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)
|
||||
#define MAX_NUM_CHANNELS 50 // max number channels for server
|
||||
|
||||
|
|
|
@ -24,27 +24,17 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#ifndef HEADLESS
|
||||
# include <QFrame>
|
||||
# include <QPixmap>
|
||||
# include <QTimer>
|
||||
# include <QLayout>
|
||||
# include <QProgressBar>
|
||||
# include <QStackedLayout>
|
||||
#endif
|
||||
#include <QFrame>
|
||||
#include <QPixmap>
|
||||
#include <QTimer>
|
||||
#include <QLayout>
|
||||
#include <QProgressBar>
|
||||
#include <QStackedLayout>
|
||||
#include "util.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 ********************************************************************/
|
||||
#ifndef HEADLESS
|
||||
class CMultiColorLEDBar : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -98,4 +88,3 @@ protected:
|
|||
CVector<cLED*> vecpLEDs;
|
||||
QProgressBar* pProgressBar;
|
||||
};
|
||||
#endif
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
#include "util.h"
|
||||
#include "serverlogging.h"
|
||||
#include "serverlist.h"
|
||||
#include "multicolorledbar.h"
|
||||
#include "recorder/jamrecorder.h"
|
||||
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
# include <QLineEdit>
|
||||
# include <QDateTime>
|
||||
# include <QDesktopServices>
|
||||
# include "ui_aboutdlgbase.h"
|
||||
#endif
|
||||
#include <QFile>
|
||||
#include <QUrl>
|
||||
|
@ -59,9 +60,6 @@ using namespace std; // because of the library: "vector"
|
|||
#else
|
||||
# include <sys/time.h>
|
||||
#endif
|
||||
#ifndef HEADLESS
|
||||
# include "ui_aboutdlgbase.h"
|
||||
#endif
|
||||
|
||||
|
||||
class CClient; // forward declaration of CClient
|
||||
|
|
Loading…
Reference in a new issue