Skip to content

Commit 57ec541

Browse files
committed
Merge pull request #42 from tribal-tec/master
Add About dialog, fix bundle generation
2 parents 885c09c + f8dd58b commit 57ec541

5 files changed

Lines changed: 28 additions & 2 deletions

File tree

.gitexternals

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- mode: cmake -*-
2-
# CMake/common https://github.com/Eyescale/CMake.git 46869b7
2+
# CMake/common https://github.com/Eyescale/CMake.git 69bbc09

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include(GitExternal)
1212

1313
set(VERSION_MAJOR "0")
1414
set(VERSION_MINOR "7")
15-
set(VERSION_PATCH "1")
15+
set(VERSION_PATCH "2")
1616
set(VERSION_ABI 1)
1717

1818
set(DEFLECT_DESCRIPTION "A fast C++ library for streaming pixels and events")

apps/DesktopStreamer/MainWindow.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
#include <deflect/Server.h>
4545
#include <deflect/Stream.h>
46+
#include <deflect/version.h>
4647

4748
#include <iostream>
4849

@@ -181,6 +182,14 @@ void MainWindow::_setupUI()
181182
toolbar->addAction( _shareDesktopAction );
182183
toolbar->addAction( _showDesktopSelectionWindowAction );
183184

185+
// add About dialog
186+
QAction* showAboutDialog = new QAction( "About", this );
187+
showAboutDialog->setStatusTip( "About DesktopStreamer" );
188+
connect( showAboutDialog, &QAction::triggered,
189+
this, &MainWindow::_openAboutWidget );
190+
QMenu* helpMenu = menuBar()->addMenu( "&Help" );
191+
helpMenu->addAction( showAboutDialog );
192+
184193
// Update timer
185194
connect( &_updateTimer, SIGNAL( timeout( )), this, SLOT( _update( )));
186195

@@ -451,6 +460,18 @@ void MainWindow::_onStreamEventsBoxClicked( const bool checked )
451460
#endif
452461
}
453462

463+
void MainWindow::_openAboutWidget()
464+
{
465+
const int revision = deflect::Version::getRevision();
466+
467+
std::ostringstream aboutMsg;
468+
aboutMsg << "Current version: " << deflect::Version::getString();
469+
aboutMsg << std::endl;
470+
aboutMsg << "SCM revision: " << std::hex << revision << std::dec;
471+
472+
QMessageBox::about( this, "About DesktopStreamer", aboutMsg.str().c_str( ));
473+
}
474+
454475
#ifdef __APPLE__
455476
void sendMouseEvent( const CGEventType type, const CGMouseButton button,
456477
const CGPoint point )

apps/DesktopStreamer/MainWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ private slots:
7979
void _updateCoordinates();
8080

8181
void _onStreamEventsBoxClicked( bool checked );
82+
void _openAboutWidget();
8283

8384
private:
8485
deflect::Stream* _stream;

doc/Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ Changelog {#Changelog}
33

44
## Deflect 0.7
55

6+
### 0.7.2 (03-09-2015)
7+
* Add 'About' dialog to learn current used version
8+
* Fix bundle generation on OSX, broken after 0.6.1
9+
610
### 0.7.1 (01-09-2015)
711
* Fixed rare crash or hang together with stream and interaction
812

0 commit comments

Comments
 (0)