DialogSubWindowSelector can force a min and max number of windows

This commit is contained in:
jfmcarreira committed 2014-11-01 23:53:21 +00:00
1 parent 356840f6ab
commit 58b19940f3
3 files changed
+42 -25

No files matched your search

+4 -2
View File
@@ -49,7 +49,7 @@ class DialogSubWindowSelector: public QDialog
Q_OBJECT
public:
DialogSubWindowSelector( QWidget *parent = 0, QMdiArea *mdiArea = 0, Int numberWindowsSelected = -1 );
DialogSubWindowSelector( QWidget *parent = 0, QMdiArea *mdiArea = 0, Int minWindowsSelected = 0, Int maxWindowsSelected = -1 );
Void setSubWindowList( QStringList cWindowListNames );
QStringList getSelectedWindows()
@@ -57,12 +57,14 @@ public:
return m_pcSelectedWindowListNames;
}
private:
Int m_iNumberOfSelectedWindows;
Int m_iMinSelectedWindows;
Int m_iMaxSlectedWindows;
QMdiArea* m_pcMainWindowMdiArea;
QStringList m_pcWindowListNames;
QStringList m_pcSelectedWindowListNames;
QComboBox* m_comboBoxWindowList;
QDialogButtonBox* m_pushButtonOkCancel;
QPushButton* m_pushButtonAdd;
QPushButton* m_pushButtonAddAll;
QPushButton* m_pushButtonRemove;