1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
4 * PartSet_WidgetFileSelector.h
6 * Created on: May 18, 2015
10 #ifndef PARTSET_WIDGETFILESELECTOR_H_
11 #define PARTSET_WIDGETFILESELECTOR_H_
15 #include <ModuleBase_WidgetFileSelector.h>
17 class ModuleBase_IWorkshop;
21 * Customization of ModuleBase_WidgetFileSelector in order to write
22 * format of exported file.
24 class PARTSET_EXPORT PartSet_WidgetFileSelector : public ModuleBase_WidgetFileSelector
29 /// \param theParent the parent object
30 /// \param theWorkshop instance of workshop interface
31 /// \param theData the widget configuration. The attribute of the model widget is obtained from
32 PartSet_WidgetFileSelector(QWidget* theParent,
33 ModuleBase_IWorkshop* theWorkshop,
34 const Config_WidgetAPI* theData);
36 virtual ~PartSet_WidgetFileSelector() {}
39 /// Reimplemented from ModuleBase_WidgetFileSelector::storeValueCustom()
40 virtual bool storeValueCustom() const;
42 /// Reimplemented from ModuleBase_WidgetFileSelector::restoreValue()
43 virtual bool restoreValueCustom();
45 /// Returns a full format string for the short format
46 QString shortFormatToFullFormat( const QString & theShortFormat ) const;
49 ModuleBase_IWorkshop* myWorkshop; // the current workshop
52 #endif /* PARTSET_WIDGETFILESELECTOR_H_ */