presentation
Andreas Butti 7 years ago
parent bb19234915
commit e9e29d0327
  1. 1
      src/control/Control.cpp
  2. 24
      src/util/Path.cpp
  3. 15
      src/util/Path.h

@ -2193,6 +2193,7 @@ bool Control::annotatePdf(Path filename, bool attachPdf, bool attachToDocument)
getCursor()->setCursorBusy(true);
this->doc->setFilename("");
bool res = this->doc->readPdf(filename, true, attachToDocument);
if (res)

@ -48,6 +48,30 @@ bool Path::operator ==(const Path& other)
return this->path == other.path;
}
/**
* Assign path
*/
void Path::operator =(const Path& other)
{
this->path = other.path;
}
/**
* Assign path
*/
void Path::operator =(const string& path)
{
this->path = path;
}
/**
* Assign path
*/
void Path::operator =(const char* path)
{
this->path = path;
}
/**
* @return true if this file has .xopp or .xoj extension
*/

@ -41,6 +41,21 @@ public:
*/
bool operator ==(const Path& other);
/**
* Assign path
*/
void operator =(const Path& other);
/**
* Assign path
*/
void operator =(const string& path);
/**
* Assign path
*/
void operator =(const char* path);
/**
* Check if the path ends with this extension
*

Loading…
Cancel
Save