Giter VIP home page Giter VIP logo

juce_organicui's Introduction

juce_organicui

A massive JUCE module that adds multiple UI and control features

Important note

Because my pull requests on the official JUCE repo have not been reviewed yet, if you're using this module you will need to use the develop-local branch of my JUCE fork :

git clone --branch=develop-local https://github.com/benkuper/JUCE

juce_organicui's People

Contributors

7omas avatar benkuper avatar emerickh avatar eva-decorps avatar manuelmitasch avatar monsieurgustav avatar nicolaserard avatar norbertrostaing avatar thowaah avatar tommag avatar zak-45 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

juce_organicui's Issues

missing template arguments before ‘lock’

Hi,

This is using develop-local of your JUCE fork, and master of juce_organicui. I get similar results with Clang, only quite a bit more warnings.

[main] Building folder: LaMoucheFolle 
[main] Configuring folder: LaMoucheFolle 
[cmake] The CXX compiler identification is GNU 7.5.0
[cmake] The C compiler identification is GNU 7.5.0
[cmake] Check for working CXX compiler: /usr/bin/x86_64-linux-gnu-g++-7
[cmake] Check for working CXX compiler: /usr/bin/x86_64-linux-gnu-g++-7 -- works
[cmake] Detecting CXX compiler ABI info
[cmake] Detecting CXX compiler ABI info - done
[cmake] Detecting CXX compile features
[cmake] Detecting CXX compile features - done
[cmake] Check for working C compiler: /usr/bin/x86_64-linux-gnu-gcc-7
[cmake] Check for working C compiler: /usr/bin/x86_64-linux-gnu-gcc-7 -- works
[cmake] Detecting C compiler ABI info
[cmake] Detecting C compiler ABI info - done
[cmake] Detecting C compile features
[cmake] Detecting C compile features - done
[cmake] Generator .............. Ninja
[cmake] Build Type ............. Debug
[cmake] AppVersion ............. 3.0.2
[cmake] Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
[cmake] Checking for modules 'libusb-1.0;alsa;x11;xinerama;xext;freetype2;webkit2gtk-4.0;gtk+-x11-3.0;libcurl'
[cmake]   Found libusb-1.0, version 1.0.21
[cmake]   Found alsa, version 1.1.3
[cmake]   Found x11, version 1.6.4
[cmake]   Found xinerama, version 1.1.3
[cmake]   Found xext, version 1.3.3
[cmake]   Found freetype2, version 21.0.15
[cmake]   Found webkit2gtk-4.0, version 2.26.4
[cmake]   Found gtk+-x11-3.0, version 3.22.30
[cmake]   Found libcurl, version 7.58.0
[cmake] Configuring done
[cmake] Generating done
[build] Starting build
[proc] Executing command: /opt/cmake-3.13.1-Linux-x86_64/bin/cmake --build /home/joel/git/LaMoucheFolle/build --config Debug --target all -- -j 10
[build] [1/2   0% :: 0.000] Re-checking globbed directories...
[build] [1/48   2% :: 0.005] Completed 'juce'
[build] [2/48   4% :: 0.025] Completed 'organicui'
[build] [12/48   6% :: 11.695] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Radio/CFPacket.cpp.o
[build] [13/48   8% :: 12.342] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Radio/CFLog.cpp.o
[build] [14/48  10% :: 12.490] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Main.cpp.o
[build] [15/48  12% :: 12.500] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Controller/Controller.cpp.o
[build] [16/48  14% :: 12.538] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Radio/CFRadioManager.cpp.o
[build] [17/48  16% :: 12.558] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Radio/CFParam.cpp.o
[build] [18/48  18% :: 12.942] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Controller/OSCController.cpp.o
[build] [19/48  20% :: 13.049] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Radio/CFCommand.cpp.o
[build] [20/48  22% :: 13.563] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/MainComponent.cpp.o
[build] [21/48  25% :: 14.306] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Controller/ControllerManager.cpp.o
[build] [22/48  27% :: 24.394] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Engine/CFSettings.cpp.o
[build] [23/48  29% :: 24.527] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/Deck/DeckParamManager.cpp.o
[build] [24/48  31% :: 24.662] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/Deck/DeckParam.cpp.o
[build] [25/48  33% :: 24.667] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/Deck/Deck.cpp.o
[build] [26/48  35% :: 25.067] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/UI/CFAssetManager.cpp.o
[build] [27/48  37% :: 25.433] Building CXX object CMakeFiles/LaMoucheFolle.dir/External/crazyflie_cpp/src/CrazyflieUSB.cpp.o
[build] [28/48  39% :: 25.493] Building CXX object CMakeFiles/LaMoucheFolle.dir/External/crazyflie_cpp/src/Crazyradio.cpp.o
[build] [29/48  41% :: 25.584] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/Drone.cpp.o
[build] [30/48  43% :: 25.908] Building CXX object CMakeFiles/LaMoucheFolle.dir/External/crazyflie_cpp/src/crtp.cpp.o
[build] [31/48  45% :: 26.068] Building CXX object CMakeFiles/LaMoucheFolle.dir/External/crazyflie_cpp/src/ITransport.cpp.o
[build] [32/48  47% :: 26.251] Building CXX object CMakeFiles/LaMoucheFolle.dir/External/crazyflie_cpp/src/USBDevice.cpp.o
[build] [33/48  50% :: 26.680] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/Deck/DeckManager.cpp.o
[build] [34/48  52% :: 26.961] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Controller/ui/ControllerManagerUI.cpp.o
[build] [35/48  54% :: 27.252] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Engine/CFEngine.cpp.o
[build] [36/48  56% :: 27.457] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Controller/ui/ControllerUI.cpp.o
[build] [37/48  58% :: 28.042] Building CXX object CMakeFiles/LaMoucheFolle.dir/External/crazyflie_cpp/src/Crazyflie.cpp.o
[build] [38/48  60% :: 29.018] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/BinaryData.cpp.o
[build] [39/48  62% :: 29.499] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/DroneManager.cpp.o
[build] [40/48  64% :: 33.945] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_data_structures.cpp.o
[build] [41/48  66% :: 34.195] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_events.cpp.o
[build] [42/48  68% :: 35.922] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/ui/Drone2DViewUI.cpp.o
[build] [43/48  70% :: 37.478] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/ui/DroneGridUI.cpp.o
[build] [44/48  72% :: 38.135] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Engine/ui/CFSettingsUI.cpp.o
[build] [45/48  75% :: 39.410] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/ui/DroneUI.cpp.o
[build] [46/48  77% :: 39.897] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/ui/DroneManagerUI.cpp.o
[build] [47/48  79% :: 40.081] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/ui/Drone2DViewManagerUI.cpp.o
[build] [47/48  81% :: 40.387] Building CXX object CMakeFiles/LaMoucheFolle.dir/Source/Drone/ui/DroneManagerGridUI.cpp.o
[build] [47/48  83% :: 42.854] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_core.cpp.o
[build] [47/48  85% :: 43.943] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_osc.cpp.o
[build] [47/48  87% :: 46.675] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_gui_extra.cpp.o
[build] [47/48  89% :: 47.329] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_opengl.cpp.o
[build] [47/48  91% :: 48.110] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_graphics.cpp.o
[build] [47/48  93% :: 49.762] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_organicui.cpp.o
[build] FAILED: CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_organicui.cpp.o 
[build] /usr/bin/x86_64-linux-gnu-g++-7  -DJUCE_APP_VERSION=3.0.2 -DJUCE_APP_VERSION_HEX=0x030002 -DJucePlugin_Build_AAX=0 -DJucePlugin_Build_AU=0 -DJucePlugin_Build_AUv3=0 -DJucePlugin_Build_RTAS=0 -DJucePlugin_Build_Standalone=0 -DJucePlugin_Build_Unity=0 -DJucePlugin_Build_VST3=0 -DJucePlugin_Build_VST=0 -I../JuceLibraryCode -Ijuce/modules -I../Source -I../External/crazyflie_cpp/include/crazyflie_cpp -I../External/crazyflie_cpp/include -I../External/libusb/include -I/usr/include/libusb-1.0 -I/usr/include/alsa -I/usr/include/webkitgtk-4.0 -I/usr/include/gtk-3.0 -I/usr/include/libsoup-2.4 -I/usr/include/libxml2 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/x86_64-linux-gnu -g -MD -MT CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_organicui.cpp.o -MF CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_organicui.cpp.o.d -o CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_organicui.cpp.o -c ../JuceLibraryCode/include_juce_organicui.cpp
[build] In file included from juce/modules/juce_organicui/juce_organicui.cpp:34:0,
[build]                  from ../JuceLibraryCode/include_juce_organicui.cpp:9:
[build] juce/modules/juce_organicui/controllable/parameter/ColorParameter.cpp: In member function ‘const juce::Colour ColorParameter::getColor()’:
[build] juce/modules/juce_organicui/controllable/parameter/ColorParameter.cpp:42:20: error: missing template arguments before ‘lock’
[build]   GenericScopedLock lock(valueSetLock);
[build]                     ^~~~
[build] juce/modules/juce_organicui/controllable/parameter/ColorParameter.cpp: In member function ‘virtual juce::var ColorParameter::getLerpValueTo(juce::var, float)’:
[build] juce/modules/juce_organicui/controllable/parameter/ColorParameter.cpp:100:20: error: missing template arguments before ‘lock’
[build]   GenericScopedLock lock(valueSetLock);
[build]                     ^~~~
[build] juce/modules/juce_organicui/controllable/parameter/ColorParameter.cpp: In member function ‘virtual void ColorParameter::setWeightedValue(juce::Array<juce::var>, juce::Array<float>)’:
[build] juce/modules/juce_organicui/controllable/parameter/ColorParameter.cpp:117:21: error: missing template arguments before ‘lock’
[build]    GenericScopedLock lock(valueSetLock);
[build]                      ^~~~
[build] In file included from juce/modules/juce_organicui/juce_organicui.cpp:40:0,
[build]                  from ../JuceLibraryCode/include_juce_organicui.cpp:9:
[build] juce/modules/juce_organicui/controllable/parameter/Parameter.cpp: In member function ‘virtual void Parameter::setValue(juce::var, bool, bool, bool)’:
[build] juce/modules/juce_organicui/controllable/parameter/Parameter.cpp:153:21: error: missing template arguments before ‘lock’
[build]    GenericScopedLock lock(valueSetLock);
[build]                      ^~~~
[build] [47/48  95% :: 54.960] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_organicui2.cpp.o
[build] [47/48  97% :: 56.555] Building CXX object CMakeFiles/LaMoucheFolle.dir/JuceLibraryCode/include_juce_gui_basics.cpp.o
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1

