mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-22 07:39:35 +02:00
2018-08-13 Fred Gleason <fredg@paravelsystems.com>
* Added code to force the 'Plastique' GUI style.
This commit is contained in:
parent
ce323b471d
commit
c588b4950a
@ -17386,3 +17386,5 @@
|
||||
the incorrect shadow color.
|
||||
2018-08-13 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Updated table documentation.
|
||||
2018-08-13 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added code to force the 'Plastique' GUI style.
|
||||
|
6
lib/rd.h
6
lib/rd.h
@ -585,5 +585,11 @@
|
||||
#define RD_RDVAIRPLAY_LOG_BASE 100
|
||||
#define RD_RDVAIRPLAY_LOG_QUAN 20
|
||||
|
||||
/*
|
||||
* GUI Style
|
||||
* (must be one of the values returned by QStyleFactory::keys())
|
||||
*/
|
||||
#define RD_GUI_STYLE "Plastique"
|
||||
|
||||
|
||||
#endif // RD_H
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// Edit Rivendell Audio
|
||||
//
|
||||
// (C) Copyright 2002-2003,2016-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -214,7 +214,7 @@ RDEditAudio::RDEditAudio(RDCart *cart,QString cut_name,int card,
|
||||
//
|
||||
// Amplitude Buttons
|
||||
//
|
||||
QLabel *amp_label=new QLabel(this,"amp_label");
|
||||
QLabel *amp_label=new QLabel(this);
|
||||
amp_label->setGeometry(742,5,80,16);
|
||||
amp_label->setAlignment(Qt::AlignHCenter|Qt::AlignVCenter);
|
||||
amp_label->setFont(button_font);
|
||||
|
@ -125,20 +125,20 @@ void RDPushButton::setPalette(const QPalette &pal)
|
||||
void RDPushButton::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
switch(e->button()) {
|
||||
case Qt::LeftButton:
|
||||
QPushButton::mousePressEvent(e);
|
||||
break;
|
||||
case Qt::LeftButton:
|
||||
QPushButton::mousePressEvent(e);
|
||||
break;
|
||||
|
||||
case Qt::MidButton:
|
||||
emit centerPressed();
|
||||
break;
|
||||
case Qt::MidButton:
|
||||
emit centerPressed();
|
||||
break;
|
||||
|
||||
case Qt::RightButton:
|
||||
emit rightPressed();
|
||||
break;
|
||||
case Qt::RightButton:
|
||||
emit rightPressed();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -146,32 +146,32 @@ void RDPushButton::mousePressEvent(QMouseEvent *e)
|
||||
void RDPushButton::mouseReleaseEvent(QMouseEvent *e)
|
||||
{
|
||||
switch(e->button()) {
|
||||
case Qt::LeftButton:
|
||||
QPushButton::mouseReleaseEvent(e);
|
||||
break;
|
||||
case Qt::LeftButton:
|
||||
QPushButton::mouseReleaseEvent(e);
|
||||
break;
|
||||
|
||||
case Qt::MidButton:
|
||||
e->accept();
|
||||
emit centerReleased();
|
||||
if((e->x()>=0)&&(e->x()<geometry().width())&&
|
||||
(e->y()>=0)&&(e->y()<geometry().height())) {
|
||||
emit centerClicked();
|
||||
emit centerClicked(button_id,QPoint(e->x(),e->y()));
|
||||
}
|
||||
break;
|
||||
case Qt::MidButton:
|
||||
e->accept();
|
||||
emit centerReleased();
|
||||
if((e->x()>=0)&&(e->x()<geometry().width())&&
|
||||
(e->y()>=0)&&(e->y()<geometry().height())) {
|
||||
emit centerClicked();
|
||||
emit centerClicked(button_id,QPoint(e->x(),e->y()));
|
||||
}
|
||||
break;
|
||||
|
||||
case Qt::RightButton:
|
||||
e->accept();
|
||||
emit rightReleased();
|
||||
if((e->x()>=0)&&(e->x()<geometry().width())&&
|
||||
(e->y()>=0)&&(e->y()<geometry().height())) {
|
||||
emit rightClicked();
|
||||
emit rightClicked(button_id,QPoint(e->x(),e->y()));
|
||||
}
|
||||
break;
|
||||
case Qt::RightButton:
|
||||
e->accept();
|
||||
emit rightReleased();
|
||||
if((e->x()>=0)&&(e->x()<geometry().width())&&
|
||||
(e->y()>=0)&&(e->y()<geometry().height())) {
|
||||
emit rightClicked();
|
||||
emit rightClicked(button_id,QPoint(e->x(),e->y()));
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -392,6 +392,7 @@ void MainWidget::ClearTables()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -2479,6 +2479,7 @@ void MainWidget::SetActionMode(StartButton::Mode mode)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -237,6 +237,7 @@ void MainWidget::SetCaption()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -328,6 +328,7 @@ void MainWidget::RefreshList()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -2193,6 +2193,7 @@ void MainWidget::SaveGeometry()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -41,6 +41,8 @@
|
||||
#include <QPixmap>
|
||||
#include <QResizeEvent>
|
||||
#include <QCloseEvent>
|
||||
#include <qstylefactory.h>
|
||||
|
||||
#include <curl/curl.h>
|
||||
|
||||
#include <dbversion.h>
|
||||
@ -88,6 +90,10 @@ void SigHandler(int signo);
|
||||
MainWidget::MainWidget(QWidget *parent)
|
||||
:QWidget(parent)
|
||||
{
|
||||
QStringList styles=QStyleFactory::keys();
|
||||
for(int i=0;i<styles.size();i++) {
|
||||
printf("style: %s\n",(const char *)styles.at(i).toUtf8());
|
||||
}
|
||||
QString err_msg;
|
||||
|
||||
lib_resize=false;
|
||||
@ -1529,8 +1535,9 @@ void MainWidget::SendNotification(RDNotification::Action action,
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
|
||||
//
|
||||
// Load Translations
|
||||
//
|
||||
|
@ -919,6 +919,7 @@ void MainWidget::UnlockList()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -302,6 +302,7 @@ void MainWidget::resizeEvent(QResizeEvent *e)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -304,6 +304,7 @@ void MainWidget::quitMainWidget()
|
||||
|
||||
int gui_main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -378,6 +378,7 @@ void MainWidget::SetPosition()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -410,6 +410,7 @@ void MainWidget::SetCaption()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -351,6 +351,7 @@ void MainWidget::SetCurrentItem(int id)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -380,6 +380,7 @@ int main(int argc,char *argv[])
|
||||
//
|
||||
// Start GUI
|
||||
//
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
MainWidget *w=new MainWidget();
|
||||
a.setMainWidget(w);
|
||||
|
@ -628,6 +628,7 @@ void MainWidget::LogMessage(const QString &str)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -709,6 +709,7 @@ void MainWidget::SaveConfig()
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -751,6 +751,7 @@ void MainWidget::AddEventsItem(int line,bool state)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <qmessagebox.h>
|
||||
#include <qdatetime.h>
|
||||
|
||||
#include <rd.h>
|
||||
#include <rdcmd_switch.h>
|
||||
|
||||
#include <rdpopup.h>
|
||||
@ -54,6 +55,7 @@ QString WordWrap(const QString &str)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
RDCmdSwitch *cmd=
|
||||
|
@ -281,8 +281,8 @@ QString MainWidget::WrapText(QWidget *w,const QString &text)
|
||||
|
||||
int main(int argc,char *argv[])
|
||||
{
|
||||
QApplication::setStyle(RD_GUI_STYLE);
|
||||
QApplication a(argc,argv);
|
||||
QApplication::setStyle(new QWindowsStyle);
|
||||
|
||||
//
|
||||
// Load Translations
|
||||
|
@ -507,7 +507,8 @@ int main(int argc,char *argv[])
|
||||
#endif // WIN32
|
||||
}
|
||||
else {
|
||||
QApplication a(argc,argv,true);
|
||||
QApplication::setStyle(new QWindowsStyle);
|
||||
QApplication a(argc,argv);
|
||||
|
||||
//
|
||||
// Load Translations
|
||||
|
Loading…
x
Reference in New Issue
Block a user