mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Some advanced creation tools
This commit is contained in:
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -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>
|
||||
|
89
PdfForQtViewer/resources/hyperlink.svg
Normal file
89
PdfForQtViewer/resources/hyperlink.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 8.2 KiB |
Reference in New Issue
Block a user