Skip to content

Commit

Permalink
Fixes and improvements in whiteboard application (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodhajski authored and Raphael Dumusc committed Nov 4, 2016
1 parent 95c3e77 commit dcfae34
Show file tree
Hide file tree
Showing 17 changed files with 281 additions and 168 deletions.
2 changes: 1 addition & 1 deletion .gitsubprojects
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- mode: cmake -*-
git_subproject(ZeroEQ https://github.com/HBPVIS/ZeroEQ.git 1019277)
git_subproject(Deflect https://github.com/BlueBrain/Deflect.git 7d2918e)
git_subproject(Deflect https://github.com/BlueBrain/Deflect.git d937377)
git_subproject(TUIO https://github.com/BlueBrain/TUIO.git fdf5cf7)
git_subproject(VirtualKeyboard https://github.com/rdumusc/QtFreeVirtualKeyboard.git e3ee94d)
1 change: 0 additions & 1 deletion apps/Launcher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Raphael Dumusc <raphael.dumusc@epfl.ch>

set(TIDELAUNCHER_HEADERS
FileInfoHelper.h
Launcher.h
)

Expand Down
2 changes: 1 addition & 1 deletion apps/Launcher/Launcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#ifndef LAUNCHER_H
#define LAUNCHER_H

#include "FileInfoHelper.h"
#include "tide/master/FileInfoHelper.h"

#include <deflect/qt/QmlStreamer.h>

Expand Down
4 changes: 4 additions & 0 deletions apps/Whiteboard/Whiteboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
#include "tide/master/localstreamer/QmlKeyInjector.h"
#include "tide/master/MasterConfiguration.h"

#include <QQmlContext>

namespace
{
const std::string deflectHost( "localhost" );
Expand All @@ -67,6 +69,8 @@ Whiteboard::Whiteboard( int& argc, char* argv[] )
auto item = _qmlStreamer->getRootItem();
item->setProperty( "saveURL", config.getWhiteboardSaveFolder() );

QQmlEngine* engine = _qmlStreamer->getQmlEngine();
engine->rootContext()->setContextProperty( "fileInfo", &_fileInfoHelper );
}

bool Whiteboard::event( QEvent* event_ )
Expand Down
3 changes: 2 additions & 1 deletion apps/Whiteboard/Whiteboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#ifndef WHITEBOARD_H
#define WHITEBOARD_H

#include <memory>
#include "tide/master/FileInfoHelper.h"

#include <QGuiApplication>
#include <deflect/qt/QmlStreamer.h>
Expand All @@ -59,6 +59,7 @@ class Whiteboard : public QGuiApplication
std::unique_ptr<deflect::qt::QmlStreamer> _qmlStreamer;

bool event( QEvent* event ) final;
FileInfoHelper _fileInfoHelper;
};

#endif
3 changes: 3 additions & 0 deletions apps/Whiteboard/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ int main( int argc, char** argv )
logger_id = "whiteboard";
qInstallMessageHandler( qtMessageLogger );

// Load virtualkeyboard input context plugin
qputenv( "QT_IM_MODULE", QByteArray( "virtualkeyboard" ));

std::unique_ptr<Whiteboard> whiteboard;
try
{
Expand Down
Loading

0 comments on commit dcfae34

Please sign in to comment.