Some advanced creation tools

This commit is contained in:
Jakub Melka
2020-12-05 17:51:54 +01:00
parent da95ffc748
commit 1d4e7d26ab
6 changed files with 269 additions and 1 deletions

View File

@ -52,5 +52,6 @@
<file>resources/result-warning.svg</file>
<file>resources/signature.svg</file>
<file>resources/plugins.svg</file>
<file>resources/hyperlink.svg</file>
</qresource>
</RCC>

View File

@ -335,6 +335,10 @@ PDFViewerMainWindow::PDFViewerMainWindow(QWidget* parent) :
// Add special tools
pdf::PDFCreateStickyNoteTool* createStickyNoteTool = new pdf::PDFCreateStickyNoteTool(m_pdfWidget->getDrawWidgetProxy(), m_toolManager, m_insertStickyNoteGroup, this);
m_toolManager->addTool(createStickyNoteTool);
pdf::PDFCreateHyperlinkTool* createHyperlinkTool = new pdf::PDFCreateHyperlinkTool(m_pdfWidget->getDrawWidgetProxy(), m_toolManager, ui->actionCreateHyperlink, this);
m_toolManager->addTool(createHyperlinkTool);
pdf::PDFCreateFreeTextTool* createFreeTextTool = new pdf::PDFCreateFreeTextTool(m_pdfWidget->getDrawWidgetProxy(), m_toolManager, ui->actionInlineText, this);
m_toolManager->addTool(createFreeTextTool);
m_annotationManager = new pdf::PDFWidgetAnnotationManager(m_pdfWidget->getDrawWidgetProxy(), this);
connect(m_annotationManager, &pdf::PDFWidgetAnnotationManager::actionTriggered, this, &PDFViewerMainWindow::onActionTriggered);

View File

@ -147,6 +147,8 @@
<addaction name="actionStickyNoteParagraph"/>
</widget>
<addaction name="menuSticky_Note"/>
<addaction name="actionCreateHyperlink"/>
<addaction name="actionInlineText"/>
</widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
@ -624,6 +626,26 @@
<string>Paragraph</string>
</property>
</action>
<action name="actionCreateHyperlink">
<property name="checkable">
<bool>true</bool>
</property>
<property name="icon">
<iconset resource="pdfforqtviewer.qrc">
<normaloff>:/resources/hyperlink.svg</normaloff>:/resources/hyperlink.svg</iconset>
</property>
<property name="text">
<string>Hyperlink</string>
</property>
</action>
<action name="actionInlineText">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Inline text</string>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.2 KiB