Skip to content
This repository was archived by the owner on Mar 14, 2020. It is now read-only.

Commit 59274ac

Browse files
author
ETCG
committed
V5
1 parent 5ae8501 commit 59274ac

16 files changed

Lines changed: 1937 additions & 6 deletions

File tree

.DS_Store

8 KB
Binary file not shown.
19.7 KB
Binary file not shown.

BootableDriveMaker.app/Contents/Resources/COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
GNU LESSER GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
Everyone is permitted to copy and distribute verbatim copies
6+
of this license document, but changing it is not allowed.
7+
8+
9+
This version of the GNU Lesser General Public License incorporates
10+
the terms and conditions of version 3 of the GNU General Public
11+
License, supplemented by the additional permissions listed below.
12+
13+
0. Additional Definitions.
14+
15+
As used herein, "this License" refers to version 3 of the GNU Lesser
16+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
17+
General Public License.
18+
19+
"The Library" refers to a covered work governed by this License,
20+
other than an Application or a Combined Work as defined below.
21+
22+
An "Application" is any work that makes use of an interface provided
23+
by the Library, but which is not otherwise based on the Library.
24+
Defining a subclass of a class defined by the Library is deemed a mode
25+
of using an interface provided by the Library.
26+
27+
A "Combined Work" is a work produced by combining or linking an
28+
Application with the Library. The particular version of the Library
29+
with which the Combined Work was made is also called the "Linked
30+
Version".
31+
32+
The "Minimal Corresponding Source" for a Combined Work means the
33+
Corresponding Source for the Combined Work, excluding any source code
34+
for portions of the Combined Work that, considered in isolation, are
35+
based on the Application, and not on the Linked Version.
36+
37+
The "Corresponding Application Code" for a Combined Work means the
38+
object code and/or source code for the Application, including any data
39+
and utility programs needed for reproducing the Combined Work from the
40+
Application, but excluding the System Libraries of the Combined Work.
41+
42+
1. Exception to Section 3 of the GNU GPL.
43+
44+
You may convey a covered work under sections 3 and 4 of this License
45+
without being bound by section 3 of the GNU GPL.
46+
47+
2. Conveying Modified Versions.
48+
49+
If you modify a copy of the Library, and, in your modifications, a
50+
facility refers to a function or data to be supplied by an Application
51+
that uses the facility (other than as an argument passed when the
52+
facility is invoked), then you may convey a copy of the modified
53+
version:
54+
55+
a) under this License, provided that you make a good faith effort to
56+
ensure that, in the event an Application does not supply the
57+
function or data, the facility still operates, and performs
58+
whatever part of its purpose remains meaningful, or
59+
60+
b) under the GNU GPL, with none of the additional permissions of
61+
this License applicable to that copy.
62+
63+
3. Object Code Incorporating Material from Library Header Files.
64+
65+
The object code form of an Application may incorporate material from
66+
a header file that is part of the Library. You may convey such object
67+
code under terms of your choice, provided that, if the incorporated
68+
material is not limited to numerical parameters, data structure
69+
layouts and accessors, or small macros, inline functions and templates
70+
(ten or fewer lines in length), you do both of the following:
71+
72+
a) Give prominent notice with each copy of the object code that the
73+
Library is used in it and that the Library and its use are
74+
covered by this License.
75+
76+
b) Accompany the object code with a copy of the GNU GPL and this license
77+
document.
78+
79+
4. Combined Works.
80+
81+
You may convey a Combined Work under terms of your choice that,
82+
taken together, effectively do not restrict modification of the
83+
portions of the Library contained in the Combined Work and reverse
84+
engineering for debugging such modifications, if you also do each of
85+
the following:
86+
87+
a) Give prominent notice with each copy of the Combined Work that
88+
the Library is used in it and that the Library and its use are
89+
covered by this License.
90+
91+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
92+
document.
93+
94+
c) For a Combined Work that displays copyright notices during
95+
execution, include the copyright notice for the Library among
96+
these notices, as well as a reference directing the user to the
97+
copies of the GNU GPL and this license document.
98+
99+
d) Do one of the following:
100+
101+
0) Convey the Minimal Corresponding Source under the terms of this
102+
License, and the Corresponding Application Code in a form
103+
suitable for, and under terms that permit, the user to
104+
recombine or relink the Application with a modified version of
105+
the Linked Version to produce a modified Combined Work, in the
106+
manner specified by section 6 of the GNU GPL for conveying
107+
Corresponding Source.
108+
109+
1) Use a suitable shared library mechanism for linking with the
110+
Library. A suitable mechanism is one that (a) uses at run time
111+
a copy of the Library already present on the user's computer
112+
system, and (b) will operate properly with a modified version
113+
of the Library that is interface-compatible with the Linked
114+
Version.
115+
116+
e) Provide Installation Information, but only if you would otherwise
117+
be required to provide such information under section 6 of the
118+
GNU GPL, and only to the extent that such information is
119+
necessary to install and execute a modified version of the
120+
Combined Work produced by recombining or relinking the
121+
Application with a modified version of the Linked Version. (If
122+
you use option 4d0, the Installation Information must accompany
123+
the Minimal Corresponding Source and Corresponding Application
124+
Code. If you use option 4d1, you must provide the Installation
125+
Information in the manner specified by section 6 of the GNU GPL
126+
for conveying Corresponding Source.)
127+
128+
5. Combined Libraries.
129+
130+
You may place library facilities that are a work based on the
131+
Library side by side in a single library together with other library
132+
facilities that are not Applications and are not covered by this
133+
License, and convey such a combined library under terms of your
134+
choice, if you do both of the following:
135+
136+
a) Accompany the combined library with a copy of the same work based
137+
on the Library, uncombined with any other library facilities,
138+
conveyed under the terms of this License.
139+
140+
b) Give prominent notice with the combined library that part of it
141+
is a work based on the Library, and explaining where to find the
142+
accompanying uncombined form of the same work.
143+
144+
6. Revised Versions of the GNU Lesser General Public License.
145+
146+
The Free Software Foundation may publish revised and/or new versions
147+
of the GNU Lesser General Public License from time to time. Such new
148+
versions will be similar in spirit to the present version, but may
149+
differ in detail to address new problems or concerns.
150+
151+
Each version is given a distinguishing version number. If the
152+
Library as you received it specifies that a certain numbered version
153+
of the GNU Lesser General Public License "or any later version"
154+
applies to it, you have the option of following the terms and
155+
conditions either of that published version or of any later version
156+
published by the Free Software Foundation. If the Library as you
157+
received it does not specify a version number of the GNU Lesser
158+
General Public License, you may choose any version of the GNU Lesser
159+
General Public License ever published by the Free Software Foundation.
160+
161+
If the Library as you received it specifies that a proxy can decide
162+
whether future versions of the GNU Lesser General Public License shall
163+
apply, that proxy's public statement of acceptance of any version is
164+
permanent authorization for you to choose that version for the
165+
Library.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Bootable Drive Maker For Mac
2+
3+
# Description
4+
Using an intuitive simple-to-use GUI, Bootable Drive Maker provides a seamless way to create a bootable USB drive in Mac OS X.
5+
6+
# Copyright
7+
Copyright 2016 ETCG
8+
9+
This entire project (and the libraries it uses) are licensed under the LGPL. Please read COPYING and COPYING.LESSER for your rights.
10+
11+
# Usage
12+
1. Mount the included DMG (double click it).
13+
2. Either drag the application to your applications folder or move it to your Desktop or Documents folder.
14+
3. Open the application.
15+
4. Click the "Select An ISO" button.
16+
5. Navigate through your files until you reach your downloaded Operating System ISO.
17+
6. THIS STEP IS VERY IMPORTANT. Select the target drive in the dropdown list (the application selects the first attached external drive by default).
18+
7. Click "Start". To stop the process at any time, click "Cancel" (this button will show up after you click start).
19+
8. Wait for the drive to finish getting created (normally takes under 3 minutes, but changes with OS size).
20+
9. Click "Quit" (this button will show up after the drive is done being created).
21+
22+
Congrats! Your drive should have been created.
23+
24+
If you got an error message, please read the output, and if you can't correct the problem on your own, send me a message with the contact info below.
25+
26+
# More Projects By ETCG
27+
To see more of my projects, go to:
28+
29+
My Website: http://www.etcg.pw
30+
31+
My Github Account: https://github.com/etcg
32+
33+
# Contact
34+
For any comments, questions, or concerns:
35+
36+
Email: contact@etcg.pw
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
Copyright 2016 ETCG
3+
4+
This program is free software: you can redistribute it and/or modify
5+
it under the terms of the GNU Lesser General Public License as published by
6+
the Free Software Foundation, either version 3 of the License, or
7+
(at your option) any later version.
8+
9+
This program is distributed in the hope that it will be useful,
10+
but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
GNU Lesser General Public License for more details.
13+
14+
You should have received a copy of the GNU Lesser General Public License
15+
along with this program. If not, see <http://www.gnu.org/licenses/>.

