Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Slots | Public Member Functions
MenuNFT Class Reference

#include <nftemplate.h>

List of all members.

Public Slots

void RunNFTPlug (ScribusDoc *)

Public Member Functions

 MenuNFT ()
 ~MenuNFT ()

Detailed Description

Definition at line 39 of file nftemplate.h.


Constructor & Destructor Documentation

MenuNFT::MenuNFT ( ) [inline]

Definition at line 44 of file nftemplate.h.

{};
MenuNFT::~MenuNFT ( ) [inline]

Definition at line 45 of file nftemplate.h.

{};

Member Function Documentation

void MenuNFT::RunNFTPlug ( ScribusDoc *  ) [slot]

Definition at line 105 of file nftemplate.cpp.

{
       ScribusMainWindow* mw=ScCore->primaryMainWindow();
       nftdialog* nftdia = new nftdialog(mw, ScCore->getGuiLanguage(), PrefsManager::instance()->appPrefs.documentTemplatesDir);
       if (nftdia->exec())
       {
              qApp->setOverrideCursor(QCursor(Qt::WaitCursor), true);
              if (mw->loadDoc(QDir::cleanDirPath(nftdia->currentDocumentTemplate->file)))
              {
                     mw->doc->hasName = false;
                     UndoManager::instance()->renameStack(nftdia->currentDocumentTemplate->name);
                     mw->doc->DocName = nftdia->currentDocumentTemplate->name;
                     mw->updateActiveWindowCaption(QObject::tr("Document Template: ") + nftdia->currentDocumentTemplate->name);
                     QDir::setCurrent(PrefsManager::instance()->documentDir());
                     mw->removeRecent(QDir::cleanDirPath(nftdia->currentDocumentTemplate->file));
              }
              qApp->restoreOverrideCursor();
       }
       delete nftdia;
}

Here is the call graph for this function:


The documentation for this class was generated from the following files: