The SelectModule class provides a list of radio buttons to choose the module that should handle a certain file type. More...
#include <FileDialog.h>
Public Types | |
typedef QMap< QString, QString > | Dict |
Public Member Functions | |
QString | getModule () const |
SelectModule (const QString &type, const Dict &, QWidget *parent) | |
virtual | ~SelectModule () |
Import/Export handler | |
These methods accepts a file name or a list of file names and return a map of file names with the associated Python module that should open the file. | |
void | accept () |
void | reject () |
static Dict | exportHandler (const QString &fn, const QString &filter=QString()) |
static Dict | exportHandler (const QStringList &fn, const QString &filter=QString()) |
static Dict | importHandler (const QString &fn, const QString &filter=QString()) |
static Dict | importHandler (const QStringList &fn, const QString &filter=QString()) |
The SelectModule class provides a list of radio buttons to choose the module that should handle a certain file type.
typedef QMap<QString, QString> Gui::SelectModule::Dict |
References accept(), and draftgeoutils.intersections::connect().
|
virtual |
void SelectModule::accept | ( | void | ) |
|
static |
References exportHandler().
Referenced by exportHandler().
|
static |
References App::GetApplication(), App::Application::getExportFilters(), Gui::getMainWindow(), and getModule().
QString SelectModule::getModule | ( | ) | const |
Referenced by exportHandler(), and importHandler().
|
static |
References importHandler().
Referenced by Gui::RecentFilesAction::activateFile(), importHandler(), and Gui::MainWindow::loadUrls().
|
static |
References App::GetApplication(), App::Application::getImportFilters(), Gui::getMainWindow(), and getModule().
void SelectModule::reject | ( | void | ) |
Referenced by draftguitools.gui_hatch.Draft_Hatch_TaskPanel::accept(), draftguitools.gui_setstyle.Draft_SetStyle_TaskPanel::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelCmd::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanelEdit::accept(), drafttaskpanels.task_shapestring.ShapeStringTaskPanel::action(), femexamples.examplesgui.FemExamples::clicked(), and PathScripts.PathToolBitLibraryGui.ToolBitLibrary::toolEdit().