mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-28 22:52:37 +02:00
2018-11-09 Fred Gleason <fredg@paravelsystems.com>
* Removed superceded 'StatusTip' class from rdmonitor(1).
This commit is contained in:
parent
286d4dfe14
commit
85a7704854
@ -17997,3 +17997,5 @@
|
|||||||
* Restored the status display bubble on rdmonitor(1).
|
* Restored the status display bubble on rdmonitor(1).
|
||||||
2018-11-09 Fred Gleason <fredg@paravelsystems.com>
|
2018-11-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Tweaked layout and appearance of the status bubble in rdmonitor(1).
|
* Tweaked layout and appearance of the status bubble in rdmonitor(1).
|
||||||
|
2018-11-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Removed superceded 'StatusTip' class from rdmonitor(1).
|
||||||
|
@ -40,19 +40,19 @@
|
|||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<source>Status: OK</source>
|
<source>Status: OK</source>
|
||||||
<translation>Stav: OK</translation>
|
<translation type="obsolete">Stav: OK</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Audio Store: FAILED</source>
|
<source>Audio Store: FAILED</source>
|
||||||
<translation>Uložení zvuku: NEPODAŘILO SE</translation>
|
<translation type="obsolete">Uložení zvuku: NEPODAŘILO SE</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Database: CONNECTION FAILED</source>
|
<source>Database: CONNECTION FAILED</source>
|
||||||
<translation>Databáze: SPOJENÍ SE NEZDAŘILO</translation>
|
<translation type="obsolete">Databáze: SPOJENÍ SE NEZDAŘILO</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
<source>Database: SCHEMA SKEWED</source>
|
||||||
<translation>Databáze: SCHÉMA ZKRESLENO</translation>
|
<translation type="obsolete">Databáze: SCHÉMA ZKRESLENO</translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -36,23 +36,4 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>QObject</name>
|
|
||||||
<message>
|
|
||||||
<source>Status: OK</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Audio Store: FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: CONNECTION FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -36,23 +36,4 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>QObject</name>
|
|
||||||
<message>
|
|
||||||
<source>Status: OK</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Audio Store: FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: CONNECTION FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -36,23 +36,4 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>QObject</name>
|
|
||||||
<message>
|
|
||||||
<source>Status: OK</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Audio Store: FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: CONNECTION FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -36,23 +36,4 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>QObject</name>
|
|
||||||
<message>
|
|
||||||
<source>Status: OK</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Audio Store: FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: CONNECTION FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -36,23 +36,4 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>QObject</name>
|
|
||||||
<message>
|
|
||||||
<source>Status: OK</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Audio Store: FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: CONNECTION FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -36,23 +36,4 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>QObject</name>
|
|
||||||
<message>
|
|
||||||
<source>Status: OK</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Audio Store: FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: CONNECTION FAILED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<source>Database: SCHEMA SKEWED</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
</TS>
|
</TS>
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
// status_tip.cpp
|
|
||||||
//
|
|
||||||
// Custom ToolTip for RDMonitor's Status Bubble
|
|
||||||
//
|
|
||||||
// (C) Copyright 2012-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
|
|
||||||
// published by the Free Software Foundation.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public
|
|
||||||
// License along with this program; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <qobject.h>
|
|
||||||
|
|
||||||
#include <dbversion.h>
|
|
||||||
|
|
||||||
#include <status_tip.h>
|
|
||||||
|
|
||||||
StatusTip::StatusTip(QWidget *widget,QToolTipGroup *group)
|
|
||||||
: QToolTip(widget,group)
|
|
||||||
{
|
|
||||||
setStatus(QRect(),true,0,true);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void StatusTip::setStatus(const QRect &rect,bool db_status,int schema,
|
|
||||||
bool snd_status)
|
|
||||||
{
|
|
||||||
tip_rect=rect;
|
|
||||||
if(db_status&&(schema==RD_VERSION_DATABASE)&&snd_status) {
|
|
||||||
tip_text=QObject::tr("Status: OK");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
tip_text="";
|
|
||||||
if(!db_status) {
|
|
||||||
tip_text=QObject::tr("Database: CONNECTION FAILED");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
if(schema!=RD_VERSION_DATABASE) {
|
|
||||||
tip_text=QObject::tr("Database: SCHEMA SKEWED");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if(!snd_status) {
|
|
||||||
if(!tip_text.isEmpty()) {
|
|
||||||
tip_text+="\n";
|
|
||||||
}
|
|
||||||
tip_text+=QObject::tr("Audio Store: FAILED");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void StatusTip::maybeTip(const QPoint &pt)
|
|
||||||
{
|
|
||||||
tip(tip_rect,tip_text);
|
|
||||||
}
|
|
@ -1,40 +0,0 @@
|
|||||||
// status_tip.h
|
|
||||||
//
|
|
||||||
// Custom ToolTip for RDMonitor's Status Bubble
|
|
||||||
//
|
|
||||||
// (C) Copyright 2012-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
|
|
||||||
// published by the Free Software Foundation.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful,
|
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
// GNU General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public
|
|
||||||
// License along with this program; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef STATUS_TIP_H
|
|
||||||
#define STATUS_TIP_H
|
|
||||||
|
|
||||||
#include <qtooltip.h>
|
|
||||||
|
|
||||||
class StatusTip : public QToolTip
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
StatusTip(QWidget *widget,QToolTipGroup *group=0);
|
|
||||||
void setStatus(const QRect &rect,bool db_status,int schema,bool snd_status);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
void maybeTip(const QPoint &pt);
|
|
||||||
|
|
||||||
private:
|
|
||||||
QString tip_text;
|
|
||||||
QRect tip_rect;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // STATUS_TIP_H
|
|
Loading…
x
Reference in New Issue
Block a user