kwave  18.07.70
SonagramWindow.cpp File Reference
#include "config.h"
#include <limits.h>
#include <math.h>
#include <new>
#include <QBitmap>
#include <QImage>
#include <QLabel>
#include <QMenuBar>
#include <QPointer>
#include <QLayout>
#include <QStatusBar>
#include <QTimer>
#include "libkwave/String.h"
#include "libkwave/Utils.h"
#include "libkwave/WindowFunction.h"
#include "libgui/FileDialog.h"
#include "libgui/ImageView.h"
#include "libgui/ScaleWidget.h"
#include "SonagramWindow.h"
Include dependency graph for SonagramWindow.cpp:

Go to the source code of this file.

Macros

#define REFRESH_DELAY   100
 
#define COLOR_CUTOFF_RATIO   (0.1/100.0)
 

Variables

static const char * background []
 

Macro Definition Documentation

◆ COLOR_CUTOFF_RATIO

#define COLOR_CUTOFF_RATIO   (0.1/100.0)

Color values below this limit are cut off when adjusting the sonagram image's brightness I found out by experiments that 0.1% seems to be reasonable

Definition at line 53 of file SonagramWindow.cpp.

Referenced by Kwave::SonagramWindow::adjustBrightness().

◆ REFRESH_DELAY

#define REFRESH_DELAY   100

delay between two screen updates [ms]

Definition at line 46 of file SonagramWindow.cpp.

Referenced by Kwave::SonagramWindow::insertSlice().

Variable Documentation

◆ background

const char* background[]
static
Initial value:
= {
" 20 20 2 1",
"# c #808080",
". c None",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"##########..........",
"..........##########",
"..........##########",
"..........##########",
"..........##########",
"..........##########",
"..........##########",
"..........##########",
"..........##########",
"..........##########",
"..........##########"
}

Definition at line 55 of file SonagramWindow.cpp.

Referenced by Kwave::LevelMeter::drawContents(), Kwave::LevelMeter::drawScale(), Kwave::SignalView::PositionWidget::paintEvent(), Kwave::SonagramWindow::SonagramWindow(), and Kwave::Splash::Splash().