* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author Richard Heck
+ * \author Richard Kimberly Heck
* \author Et Alia
*
* Full author contact details are available in file CREDITS.
#include <QObject>
class QAbstractItemModel;
-class QAbstractListModel;
class QModelIndex;
-class QListView;
class QPushButton;
class QVariant;
class QAbstractItemView;
* of items from a list of available items. Adapted from code originally
* written for GuiCitationDialog.
* Note that this is a not a QWidget, though it could be converted to
- * one. Rather, the managed widgets---see constructor for descripton
+ * one. Rather, the managed widgets---see constructor for description
* of them---should be created independently, and then passed to the
* constructor.
*/
/// Returns the selected index. Note that this will depend upon
/// selectedFocused().
QModelIndex getSelectedIndex(int const c = 0) const;
+ ///
+ void allowMultiSelection(bool b) { allow_multi_selection_ = b; }
Q_SIGNALS:
/// Emitted when the list of selected items has changed.
///
void availableLV_doubleClicked(const QModelIndex &);
///
- bool eventFilter(QObject *, QEvent *);
+ bool eventFilter(QObject *, QEvent *) override;
///
void updateButtons();
bool selectedHasFocus_;
///
int main_sel_col_;
+ ///
+ bool allow_multi_selection_;
};
} // namespace frontend