Skip to content

Commit

Permalink
Add gui_app example
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Sep 15, 2019
1 parent 73bc096 commit 263b886
Show file tree
Hide file tree
Showing 23 changed files with 572 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -53,6 +53,9 @@ Each example project can be build using `make` (native BSD make, not GNU make):

```sh
cd $PROJECT_ROOT/console_app
# or
cd $PROJECT_ROOT/console_app
cd $PROJECT_ROOT/gui_app
make
make clean
```
4 changes: 4 additions & 0 deletions gui_app/.gitignore
@@ -0,0 +1,4 @@
Builds
app
*.out
*.o
175 changes: 175 additions & 0 deletions gui_app/JuceLibraryCode/AppConfig.h
@@ -0,0 +1,175 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
There's a section below where you can add your own custom code safely, and the
Projucer will preserve the contents of that block, but the best way to change
any of these definitions is by using the Projucer's project settings.
Any commented-out settings will assume their default values.
*/

#pragma once

//==============================================================================
// [BEGIN_USER_CODE_SECTION]

// (You can add your own code in this section, and the Projucer will not overwrite it)

// [END_USER_CODE_SECTION]

/*
==============================================================================
In accordance with the terms of the JUCE 5 End-Use License Agreement, the
JUCE Code in SECTION A cannot be removed, changed or otherwise rendered
ineffective unless you have a JUCE Indie or Pro license, or are using JUCE
under the GPL v3 license.
End User License Agreement: www.juce.com/juce-5-licence
==============================================================================
*/

// BEGIN SECTION A

#ifndef JUCE_DISPLAY_SPLASH_SCREEN
#define JUCE_DISPLAY_SPLASH_SCREEN 1
#endif

#ifndef JUCE_REPORT_APP_USAGE
#define JUCE_REPORT_APP_USAGE 1
#endif

// END SECTION A

#define JUCE_USE_DARK_SPLASH_SCREEN 1

//==============================================================================
#define JUCE_MODULE_AVAILABLE_juce_core 1
#define JUCE_MODULE_AVAILABLE_juce_cryptography 1
#define JUCE_MODULE_AVAILABLE_juce_data_structures 1
#define JUCE_MODULE_AVAILABLE_juce_events 1
#define JUCE_MODULE_AVAILABLE_juce_graphics 1
#define JUCE_MODULE_AVAILABLE_juce_gui_basics 1
#define JUCE_MODULE_AVAILABLE_juce_gui_extra 1

#define JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED 1

//==============================================================================
// juce_core flags:

#ifndef JUCE_FORCE_DEBUG
//#define JUCE_FORCE_DEBUG 0
#endif

#ifndef JUCE_LOG_ASSERTIONS
//#define JUCE_LOG_ASSERTIONS 0
#endif

#ifndef JUCE_CHECK_MEMORY_LEAKS
//#define JUCE_CHECK_MEMORY_LEAKS 1
#endif

#ifndef JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES
//#define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0
#endif

#ifndef JUCE_INCLUDE_ZLIB_CODE
//#define JUCE_INCLUDE_ZLIB_CODE 1
#endif

#ifndef JUCE_USE_CURL
//#define JUCE_USE_CURL 1
#endif

#ifndef JUCE_LOAD_CURL_SYMBOLS_LAZILY
//#define JUCE_LOAD_CURL_SYMBOLS_LAZILY 0
#endif

#ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS
//#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 0
#endif

#ifndef JUCE_ALLOW_STATIC_NULL_VARIABLES
//#define JUCE_ALLOW_STATIC_NULL_VARIABLES 0
#endif

#ifndef JUCE_STRICT_REFCOUNTEDPOINTER
#define JUCE_STRICT_REFCOUNTEDPOINTER 1
#endif

//==============================================================================
// juce_events flags:

#ifndef JUCE_EXECUTE_APP_SUSPEND_ON_IOS_BACKGROUND_TASK
//#define JUCE_EXECUTE_APP_SUSPEND_ON_IOS_BACKGROUND_TASK 0
#endif

//==============================================================================
// juce_graphics flags:

#ifndef JUCE_USE_COREIMAGE_LOADER
//#define JUCE_USE_COREIMAGE_LOADER 1
#endif

#ifndef JUCE_USE_DIRECTWRITE
//#define JUCE_USE_DIRECTWRITE 1
#endif