setDisableDefaultMouseEvents and setEnableKeyPressEvents

[build] juce/modules/juce_organicui/manager/ui/BaseItemMinimalUI.h: In constructor ‘BaseItemMinimalUI<T>::BaseItemMinimalUI(T*)’:
[build] juce/modules/juce_organicui/manager/ui/BaseItemMinimalUI.h:120:2: error: there are no arguments to ‘setDisableDefaultMouseEvents’ that depend on a template parameter, so a declaration of ‘setDisableDefaultMouseEvents’ must be available [-fpermissive]
[build]   setDisableDefaultMouseEvents(true);
[build]   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build] juce/modules/juce_organicui/manager/ui/BaseItemMinimalUI.h:120:2: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
[build] In file included from juce/modules/juce_organicui/juce_organicui.h:212:0,
[build]                  from ../JuceLibraryCode/JuceHeader.h:24,
[build]                  from ../Source/Controller/Controller.h:13,
[build]                  from ../Source/Controller/OSCController.h:13,
[build]                  from ../Source/Controller/OSCController.cpp:11:
[build] juce/modules/juce_organicui/manager/ui/BaseManagerUI.h: In constructor ‘BaseManagerUI<M, T, U>::BaseManagerUI(const juce::String&, M*, bool)’:
[build] juce/modules/juce_organicui/manager/ui/BaseManagerUI.h:241:12: error: ‘class juce::Viewport’ has no member named ‘setEnableKeyPressEvents’
[build]    viewport.setEnableKeyPressEvents(false);
[build]             ^~~~~~~~~~~~~~~~~~~~~~~

UI bug with parameter control modes

There is a UI bug in the parameter UI when choosing the control mode : switching between control modes "Expression" and "Reference" doesn't show the expression / reference sub-components.

Resizing the panel does make them appear so I guess that is has to do with the expression / reference sub-components having the same height and not triggering a resize ?

A suggestion for fixing negative time display

The current implementation displays hours and minutes off by one as soon as the value goes negative.

Not a coder so this suggestion might not be at all a preferred implementation (or even functional) but the idea is to give the sign only to hour and use abs() to make sure that floor() gets the intended result.

String StringUtil::valueToTimeString(double timeVal, int numDecimals)
{
  int hours = copysign(floor(abs(timeVal / 3600)), timeVal);
  int minutes = floor(abs(fmod(timeVal, 3600) / 60));
  double seconds = fmod(timeVal, 60);
  if (numDecimals > 0) return String::formatted("%02i:%02i:%0" + String(6 - (numDecimals - 3)) + "." + String(numDecimals) + "f", hours, minutes, seconds);
  else return String::formatted("%02i:%02i:%02i", hours, minutes, (int)seconds);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.