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

* Modified the Button Log widget in rdairplay(1) to be vertically
	resizeable.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-16 17:49:50 -04:00
parent fd717fc1b5
commit 0d0e82b91b
4 changed files with 12 additions and 3 deletions

View File

@ -21899,3 +21899,6 @@
2021-06-16 Fred Gleason <fredg@paravelsystems.com>
* Tweaked the field layout in the button widget labels in
rdairplay(1).
2021-06-16 Fred Gleason <fredg@paravelsystems.com>
* Modified the Button Log widget in rdairplay(1) to be vertically
resizeable.

View File

@ -40,8 +40,8 @@
//
// Widget Settings
//
#define LOGPLAY_MAX_PLAYS 7
#define TRANSPORT_QUANTITY 7
#define LOGPLAY_MAX_PLAYS 12
#define TRANSPORT_QUANTITY 12
#define LOGPLAY_LOOKAHEAD_EVENTS 20
#define LOGPLAY_RESCAN_INTERVAL 5000
#define LOGPLAY_RESCAN_SIZE 30

View File

@ -459,6 +459,8 @@ void ButtonLog::resizeEvent(QResizeEvent *e)
LOGLINEBOX_FULL_HEIGHT,
LOGLINEBOX_FULL_HEIGHT);
}
QRect viewport=QRect(0,0,size().width(),size().height());
for(int i=BUTTON_PLAY_BUTTONS;i<BUTTON_TOTAL_BUTTONS;i++) {
log_line_box[i]->setGeometry(10+85,
(LOGLINEBOX_FULL_HEIGHT+11)*3+
@ -470,6 +472,10 @@ void ButtonLog::resizeEvent(QResizeEvent *e)
(LOGLINEBOX_HALF_HEIGHT+11)*(i-3),
LOGLINEBOX_FULL_HEIGHT,
LOGLINEBOX_HALF_HEIGHT);
bool visible=viewport.contains(log_line_box[i]->geometry())&&
viewport.contains(log_start_button[i]->geometry());
log_line_box[i]->setVisible(visible);
log_start_button[i]->setVisible(visible);
}
}

View File

@ -31,7 +31,7 @@
// Widget Settings
//
#define BUTTON_PLAY_BUTTONS 3
#define BUTTON_TOTAL_BUTTONS 7
#define BUTTON_TOTAL_BUTTONS 12
class ButtonLog : public RDWidget
{