#include <PluginPaths.h>
List of all members.
Constructor & Destructor Documentation
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);
}
Member Function Documentation
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: