~format-junkie-team/format-junkie/format_junkie_bzr

« back to all changes in this revision

Viewing changes to error_logs.cpp

  • Committer: Alex Solanos
  • Date: 2012-08-30 20:14:08 UTC
  • Revision ID: alexsol.developer@gmail.com-20120830201408-8qc9e6awjicjahn0
First testing bzr push for format junkie

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*Format Junkie
 
2
A tool for converting your media files to
 
3
all the popular formats
 
4
Copyright © 2012 by Alex Solanos and Leon Vytanos
 
5
 
 
6
This program is free software; you can redistribute it and/or
 
7
modify it under the terms of the GNU General Public License
 
8
as published by the Free Software Foundation; either version 3
 
9
of the License, or (at your option) any later version.
 
10
 
 
11
This program is distributed in the hope that it will be useful,
 
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
GNU General Public License for more details.
 
15
 
 
16
You should have received a copy of the GNU General Public License
 
17
along with this program; if not, write to the Free Software
 
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.*/
 
19
 
 
20
#include "error_logs.h"
 
21
#include "ui_error_logs.h"
 
22
 
 
23
error_logs::error_logs(QString all_errors, QWidget *parent):
 
24
    QDialog(parent),
 
25
    ui(new Ui::error_logs)
 
26
{
 
27
    ui->setupUi(this);
 
28
    ui->log_viewer->setText(all_errors);
 
29
    optionsGroupBox = new QGroupBox();
 
30
    optionsGroupBoxLayout = new QGridLayout;
 
31
 
 
32
    optionsGroupBoxLayout->addWidget(ui->log_viewer);
 
33
    optionsGroupBox->setLayout(optionsGroupBoxLayout);
 
34
    buttonsLayout = new QHBoxLayout;
 
35
    buttonsLayout->addStretch();
 
36
    buttonsLayout->addWidget(ui->close);
 
37
 
 
38
    mainLayout = new QVBoxLayout;
 
39
    mainLayout->addWidget(optionsGroupBox);
 
40
    mainLayout->addLayout(buttonsLayout);
 
41
    setLayout(mainLayout);
 
42
}
 
43
 
 
44
error_logs::~error_logs()
 
45
{
 
46
    delete ui;
 
47
}
 
48
 
 
49
void error_logs::on_close_clicked()
 
50
{
 
51
    this->close();
 
52
}
 
53