2021-06-14 Fred Gleason <fredg@paravelsystems.com>

* Reworked the 'ListLog' widget in rdairplay(1) to support
	dynamic resizing.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-06-14 13:15:26 -04:00
parent ede949fa1e
commit a9988e41e3
7 changed files with 203 additions and 68 deletions

View File

@@ -35,11 +35,7 @@
#include "post_counter.h"
#include "pie_counter.h"
#include "stop_counter.h"
//
// Debug Settings
//
//#define RESIZABLE
#include "wall_clock.h"
//
// Widget Settings
@@ -94,12 +90,13 @@ class MainWidget : public RDWidget
void masterTimerData();
void transportChangedData();
void timeModeData(RDAirPlayConf::TimeMode mode);
protected:
void keyPressEvent(QKeyEvent *e);
void keyReleaseEvent(QKeyEvent *e);
void closeEvent(QCloseEvent *);
void resizeEvent(QResizeEvent *e);
void paintEvent(QPaintEvent *e);
protected:
void wheelEvent(QWheelEvent *e);
private:
@@ -192,6 +189,9 @@ class MainWidget : public RDWidget
RDEventPlayer *air_event_player;
RDHotKeyList *air_keylist;
RDHotkeys *air_hotkeys;
WallClock *air_clock;
};