-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhorizontalmenuwidget.cpp
32 lines (29 loc) · 1.15 KB
/
horizontalmenuwidget.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "horizontalmenuwidget.h"
#include "ui_horizontalmenuwidget.h"
HorizontalMenuWidget::HorizontalMenuWidget(QWidget *parent) :
AbstractMenuWidget(parent),
ui(new Ui::HorizontalMenuWidget)
{
ui->setupUi(this);
connect(ui->btnAbout,SIGNAL(clicked()),this,SIGNAL(showAbout()));
connect(ui->btnExit,SIGNAL(clicked()),this,SIGNAL(exitClicked()));
connect(ui->btnFiles,SIGNAL(clicked()),this,SIGNAL(showFiles()));
connect(ui->btnArtists,SIGNAL(clicked()),this,SIGNAL(showArtists()));
connect(ui->btnAlbums,SIGNAL(clicked()),this,SIGNAL(showAlbums()));
connect(ui->btnConnect,SIGNAL(clicked()),this,SIGNAL(connectClicked()));
connect(ui->btnCurrentSong,SIGNAL(clicked()),this,SIGNAL(showCurrentSong()));
connect(ui->btnSettings,SIGNAL(clicked()),this,SIGNAL(showSettings()));
connect(ui->btnPlaylists,SIGNAL(clicked()),this,SIGNAL(showPlaylist()));
}
HorizontalMenuWidget::~HorizontalMenuWidget()
{
delete ui;
}
void HorizontalMenuWidget::disconnected()
{
ui->btnConnect->setText(tr("Connect"));
}
void HorizontalMenuWidget::connected()
{
ui->btnConnect->setText(tr("Disconnect"));
}