diff --git a/.gitignore b/.gitignore index 13ae8d3b6..a82f7f074 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /zerotier-* +/ZeroTierUI/*.user /Makefile *.o .DS_Store diff --git a/ZeroTierUI/ZeroTierUI.pro b/ZeroTierUI/ZeroTierUI.pro new file mode 100644 index 000000000..ce1af63f1 --- /dev/null +++ b/ZeroTierUI/ZeroTierUI.pro @@ -0,0 +1,26 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2013-11-13T15:03:09 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = ZeroTierUI +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp \ + network.cpp + +HEADERS += mainwindow.h \ + network.h + +FORMS += mainwindow.ui \ + network.ui + +RESOURCES += \ + resources.qrc diff --git a/ZeroTierUI/main.cpp b/ZeroTierUI/main.cpp new file mode 100644 index 000000000..a080bdd29 --- /dev/null +++ b/ZeroTierUI/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp new file mode 100644 index 000000000..3137cb14a --- /dev/null +++ b/ZeroTierUI/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/ZeroTierUI/mainwindow.h b/ZeroTierUI/mainwindow.h new file mode 100644 index 000000000..8c7efd741 --- /dev/null +++ b/ZeroTierUI/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/ZeroTierUI/mainwindow.ui b/ZeroTierUI/mainwindow.ui new file mode 100644 index 000000000..60fa1f82e --- /dev/null +++ b/ZeroTierUI/mainwindow.ui @@ -0,0 +1,81 @@ + + + MainWindow + + + + 0 + 0 + 668 + 300 + + + + ZeroTier One + + + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + 0 + 0 + 668 + 22 + + + + + File + + + + + + + + Qt::LeftToRight + + + Help + + + + + + + + + Join Network + + + + + Exit + + + + + About + + + + + + + diff --git a/ZeroTierUI/network.cpp b/ZeroTierUI/network.cpp new file mode 100644 index 000000000..fed644db1 --- /dev/null +++ b/ZeroTierUI/network.cpp @@ -0,0 +1,14 @@ +#include "network.h" +#include "ui_network.h" + +Network::Network(QWidget *parent) : + QScrollArea(parent), + ui(new Ui::Network) +{ + ui->setupUi(this); +} + +Network::~Network() +{ + delete ui; +} diff --git a/ZeroTierUI/network.h b/ZeroTierUI/network.h new file mode 100644 index 000000000..9c7273a10 --- /dev/null +++ b/ZeroTierUI/network.h @@ -0,0 +1,22 @@ +#ifndef NETWORK_H +#define NETWORK_H + +#include + +namespace Ui { +class Network; +} + +class Network : public QScrollArea +{ + Q_OBJECT + +public: + explicit Network(QWidget *parent = 0); + ~Network(); + +private: + Ui::Network *ui; +}; + +#endif // NETWORK_H diff --git a/ZeroTierUI/network.ui b/ZeroTierUI/network.ui new file mode 100644 index 000000000..cb8a93cae --- /dev/null +++ b/ZeroTierUI/network.ui @@ -0,0 +1,32 @@ + + + Network + + + + 0 + 0 + 618 + 79 + + + + ScrollArea + + + true + + + + + 0 + 0 + 616 + 77 + + + + + + + diff --git a/ZeroTierUI/resources.qrc b/ZeroTierUI/resources.qrc new file mode 100644 index 000000000..2496c8778 --- /dev/null +++ b/ZeroTierUI/resources.qrc @@ -0,0 +1 @@ + \ No newline at end of file