8 #ifndef CC_PLY_OPEN_DIALOG
9 #define CC_PLY_OPEN_DIALOG
12 #include <ui_openPlyFileDlg.h>
15 #include <QStringList>
21 struct PlyLoadingContext;
24 class PlyOpenDlg :
public QDialog,
public Ui::PlyOpenDlg {
44 bool isValid(
bool displayErrors =
true)
const;
Dialog for configuration of PLY files opening sequence.
void addAllStdPropsAsSF()
bool isValid(bool displayErrors=true) const
Returns whether the current configuration is valid or not.
void addSFComboBox(int selectedIndex=0)
static void ResetApplyAll()
Resets the "apply all" flag (if set)
QStringList m_stdPropsText
Standard comboboxes elements.
std::vector< QComboBox * > m_listCombos
List-related comboboxes (faces, etc.)
void setListComboItems(const QStringList &listPropsText)
PlyOpenDlg(QWidget *parent=nullptr)
void saveContext(PlyLoadingContext *context)
Saves current configuration (for internal use)
void setSingleComboItems(const QStringList &singlePropsText)
bool canBeSkipped() const
Returns whether the dialog can be 'skipped'.
bool restorePreviousContext(bool &hasAPreviousContext)
Restores the previously saved configuration (if any)
void setDefaultComboItems(const QStringList &stdPropsText)
bool restoreContext(PlyLoadingContext *context, int &unassignedProps, int &mismatchProps)
Restore a previously saved configuration (for internal use)
QStringList m_singlePropsText
Single-related comboboxes elements.
std::vector< QComboBox * > m_standardCombos
Standard comboboxes.
std::vector< QComboBox * > m_singleCombos
Single-related comboboxes (texture index, etc.)
std::vector< QComboBox * > m_sfCombos
SF comboboxes.
QStringList m_listPropsText
List-related comboboxes elements.