#ifndef JUCE_DISABLE_COREGRAPHICS_FONT_SMOOTHING
//#define JUCE_DISABLE_COREGRAPHICS_FONT_SMOOTHING 0
#endif

//==============================================================================
// juce_gui_basics flags:

#ifndef JUCE_ENABLE_REPAINT_DEBUGGING
//#define JUCE_ENABLE_REPAINT_DEBUGGING 0
#endif

#ifndef JUCE_USE_XRANDR
//#define JUCE_USE_XRANDR 1
#endif

#ifndef JUCE_USE_XINERAMA
//#define JUCE_USE_XINERAMA 1
#endif

#ifndef JUCE_USE_XSHM
//#define JUCE_USE_XSHM 1
#endif

#ifndef JUCE_USE_XRENDER
//#define JUCE_USE_XRENDER 0
#endif

#ifndef JUCE_USE_XCURSOR
//#define JUCE_USE_XCURSOR 1
#endif

#ifndef JUCE_WIN_PER_MONITOR_DPI_AWARE
//#define JUCE_WIN_PER_MONITOR_DPI_AWARE 1
#endif

//==============================================================================
// juce_gui_extra flags:

#ifndef JUCE_WEB_BROWSER
#define JUCE_WEB_BROWSER 0
#endif

#ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR
#define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 0
#endif

//==============================================================================
#ifndef JUCE_STANDALONE_APPLICATION
#if defined(JucePlugin_Name) && defined(JucePlugin_Build_Standalone)
#define JUCE_STANDALONE_APPLICATION JucePlugin_Build_Standalone
#else
#define JUCE_STANDALONE_APPLICATION 1
#endif
#endif
40 changes: 40 additions & 0 deletions gui_app/JuceLibraryCode/JuceHeader.h
@@ -0,0 +1,40 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
This is the header file that your files should include in order to get all the
JUCE library headers. You should avoid including the JUCE headers directly in
your own source files, because that wouldn't pick up the correct configuration
options for your app.
*/

#pragma once

#include "AppConfig.h"

#include <juce_core/juce_core.h>
#include <juce_cryptography/juce_cryptography.h>
#include <juce_data_structures/juce_data_structures.h>
#include <juce_events/juce_events.h>
#include <juce_graphics/juce_graphics.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include <juce_gui_extra/juce_gui_extra.h>


#if ! DONT_SET_USING_JUCE_NAMESPACE
// If your code uses a lot of JUCE classes, then this will obviously save you
// a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE.
using namespace juce;
#endif

#if ! JUCE_DONT_DECLARE_PROJECTINFO
namespace ProjectInfo
{
const char* const projectName = "gui_app";
const char* const companyName = "";
const char* const versionString = "1.0.0";
const int versionNumber = 0x10000;
}
#endif
12 changes: 12 additions & 0 deletions gui_app/JuceLibraryCode/ReadMe.txt
@@ -0,0 +1,12 @@

Important Note!!
================

The purpose of this folder is to contain files that are auto-generated by the Projucer,
and ALL files in this folder will be mercilessly DELETED and completely re-written whenever
the Projucer saves your project.

Therefore, it's a bad idea to make any manual changes to the files in here, or to
put any of your own files in here if you don't want to lose them. (Of course you may choose
to add the folder's contents to your version-control system so that you can re-merge your own
modifications after the Projucer has saved its changes).
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_core.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_core/juce_core.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_core.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_core/juce_core.mm>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_cryptography.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_cryptography/juce_cryptography.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_cryptography.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_cryptography/juce_cryptography.mm>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_data_structures.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_data_structures/juce_data_structures.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_data_structures.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_data_structures/juce_data_structures.mm>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_events.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_events/juce_events.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_events.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_events/juce_events.mm>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_graphics.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_graphics/juce_graphics.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_graphics.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_graphics/juce_graphics.mm>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_gui_basics.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_gui_basics/juce_gui_basics.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_gui_basics.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_gui_basics/juce_gui_basics.mm>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_gui_extra.cpp
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_gui_extra/juce_gui_extra.cpp>
9 changes: 9 additions & 0 deletions gui_app/JuceLibraryCode/include_juce_gui_extra.mm
@@ -0,0 +1,9 @@
/*
IMPORTANT! This file is auto-generated each time you save your
project - if you alter its contents, your changes may be overwritten!
*/

#include "AppConfig.h"
#include <juce_gui_extra/juce_gui_extra.mm>

0 comments on commit 263b886

Please sign in to comment.