mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-26 07:13:50 +01:00
2016-05-24 Fred Gleason <fredg@paravelsystems.com>
* Removed all CVS tags. * Removed 'const char *name' parameter from all QObject contructors.
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
//
|
||||
// Edit an automatic backup configuration.
|
||||
//
|
||||
// (C) Copyright 2002-2004 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: edit_backup.cpp,v 1.10 2010/07/29 19:32:34 cvs Exp $
|
||||
// (C) Copyright 2002-2004,2016 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
|
||||
@@ -31,9 +29,8 @@
|
||||
|
||||
#include <edit_backup.h>
|
||||
|
||||
|
||||
EditBackup::EditBackup(RDStation *station,QWidget *parent,const char *name)
|
||||
: QDialog(parent,name,true)
|
||||
EditBackup::EditBackup(RDStation *station,QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
//
|
||||
// Fix the Window Size
|
||||
@@ -54,7 +51,7 @@ EditBackup::EditBackup(RDStation *station,QWidget *parent,const char *name)
|
||||
//
|
||||
// Text Validator
|
||||
//
|
||||
RDTextValidator *validator=new RDTextValidator(this,"validator");
|
||||
RDTextValidator *validator=new RDTextValidator(this);
|
||||
|
||||
//
|
||||
// Dialog Name
|
||||
@@ -65,16 +62,16 @@ EditBackup::EditBackup(RDStation *station,QWidget *parent,const char *name)
|
||||
//
|
||||
// Backup Life
|
||||
//
|
||||
edit_life_box=new QSpinBox(this,"edit_life_box");
|
||||
edit_life_box=new QSpinBox(this);
|
||||
edit_life_box->setGeometry(155,10,40,19);
|
||||
edit_life_box->setMinValue(0);
|
||||
edit_life_box->setMaxValue(30);
|
||||
QLabel *edit_life_box_label=new QLabel(edit_life_box,tr("Keep Backups For:"),
|
||||
this,"edit_life_box_label");
|
||||
QLabel *edit_life_box_label=
|
||||
new QLabel(edit_life_box,tr("Keep Backups For:"),this);
|
||||
edit_life_box_label->setGeometry(10,10,140,19);
|
||||
edit_life_box_label->setFont(small_font);
|
||||
edit_life_box_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
QLabel *edit_life_box_unit=new QLabel(tr("days"),this,"edit_life_box_unit");
|
||||
QLabel *edit_life_box_unit=new QLabel(tr("days"),this);
|
||||
edit_life_box_unit->setGeometry(200,10,120,19);
|
||||
edit_life_box_unit->setFont(small_font);
|
||||
edit_life_box_unit->setAlignment(AlignLeft|AlignVCenter|ShowPrefix);
|
||||
@@ -84,11 +81,10 @@ EditBackup::EditBackup(RDStation *station,QWidget *parent,const char *name)
|
||||
//
|
||||
// Backup Directory
|
||||
//
|
||||
edit_path_edit=new QLineEdit(this,"edit_life_box");
|
||||
edit_path_edit=new QLineEdit(this);
|
||||
edit_path_edit->setGeometry(155,35,sizeHint().width()-165,19);
|
||||
edit_path_edit->setValidator(validator);
|
||||
edit_path_label=new QLabel(edit_life_box,tr("Backup Directory:"),
|
||||
this,"edit_path_label");
|
||||
edit_path_label=new QLabel(edit_life_box,tr("Backup Directory:"),this);
|
||||
edit_path_label->setGeometry(10,35,140,19);
|
||||
edit_path_label->setFont(small_font);
|
||||
edit_path_label->setAlignment(AlignRight|AlignVCenter|ShowPrefix);
|
||||
@@ -96,7 +92,7 @@ EditBackup::EditBackup(RDStation *station,QWidget *parent,const char *name)
|
||||
//
|
||||
// Ok Button
|
||||
//
|
||||
QPushButton *ok_button=new QPushButton(this,"ok_button");
|
||||
QPushButton *ok_button=new QPushButton(this);
|
||||
ok_button->setGeometry(sizeHint().width()-180,sizeHint().height()-60,80,50);
|
||||
ok_button->setDefault(true);
|
||||
ok_button->setFont(small_font);
|
||||
@@ -106,7 +102,7 @@ EditBackup::EditBackup(RDStation *station,QWidget *parent,const char *name)
|
||||
//
|
||||
// Cancel Button
|
||||
//
|
||||
QPushButton *cancel_button=new QPushButton(this,"cancel_button");
|
||||
QPushButton *cancel_button=new QPushButton(this);
|
||||
cancel_button->setGeometry(sizeHint().width()-90,sizeHint().height()-60,
|
||||
80,50);
|
||||
cancel_button->setFont(small_font);
|
||||
|
||||
Reference in New Issue
Block a user