void MusicBottomAreaWidget::setupUi(Ui::MusicApplication* ui)
{
    m_ui = ui;
    ui->menuSetting->setIcon(QIcon(QString::fromUtf8(":/image/menu")));
    ui->menuSetting->setIconSize(QSize(50, 50));
    ui->menuSetting->setStyleSheet(MusicUIObject::MToolButtonStyle04);
    ui->menuSetting->setCursor(QCursor(Qt::PointingHandCursor));
    ui->menuSetting->setToolTip(tr("Menu"));
    ui->menuSetting->setMenu(&m_toolPopupMenu);
    
    ui->musicImport->setIcon(QIcon(QString::fromUtf8(":/appTools/import")));
    ui->musicImport->setIconSize(QSize(40, 40));
    ui->musicImport->setStyleSheet(MusicUIObject::MToolButtonStyle03);
    ui->musicImport->setCursor(QCursor(Qt::PointingHandCursor));
    ui->musicImport->setToolTip(tr("Import"));
    connect(ui->musicImport, SIGNAL(clicked()), m_supperClass, SLOT(musicImportSongs()));
    
    ui->musicSetting->setIcon(QIcon(QString::fromUtf8(":/appTools/setting")));
    ui->musicSetting->setIconSize(QSize(40, 40));
    ui->musicSetting->setStyleSheet(MusicUIObject::MToolButtonStyle03);
    ui->musicSetting->setCursor(QCursor(Qt::PointingHandCursor));
    ui->musicSetting->setToolTip(tr("Setting"));
    connect(ui->musicSetting, SIGNAL(clicked()), m_supperClass, SLOT(musicSetting()));
    
    ui->musicSearch->setIcon(QIcon(QString::fromUtf8(":/appTools/search")));
    ui->musicSearch->setIconSize(QSize(40, 40));
    ui->musicSearch->setStyleSheet(MusicUIObject::MToolButtonStyle03);
    ui->musicSearch->setCursor(QCursor(Qt::PointingHandCursor));
    ui->musicSearch->setToolTip(tr("musicSearch"));

    ui->musicCurrentLocation->setIcon(QIcon(QString::fromUtf8(":/appTools/location")));
    ui->musicCurrentLocation->setIconSize(QSize(40, 40));
    ui->musicCurrentLocation->setStyleSheet(MusicUIObject::MToolButtonStyle03);
    ui->musicCurrentLocation->setCursor(QCursor(Qt::PointingHandCursor));
    ui->musicCurrentLocation->setToolTip(tr("musicLocation"));
    connect(ui->musicCurrentLocation, SIGNAL(clicked()), m_supperClass, SLOT(musicCurrentPlayLocation()));

    connect(ui->musicDesktopLrc, SIGNAL(clicked()), m_systemTrayMenu, SLOT(showDesktopLrc()));

    createToolPopupMenu();
}
MusicSystemTrayMenu::MusicSystemTrayMenu(QWidget *parent)
    : QMenu(parent)
{
    setStyleSheet(MusicUIObject::MMenuStyle02);
    createPlayWidgetActions();
    addAction(m_widgetAction);

    m_showLrcAction = new QAction(QIcon(":/contextMenu/lrc"),tr("showDeskLrc"), this);
    connect(m_showLrcAction, SIGNAL(triggered()), SLOT(showDesktopLrc()));
    m_lockLrcAction = new QAction(QIcon(":/contextMenu/lock"), tr("lockLrc"), this);
    connect(m_lockLrcAction, SIGNAL(triggered()), SIGNAL(setWindowLockedChanged()));

    addSeparator();
    addAction(QIcon(":/contextMenu/window"), tr("showMainWindow"), parent, SLOT(showNormal()));
    addSeparator();
    addAction(QIcon(":/contextMenu/setting"), tr("showSetting"), parent, SLOT(musicSetting()));
    addAction(m_showLrcAction);
    addSeparator();
    addAction(m_lockLrcAction);
    addSeparator();
    addAction(QIcon(":/contextMenu/quit"), tr("appClose"), parent, SLOT(quitWindowClose()));
}
void MusicBottomAreaWidget::setupUi(Ui::MusicApplication* ui)
{
    m_ui = ui;
    connect(ui->musicDesktopLrc, SIGNAL(clicked()), m_systemTrayMenu, SLOT(showDesktopLrc()));
}