mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2018-08-15 Fred Gleason <fredg@paravelsystems.com>
* Fixed style inconsistencies in dialogs within rdgpimon(1). * Fixed style inconsistencies in dialogs within rdpopup(1).
This commit is contained in:
@@ -17435,3 +17435,6 @@
|
||||
2018-08-15 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in rddbmgr(8) that caused unreliable calculation of
|
||||
the correct schema version from a package version string.
|
||||
2018-08-15 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed style inconsistencies in dialogs within rdgpimon(1).
|
||||
* Fixed style inconsistencies in dialogs within rdpopup(1).
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Qt-based application for testing general purpose input (GPI) devices.
|
||||
//
|
||||
// (C) Copyright 2002-2007,2016 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
|
||||
@@ -18,11 +18,7 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
|
||||
#include <gpi_label.h>
|
||||
//Added by qt3to4:
|
||||
#include <QLabel>
|
||||
|
||||
|
||||
GpiLabel::GpiLabel(QWidget *parent)
|
||||
: QWidget(parent)
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Qt-based application for testing general purpose input (GPI) devices.
|
||||
//
|
||||
// (C) Copyright 2002-2005,2016 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
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Qt-based application for testing General Purpose Input (GPI) devices.
|
||||
//
|
||||
// (C) Copyright 2002-2014,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
|
||||
@@ -32,9 +32,6 @@
|
||||
#include <qlineedit.h>
|
||||
#include <qtextcodec.h>
|
||||
#include <qtranslator.h>
|
||||
//Added by qt3to4:
|
||||
#include <QLabel>
|
||||
#include <QPixmap>
|
||||
|
||||
#include <rdapplication.h>
|
||||
#include <rddb.h>
|
||||
@@ -103,7 +100,7 @@ MainWidget::MainWidget(QWidget *parent)
|
||||
// Create And Set Icon
|
||||
//
|
||||
gpi_rivendell_map=new QPixmap(rivendell_22x22_xpm);
|
||||
setIcon(*gpi_rivendell_map);
|
||||
setWindowIcon(*gpi_rivendell_map);
|
||||
|
||||
//
|
||||
// RIPC Connection
|
||||
@@ -313,7 +310,7 @@ void MainWidget::userData()
|
||||
QString str;
|
||||
|
||||
str=QString("RDGpiMon")+" v"+VERSION+" - "+tr("User")+":";
|
||||
setCaption(str+" "+rda->ripc()->user());
|
||||
setWindowTitle(str+" "+rda->ripc()->user());
|
||||
}
|
||||
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A Qt-based application for testing general purpose input (GPI) devices.
|
||||
//
|
||||
// (C) Copyright 2002-2005,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
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A utility for displaying messages on the desktop
|
||||
//
|
||||
// (C) Copyright 2009,2016-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2009-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
|
||||
@@ -32,6 +32,11 @@
|
||||
|
||||
#include <rdpopup.h>
|
||||
|
||||
//
|
||||
// Icons
|
||||
//
|
||||
#include "../icons/rivendell-22x22.xpm"
|
||||
|
||||
QString WordWrap(const QString &str)
|
||||
{
|
||||
QString ret;
|
||||
@@ -85,34 +90,36 @@ int main(int argc,char *argv[])
|
||||
QDateTime dt=QDateTime(QDate::currentDate(),QTime::currentTime());
|
||||
QString msg=WordWrap(argv[argc-1]);
|
||||
QMessageBox *mb;
|
||||
|
||||
switch(prio) {
|
||||
case 1:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Information,
|
||||
QMessageBox::Ok,QMessageBox::
|
||||
NoButton,QMessageBox::NoButton);
|
||||
break;
|
||||
case 1:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Information,
|
||||
QMessageBox::Ok,QMessageBox::
|
||||
NoButton,QMessageBox::NoButton);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Warning,QMessageBox::Ok,
|
||||
QMessageBox::NoButton,QMessageBox::NoButton);
|
||||
break;
|
||||
case 2:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Warning,QMessageBox::Ok,
|
||||
QMessageBox::NoButton,QMessageBox::NoButton);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Critical,QMessageBox::Ok,
|
||||
QMessageBox::NoButton,QMessageBox::NoButton);
|
||||
break;
|
||||
case 3:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Critical,QMessageBox::Ok,
|
||||
QMessageBox::NoButton,QMessageBox::NoButton);
|
||||
break;
|
||||
|
||||
default:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Information,
|
||||
QMessageBox::Ok,QMessageBox::NoButton,
|
||||
QMessageBox::NoButton);
|
||||
break;
|
||||
default:
|
||||
mb=new QMessageBox(dt.toString("MM/dd @ hh:mm"),msg,
|
||||
QMessageBox::Information,
|
||||
QMessageBox::Ok,QMessageBox::NoButton,
|
||||
QMessageBox::NoButton);
|
||||
break;
|
||||
}
|
||||
QFont font("hevetica",16,QFont::Bold);
|
||||
mb->setWindowIcon(QPixmap(rivendell_22x22_xpm));
|
||||
QFont font("helvetica",16,QFont::Bold);
|
||||
font.setPixelSize(16);
|
||||
mb->setFont(font);
|
||||
mb->exec();
|
||||
|
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// A utility for displaying messages on the desktop
|
||||
//
|
||||
// (C) Copyright 2009,2016 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2009-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
|
||||
|
Reference in New Issue
Block a user