⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 level.h

📁 一个KDE下的录音程序
💻 H
字号:
/* * level.h. Part of krecord by Gerd Knorr. * * Displays the input level. * * Copyright (C) 1998 Florian Kolbe * * History see level.cpp * */#ifndef LEVEL_H#define LEVEL_H#include <qwidget.h>class LevelWindow : public QWidget{    Q_OBJECT;public:    LevelWindow(QWidget *parent, char *name);    ~LevelWindow(void);    bool PowervsMax;    bool LogvsLinear;public slots:    void new_params(struct SOUNDPARAMS *params);    void new_data(void *data);    void resetPeakLeft();    void resetPeakRight();protected:    void paintEvent (QPaintEvent *);    void resizeEvent(QResizeEvent *);    private:    int           init;    int           afmt;    int           samples;    int           channels;    signed short* sdata;    QColor	  orange;    QPixmap*      buffer;    QTimer*       timer[2];    float         peak[2];    bool          clipLeft;    bool          clipRight;    void drawBar(QPainter& painter, int where, float level, int size, bool drawRed);    signals:    void setvalue(char *text);};#endif /* LEVEL_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -