forked from SoftProjector/softprojector
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start of New SoftProjector repository. Copied filed from scr_from_sf_…
…net repositiry.
- Loading branch information
Showing
372 changed files
with
58,614 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.