mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Signature plugin: small refactoring
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user