Public Slots | Public Member Functions
PluginPaths Class Reference

#include <PluginPaths.h>

Inheritance diagram for PluginPaths:
QGpGuiTools::Dialog QGpGuiTools::FrameGrabber

List of all members.

Public Slots

void on_addPath_clicked ()
void on_removePath_clicked ()

Public Member Functions

QStringList getPaths ()
 PluginPaths (QWidget *parent=0)
 ~PluginPaths ()

Constructor & Destructor Documentation

PluginPaths::PluginPaths ( QWidget *  parent = 0)

References TRACE.

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

  QSettings reg;
  reg.beginGroup( "Plugins" );
  reg.beginGroup(DINVER_VERSION_TYPE);
  QStringList paths=reg.value( "Paths" ).toStringList();
  pathList->addItems(paths);
}

References TRACE.

{
  TRACE;}

Member Function Documentation

QStringList PluginPaths::getPaths ( )

References TRACE.

Referenced by PluginSelector::on_searchPaths_clicked().

{
  TRACE;
  QStringList paths;
  int n=pathList->count();
  for(int i=0;i < n;i++ ) {
    paths << pathList->item(i) ->text();
  }
  QSettings reg;
  reg.beginGroup( "Plugins" );
  reg.beginGroup(DINVER_VERSION_TYPE);
  reg.setValue( "Paths", paths);
  return paths;
}

References QGpCoreTools::tr(), and TRACE.

{
  TRACE;
#if defined (Q_WS_X11)
  QString path=Message::getExistingDirectory(tr( "Add plugin search path" ), tr("Dinver plugin (*.so)"));
#elif defined (Q_WS_WIN)
  QString path=Message::getExistingDirectory(tr( "Add plugin search path" ), tr("Dinver plugin (*.dll)"));
#elif defined (Q_WS_MAC)
  QString path=Message::getExistingDirectory(tr( "Add plugin search path" ), tr("Dinver plugin (*.dylib)"));
#endif
  if( !path.isEmpty()) pathList->addItem(path);
}

References TRACE.

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

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