mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2019-10-01 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDDialog' class. * Added an 'RDWidget' class. * Refactored rdadmin(1) to use 'RDDialog' and 'RDWidget' base classes.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Add a Rivendell Report
|
||||
//
|
||||
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2002-2019 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,7 +18,6 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#include <qdialog.h>
|
||||
#include <qstring.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <q3listbox.h>
|
||||
@@ -41,7 +40,7 @@
|
||||
#include "edit_svc_perms.h"
|
||||
|
||||
AddReport::AddReport(QString *rptname,QWidget *parent)
|
||||
: QDialog(parent)
|
||||
: RDDialog(parent)
|
||||
{
|
||||
setModal(true);
|
||||
|
||||
@@ -56,14 +55,6 @@ AddReport::AddReport(QString *rptname,QWidget *parent)
|
||||
setWindowTitle("RDAdmin - "+tr("Add Report"));
|
||||
add_name=rptname;
|
||||
|
||||
//
|
||||
// Create Fonts
|
||||
//
|
||||
QFont font=QFont("Helvetica",12,QFont::Bold);
|
||||
font.setPixelSize(12);
|
||||
QFont section_font=QFont("Helvetica",14,QFont::Bold);
|
||||
section_font.setPixelSize(14);
|
||||
|
||||
//
|
||||
// Text Validator
|
||||
//
|
||||
@@ -78,7 +69,7 @@ AddReport::AddReport(QString *rptname,QWidget *parent)
|
||||
add_name_edit->setValidator(validator);
|
||||
QLabel *label=new QLabel(add_name_edit,tr("&Report Name:"),this);
|
||||
label->setGeometry(10,10,155,19);
|
||||
label->setFont(font);
|
||||
label->setFont(labelFont());
|
||||
label->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
|
||||
|
||||
//
|
||||
@@ -87,7 +78,7 @@ AddReport::AddReport(QString *rptname,QWidget *parent)
|
||||
QPushButton *button=new QPushButton(this);
|
||||
button->setGeometry(sizeHint().width()-180,sizeHint().height()-60,80,50);
|
||||
button->setDefault(true);
|
||||
button->setFont(font);
|
||||
button->setFont(buttonFont());
|
||||
button->setText(tr("&OK"));
|
||||
connect(button,SIGNAL(clicked()),this,SLOT(okData()));
|
||||
|
||||
@@ -97,7 +88,7 @@ AddReport::AddReport(QString *rptname,QWidget *parent)
|
||||
button=new QPushButton(this);
|
||||
button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
|
||||
80,50);
|
||||
button->setFont(font);
|
||||
button->setFont(buttonFont());
|
||||
button->setText(tr("&Cancel"));
|
||||
connect(button,SIGNAL(clicked()),this,SLOT(cancelData()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user