Skip to content

Commit

Permalink
Start of New SoftProjector repository. Copied filed from scr_from_sf_…
Browse files Browse the repository at this point in the history
…net repositiry.
  • Loading branch information
vladozar committed Jan 22, 2017
1 parent 3c356ba commit 259c24d
Show file tree
Hide file tree
Showing 372 changed files with 58,614 additions and 0 deletions.
670 changes: 670 additions & 0 deletions DisplayArea.qml

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions aboutdialog.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/***************************************************************************
//
// softProjector - an open source media projection software
// Copyright (C) 2014 Vladislav Kobzar, Matvey Adzhigirey and Ilya Spivakov
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version 3 of the License.
//
// 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, see <http://www.gnu.org/licenses/>.
//
***************************************************************************/

#include "aboutdialog.h"
#include "ui_aboutdialog.h"


AboutDialog::AboutDialog(QWidget *parent, QString version_string) :
QDialog(parent),
ui(new Ui::AboutDialog)
{
ui->setupUi(this);
softProjector = (SoftProjector*)parent;
ui->version_label->setText(version_string);
}

AboutDialog::~AboutDialog()
{
delete ui;
}

void AboutDialog::changeEvent(QEvent *e)
{
QDialog::changeEvent(e);
switch (e->type()) {
case QEvent::LanguageChange:
ui->retranslateUi(this);
break;
default:
break;
}
}

void AboutDialog::on_pushButton_clicked()
{
close();
}
48 changes: 48 additions & 0 deletions aboutdialog.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/***************************************************************************
//
// softProjector - an open source media projection software
// Copyright (C) 2014 Vladislav Kobzar, Matvey Adzhigirey and Ilya Spivakov
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version 3 of the License.
//
// 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, see <http://www.gnu.org/licenses/>.
//
***************************************************************************/

#ifndef ABOUTDIALOG_H
#define ABOUTDIALOG_H

#include <QDialog>
#include "softprojector.h"

namespace Ui {
class AboutDialog;
}

class AboutDialog : public QDialog {
Q_OBJECT
Q_DISABLE_COPY(AboutDialog)
public:
explicit AboutDialog(QWidget *parent, QString version_string);
virtual ~AboutDialog();

protected:
virtual void changeEvent(QEvent *e);

private:
Ui::AboutDialog *ui;
SoftProjector *softProjector;

private slots:
void on_pushButton_clicked();
};

#endif // ABOUTDIALOG_H
Loading

0 comments on commit 259c24d

Please sign in to comment.