|
|
@ -86,6 +86,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "core/memcheck.h" |
|
|
|
#include "core/memcheck.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
|
|
|
#include <QProcess> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
UBBoardController::UBBoardController(UBMainWindow* mainWindow) |
|
|
|
UBBoardController::UBBoardController(UBMainWindow* mainWindow) |
|
|
|
: UBDocumentContainer(mainWindow->centralWidget()) |
|
|
|
: UBDocumentContainer(mainWindow->centralWidget()) |
|
|
|
, mMainWindow(mainWindow) |
|
|
|
, mMainWindow(mainWindow) |
|
|
@ -160,6 +164,10 @@ void UBBoardController::init() |
|
|
|
|
|
|
|
|
|
|
|
UBBoardController::~UBBoardController() |
|
|
|
UBBoardController::~UBBoardController() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
|
|
|
QProcess newProcess; |
|
|
|
|
|
|
|
newProcess.startDetached("killall onboard"); |
|
|
|
|
|
|
|
#endif |
|
|
|
delete mDisplayView; |
|
|
|
delete mDisplayView; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -816,7 +824,14 @@ void UBBoardController::showKeyboard(bool show) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(show) |
|
|
|
if(show) |
|
|
|
UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); |
|
|
|
UBDrawingController::drawingController()->setStylusTool(UBStylusTool::Selector); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef Q_WS_X11 |
|
|
|
|
|
|
|
QProcess newProcess; |
|
|
|
|
|
|
|
newProcess.startDetached("/usr/bin/onboard"); |
|
|
|
|
|
|
|
#else |
|
|
|
mPaletteManager->showVirtualKeyboard(show); |
|
|
|
mPaletteManager->showVirtualKeyboard(show); |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|