mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Redacting tool
This commit is contained in:
@ -1047,6 +1047,11 @@ bool PDFProgramController::canClose() const
|
||||
return !(m_futureWatcher && m_futureWatcher->isRunning()) || !m_isBusy;
|
||||
}
|
||||
|
||||
QString PDFProgramController::getOriginalFileName() const
|
||||
{
|
||||
return m_fileInfo.originalFileName;
|
||||
}
|
||||
|
||||
void PDFProgramController::onActionRotateRightTriggered()
|
||||
{
|
||||
m_pdfWidget->getDrawWidgetProxy()->performOperation(pdf::PDFDrawWidgetProxy::RotateRight);
|
||||
@ -1690,6 +1695,7 @@ void PDFProgramController::loadPlugins()
|
||||
|
||||
for (const auto& plugin : m_loadedPlugins)
|
||||
{
|
||||
plugin.second->setDataExchangeInterface(this);
|
||||
plugin.second->setWidget(m_pdfWidget);
|
||||
plugin.second->setCMSManager(m_CMSManager);
|
||||
std::vector<QAction*> actions = plugin.second->getActions();
|
||||
|
@ -223,7 +223,7 @@ private:
|
||||
std::vector<QAction*> m_additionalActions;
|
||||
};
|
||||
|
||||
class Pdf4QtVIEWERLIBSHARED_EXPORT PDFProgramController : public QObject
|
||||
class Pdf4QtVIEWERLIBSHARED_EXPORT PDFProgramController : public QObject, public pdf::IPluginDataExchange
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -279,6 +279,8 @@ public:
|
||||
|
||||
bool canClose() const;
|
||||
|
||||
virtual QString getOriginalFileName() const override;
|
||||
|
||||
signals:
|
||||
void queryPasswordRequest(QString* password, bool* ok);
|
||||
|
||||
|
Reference in New Issue
Block a user