Signature plugin: small refactoring

This commit is contained in:
Jakub Melka
2022-02-24 20:25:18 +01:00
parent f4e00f2f03
commit 0f4d8d41d7
8 changed files with 453 additions and 25 deletions

View File

@@ -43,11 +43,16 @@ public:
virtual std::vector<QAction*> getActions() const override;
private:
void onSceneChanged();
enum Action
{
// Activate action
Activate,
// Create graphics actions
Text,
FreehandCurve,
AcceptMark,
RejectMark,
Rectangle,
@@ -59,15 +64,10 @@ private:
SvgImage,
Clear,
// Settings actions
SetColor,
SetPen,
SetBrush,
// Sign actions
SignElectronically,
SignDigitally,
Ceritificates,
Certificates,
LastAction
};
@@ -84,6 +84,8 @@ private:
LastTool
};
void setActive(bool active);
void updateActions();
void updateGraphics();