|
|
|
@ -12,6 +12,7 @@ |
|
|
|
|
#include <QHideEvent> |
|
|
|
|
|
|
|
|
|
#include "gui/UBActionPalette.h" |
|
|
|
|
#include "gui/UBRightPalette.h" |
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The uninotes window. This window is controlled by UBUninotesWindowController. |
|
|
|
@ -21,7 +22,7 @@ class UBDesktopPalette : public UBActionPalette |
|
|
|
|
Q_OBJECT; |
|
|
|
|
|
|
|
|
|
public: |
|
|
|
|
UBDesktopPalette(QWidget *parent = 0); |
|
|
|
|
UBDesktopPalette(QWidget *parent, UBRightPalette* rightPalette); |
|
|
|
|
virtual ~UBDesktopPalette(); |
|
|
|
|
|
|
|
|
|
void disappearForCapture(); |
|
|
|
@ -41,17 +42,19 @@ class UBDesktopPalette : public UBActionPalette |
|
|
|
|
public slots: |
|
|
|
|
|
|
|
|
|
void showHideClick(bool checked); |
|
|
|
|
|
|
|
|
|
void updateShowHideState(bool pShowEnabled); |
|
|
|
|
void setShowHideButtonVisible(bool visible); |
|
|
|
|
void setDisplaySelectButtonVisible(bool show); |
|
|
|
|
void minimizeMe(eMinimizedLocation location); |
|
|
|
|
void maximizeMe(); |
|
|
|
|
void parentResized(); |
|
|
|
|
|
|
|
|
|
protected: |
|
|
|
|
void showEvent(QShowEvent *event); |
|
|
|
|
void hideEvent(QHideEvent *event); |
|
|
|
|
|
|
|
|
|
int getParentWidth(QWidget *parent); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
QAction *mShowHideAction; |
|
|
|
|
QAction *mDisplaySelectAction; |
|
|
|
@ -60,6 +63,9 @@ protected: |
|
|
|
|
QAction *mActionCustomSelect; |
|
|
|
|
QAction* mActionTest; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
UBRightPalette* rightPalette; |
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
void stylusToolChanged(int tool); |
|
|
|
|
|
|
|
|
|