All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Slots | Public Member Functions
SciFigs::SciFigsPreferences Class Reference

#include <SciFigsPreferences.h>

Inheritance diagram for SciFigs::SciFigsPreferences:
QGpGuiTools::Dialog QGpGuiTools::FrameGrabber

List of all members.

Public Slots

void on_addPath_clicked ()
void on_removePath_clicked ()
void on_searchPlugin_clicked ()

Public Member Functions

void savePluginList ()
 SciFigsPreferences (QWidget *parent=0, Qt::WFlags fl=0)
 ~SciFigsPreferences ()

Constructor & Destructor Documentation

SciFigs::SciFigsPreferences::SciFigsPreferences ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

References SciFigs::SciFigsGlobal::pluginSettings(), and TRACE.

    : Dialog(parent, fl)
{
  TRACE;
  setupUi(this);

  QSettings * reg=SciFigsGlobal::pluginSettings();
  QStringList paths=reg->value("Paths").toStringList();
  pathList->addItems(paths);
  setPluginList(reg->value("pluginList").toStringList());
  delete reg;
}

References TRACE.

{
  TRACE;
}

Member Function Documentation

References QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  QString path=Message::getExistingDirectory(tr("Add plugin search path"));
  if(!path.isEmpty()) pathList->addItem(path);
}

References TRACE.

{
  TRACE;
  delete pathList->takeItem(pathList->currentRow());
}

References SciFigs::SciFigsPlugin::getPluginList(), MSG_ID, QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  QStringList paths=getPaths();
  pluginList->clear();
  bool ok;
  QStringList plugins=SciFigsPlugin::getPluginList(File::getLibList(paths), ok);
  if(!ok) {
    Message::warning(MSG_ID, tr("Searching SciFigs plugins"), tr("One ore more plugins in your search path(s) "
                          "are not compatible with this SciFigs version. It is likely that old versions of plugins "
                          "were not de-installed properly."));
  }
  setPluginList(plugins);
}

References SciFigs::SciFigsGlobal::pluginSettings(), and TRACE.

Referenced by SciFigs::GraphicSheet::setPreferences().

{
  TRACE;
  QStringList paths=getPaths();
  QSettings * reg=SciFigsGlobal::pluginSettings();
  reg->setValue("Paths", paths);
  QStringList tools=getPluginList();
  reg->setValue("pluginList",tools);
  delete reg;
}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines