mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-11 07:05:48 +01:00
Initial import of CVS-v2_8_branch
This commit is contained in:
83
rdmonitor/rdmonitor.h
Normal file
83
rdmonitor/rdmonitor.h
Normal file
@@ -0,0 +1,83 @@
|
||||
// rdmonitor.h
|
||||
//
|
||||
// System Monitor Applet for Rivendell
|
||||
//
|
||||
// (C) Copyright 2012 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: rdmonitor.h,v 1.1.2.6 2013/11/08 03:57:15 cvs Exp $
|
||||
//
|
||||
// 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 RDMONITOR_H
|
||||
#define RDMONITOR_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include <qwidget.h>
|
||||
#include <qsize.h>
|
||||
#include <qsizepolicy.h>
|
||||
#include <qlabel.h>
|
||||
#include <qtimer.h>
|
||||
#include <qdesktopwidget.h>
|
||||
#include <qfontmetrics.h>
|
||||
|
||||
#include <rdconfig.h>
|
||||
#include <rdmonitor_config.h>
|
||||
|
||||
#include "positiondialog.h"
|
||||
#include "status_tip.h"
|
||||
|
||||
#define RDSELECT_WIDTH 400
|
||||
#define RDSELECT_HEIGHT 300
|
||||
|
||||
class MainWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
MainWidget(QWidget *parent=0,const char *name=0);
|
||||
QSizePolicy sizePolicy() const;
|
||||
|
||||
private slots:
|
||||
void validate();
|
||||
void quitMainWidget();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *e);
|
||||
void mouseDoubleClickEvent(QMouseEvent *e);
|
||||
void paintEvent(QPaintEvent *e);
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
void SetSummaryState(bool state);
|
||||
void SetPosition();
|
||||
QLabel *mon_name_label;
|
||||
QLabel *mon_green_label;
|
||||
QLabel *mon_red_label;
|
||||
QTimer *mon_validate_timer;
|
||||
QFontMetrics *mon_metrics;
|
||||
PositionDialog *mon_position_dialog;
|
||||
int mon_dialog_x;
|
||||
int mon_dialog_y;
|
||||
int mon_rdselect_x;
|
||||
int mon_rdselect_y;
|
||||
StatusTip *mon_tooltip;
|
||||
QDesktopWidget *mon_desktop_widget;
|
||||
RDMonitorConfig *mon_config;
|
||||
RDConfig *mon_rdconfig;
|
||||
};
|
||||
|
||||
|
||||
#endif // RDMONITOR_H
|
||||
Reference in New Issue
Block a user