source/.DS_Store

8 KB
Binary file not shown.

source/mainwindow.cpp

Lines changed: 95 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
2525
QStringList itemsToAdd;
2626
itemsToAdd << "1. Ubuntu 16.04 (64-Bit)";
2727
itemsToAdd << "2. Debian 8.6.0 (64-Bit, Internet Installer)";
28-
//itemsToAdd << "3. Ubuntu 16.04 (32-Bit)";
29-
//itemsToAdd << "4. Debian 8.6.0 (32-Bit, Internet Installer)";
28+
itemsToAdd << "3. Ubuntu 16.04 (32-Bit)";
29+
itemsToAdd << "4. Debian 8.6.0 (32-Bit, Internet Installer)";
3030
ui->osSelector->addItems(itemsToAdd);
3131
}
3232
MainWindow::~MainWindow() {
@@ -59,7 +59,8 @@ void MainWindow::on_openISO_clicked() {
5959
QFile file("username.txt");
6060
file.open(QIODevice::ReadOnly);
6161
QTextStream in(&file);
62-
osPath = QFileDialog::getOpenFileName(this,tr("Select An Operating System File"),"/Users/" + in.readLine() + "/Downloads","ISO (*.iso)");
62+
QString filePath = QFileDialog::getOpenFileName(this,tr("Select An Operating System File"),"/Users/" + in.readLine() + "/Downloads","ISO (*.iso)");
63+
if (filePath != "") osPath = filePath;
6364
ui->pathReadOut->setText(osPath);
6465
}
6566
void MainWindow::on_openIMG_clicked() {
@@ -69,7 +70,8 @@ void MainWindow::on_openIMG_clicked() {
6970
QFile file("username.txt");
7071
file.open(QIODevice::ReadOnly);
7172
QTextStream in(&file);
72-
osPath = QFileDialog::getOpenFileName(this,tr("Select An Operating System File"),"/Users/" + in.readLine() + "/Downloads","IMG (*.img)");
73+
QString filePath = QFileDialog::getOpenFileName(this,tr("Select An Operating System File"),"/Users/" + in.readLine() + "/Downloads","IMG (*.img)");
74+
if (filePath != "") osPath = filePath;
7375
ui->pathReadOut->setText(osPath);
7476
}
7577
void MainWindow::on_startStop_clicked() {
@@ -201,8 +203,97 @@ void MainWindow::on_downloadOS_clicked() {
201203
if (!QDesktopServices::openUrl(QUrl(QString("http://gensho.acc.umu.se/debian-cd/8.6.0/amd64/iso-cd/debian-8.6.0-amd64-netinst.iso"))))
202204
ui->plainTextEdit->appendPlainText("Failed To Open URL.");
203205
break;
206+
case 3:
207+
if (!QDesktopServices::openUrl(QUrl(QString("http://mirrors.mit.edu/ubuntu-releases/16.04/ubuntu-16.04-desktop-i386.iso"))))
208+
ui->plainTextEdit->appendPlainText("Failed To Open URL.");
209+
break;
210+
case 4:
211+
if (!QDesktopServices::openUrl(QUrl(QString("http://gensho.acc.umu.se/debian-cd/8.6.0/i386/iso-cd/debian-8.6.0-i386-netinst.iso"))))
212+
ui->plainTextEdit->appendPlainText("Failed To Open URL.");
213+
break;
204214
}
205215
}
206216
void MainWindow::on_allowNonExtern_clicked() {
207217
on_refreshDevs_clicked();
208218
}
219+
void MainWindow::on_actionSelectISO_triggered() { if(!hasStarted) on_openISO_clicked(); }
220+
void MainWindow::on_actionSelectIMG_triggered() { if(!hasStarted) on_openIMG_clicked(); }
221+
void MainWindow::on_actionContact_triggered() {
222+
QMessageBox::about(this,"Contact","Email: contact@etcg.pw\nWebsite: http://www.etcg.pw");
223+
}
224+
void MainWindow::on_actionCopyright_triggered() {
225+
QFile copyNotice("../Resources/copyrightNotice.txt"),
226+
copy ("../Resources/COPYING"),
227+
copyLesser("../Resources/COPYING.LESSER");
228+
if (copyNotice.open(QIODevice::ReadOnly) && copy.open(QIODevice::ReadOnly)
229+
&& copyLesser.open(QIODevice::ReadOnly)) {
230+
QTextStream inCopyNotice(&copyNotice), inCopy(&copy), inCopyLesser(&copyLesser);
231+
QDialog *dialog = new QDialog;
232+
QLabel *lb1 = new QLabel, *lb2 = new QLabel, *lb3 = new QLabel;
233+
lb1->setText("Copyright Notice:");
234+
lb2->setText("GPL License:");
235+
lb3->setText("LGPL License:");
236+
QList<QPlainTextEdit*> textHolders;
237+
for (int i = 0; i < 3; ++i) {
238+
QString textToAdd = "";
239+
switch (i) {
240+
case 0:
241+
textToAdd = inCopyNotice.readAll();
242+
break;
243+
case 1:
244+
textToAdd = inCopy.readAll();
245+
break;
246+
case 2:
247+
textToAdd = inCopyLesser.readAll();
248+
break;
249+
}
250+
textHolders.append(new QPlainTextEdit);
251+
textHolders.at(i)->appendPlainText(textToAdd);
252+
textHolders.at(i)->setReadOnly(true);
253+
QTextCursor cursor = textHolders.at(i)->textCursor();
254+
cursor.movePosition(QTextCursor::Start);
255+
textHolders.at(i)->setTextCursor(cursor);
256+
}
257+
QVBoxLayout *v1 = new QVBoxLayout, *v2 = new QVBoxLayout, *v3 = new QVBoxLayout;
258+
v1->addWidget(lb1);
259+
v1->addWidget(textHolders.at(0));
260+
v2->addWidget(lb2);
261+
v2->addWidget(textHolders.at(1));
262+
v3->addWidget(lb3);
263+
v3->addWidget(textHolders.at(2));
264+
QHBoxLayout *hbox = new QHBoxLayout;
265+
hbox->addLayout(v1);
266+
hbox->addLayout(v2);
267+
hbox->addLayout(v3);
268+
dialog->setLayout(hbox);
269+
dialog->setFixedSize(1100,600);
270+
dialog->setWindowTitle("Copyright");
271+
dialog->exec();
272+
delete dialog;
273+
}
274+
else QMessageBox::about(this,"Failed To Open","Failed To Open One Or More Copyright Files.");
275+
}
276+
void MainWindow::on_actionREADME_triggered() {
277+
QFile README("../Resources/README.md");
278+
if (README.open(QIODevice::ReadOnly)) {
279+
QTextStream in(&README);
280+
//Make dialog
281+
QDialog dialog;
282+
//Make textHolder for dialog
283+
QPlainTextEdit textHolder;
284+
textHolder.appendPlainText(in.readAll());
285+
textHolder.setReadOnly(true);
286+
QTextCursor cursor = textHolder.textCursor();
287+
cursor.movePosition(QTextCursor::Start);
288+
textHolder.setTextCursor(cursor);
289+
//Make textHolder take up all of dialog
290+
QVBoxLayout layout;
291+
layout.addWidget(&textHolder);
292+
//Setup dialog
293+
dialog.setLayout(&layout);
294+
dialog.setFixedSize(500,500);
295+
dialog.setWindowTitle("README");
296+
dialog.exec();
297+
}
298+
else QMessageBox::about(this,"Failed To Open README","Failed To Open README.");
299+
}

source/mainwindow.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ private slots:
3333
void on_openIMG_clicked();
3434
void on_downloadOS_clicked();
3535
void on_allowNonExtern_clicked();
36+
void on_actionSelectISO_triggered();
37+
void on_actionSelectIMG_triggered();
38+
void on_actionContact_triggered();
39+
void on_actionCopyright_triggered();
40+
void on_actionREADME_triggered();
3641
};
3742

3843
#endif // MAINWINDOW_H

0 commit comments

Comments
 (0)