QT Project configured and compiling.

Still doesn't do much, that will come in the following months.
This commit is contained in:
Brian 2013-12-22 21:22:21 -07:00
parent 6ee0553af8
commit 3877187da0
43 changed files with 235 additions and 78 deletions

View File

@ -1,25 +0,0 @@
<?xml version="1.0"?>
<root>
<groups>
<group name="Testing 123">
<directories>
<directory path="C:\" />
</directories>
<extensions value="*.txt" />
<script path="..\scripts\sample.py" />
<delay value="5s" />
<relativeScriptPath />
</group>
</groups>
<preferences>
<editor>
<defaults>
<default name="System Default" />
<default name="Sublime Text 2" />
<default name="Notepad++" />
<default name="NotePad" />
</defaults>
<programs />
</editor>
</preferences>
</root>

27
code/.gitignore vendored Normal file
View File

@ -0,0 +1,27 @@
[Bb]in/
# C++ objects and libs
*.slo
*.lo
*.o
*.a
*.la
*.lai
*.so
*.dll
*.dylib
# Qt-es
*.pro.user
*.pro.user.*
moc_*.cpp
qrc_*.cpp
ui_*.h
Makefile*
*-build-*
# QtCreator
*.autosave

53
code/build/.gitignore vendored
View File

@ -1,53 +0,0 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
[Dd]ebug/
[Rr]elease/
x64/
[Bb]in/
[Oo]bj/
# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile
# Visual Studio profiler
*.psess
*.vsp
*.vspx
# NuGet Packages Directory
packages/
# Backup & report files from converting an old project file to a newer
# Visual Studio version. Backup files are not needed, because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm
# =========================
# Windows detritus
# =========================
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/

View File

@ -0,0 +1,55 @@
#-------------------------------------------------
#
# Project created by QtCreator 2013-12-22T20:34:26
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = FileWatcher
TEMPLATE = app
SOURCES += ../src/main.cpp \
../src/mainwindow.cpp
HEADERS += ../src/mainwindow.h
FORMS += ../src/mainwindow.ui
OTHER_FILES += \
res/arrow_fat_down.gif \
res/arrow_fat_up.gif \
res/arrow_mini_down.gif \
res/arrow_mini_up.gif \
res/block.gif \
res/cross.gif \
res/drop_box.gif \
res/folder.gif \
res/plus.gif \
res/save.gif \
res/script.gif \
res/trash.gif \
res/warning.gif \
res/play.png \
res/settings.png \
res/stock_3d-texture-and-shading_16x16.png \
res/stock_3d-texture-and-shading_32x32.png \
res/stock_3d-texture-and-shading_48x48.png \
res/stock_3d-texture-and-shading_128x128.png \
res/stock_3d-texture-and-shading_256x256.png \
res/stock_3d-texture-spherical_16x16.png \
res/stock_3d-texture-spherical_32x32.png \
res/stock_3d-texture-spherical_48x48.png \
res/stock_3d-texture-spherical_128x128.png \
res/stock_3d-texture-spherical_256x256.png \
res/stop.png \
res/stock_3d-texture-and-shading_16x16.ico \
res/stock_3d-texture-and-shading_32x32.ico \
res/stock_3d-texture-and-shading_128x128.ico \
res/stock_3d-texture-and-shading_256x256.ico \
res/stock_3d-texture-spherical_16x16.ico \
res/stock_3d-texture-spherical_32x32.ico \
res/stock_3d-texture-spherical_128x128.ico \
res/stock_3d-texture-spherical_256x256.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 B

BIN
code/build/res/block.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

BIN
code/build/res/cross.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

BIN
code/build/res/drop_box.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

BIN
code/build/res/folder.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 B

BIN
code/build/res/play.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

BIN
code/build/res/plus.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

BIN
code/build/res/save.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 B

BIN
code/build/res/script.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

BIN
code/build/res/settings.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 901 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
code/build/res/stop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 B

BIN
code/build/res/trash.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

BIN
code/build/res/warning.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 B

11
code/src/main.cpp Normal file
View File

@ -0,0 +1,11 @@
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.show();
return a.exec();
}

14
code/src/mainwindow.cpp Normal file
View File

@ -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;
}

22
code/src/mainwindow.h Normal file
View File

@ -0,0 +1,22 @@
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H

106
code/src/mainwindow.ui Normal file
View File

@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindow</class>
<widget class="QMainWindow" name="MainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindow</string>
</property>
<property name="windowIcon">
<iconset>
<normaloff>../build/res/stock_3d-texture-and-shading_32x32.ico</normaloff>../build/res/stock_3d-texture-and-shading_32x32.ico</iconset>
</property>
<widget class="QWidget" name="centralWidget"/>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
<property name="title">
<string>File</string>
</property>
<addaction name="actionSave"/>
<addaction name="separator"/>
<addaction name="actionPreferences"/>
<addaction name="separator"/>
<addaction name="actionHide"/>
<addaction name="actionExit"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
<string>Help</string>
</property>
<addaction name="actionAbout"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuHelp"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="actionAbout">
<property name="text">
<string>About</string>
</property>
</action>
<action name="actionSave">
<property name="text">
<string>Save</string>
</property>
<property name="shortcut">
<string>Ctrl+S</string>
</property>
<property name="shortcutContext">
<enum>Qt::ApplicationShortcut</enum>
</property>
</action>
<action name="actionPreferences">
<property name="text">
<string>Preferences</string>
</property>
</action>
<action name="actionHide">
<property name="text">
<string>Hide</string>
</property>
<property name="shortcut">
<string>Ctrl+H</string>
</property>
<property name="shortcutContext">
<enum>Qt::ApplicationShortcut</enum>
</property>
</action>
<action name="actionExit">
<property name="text">
<string>Exit</string>
</property>
<property name="shortcut">
<string>Ctrl+X</string>
</property>
<property name="shortcutContext">
<enum>Qt::ApplicationShortcut</enum>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>