You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.1 KiB
C++
71 lines
1.1 KiB
C++
#ifndef COBJECTSELECTDIALOG_H
|
|
#define COBJECTSELECTDIALOG_H
|
|
|
|
|
|
#include "cobject.h"
|
|
|
|
#include <QList>
|
|
#include <QStandardItemModel>
|
|
#include <QDialog>
|
|
|
|
|
|
namespace Ui {
|
|
class cObjectSelectDialog;
|
|
}
|
|
|
|
/*!
|
|
\brief
|
|
|
|
\class cObjectSelectDialog cobjectselectdialog.h "cobjectselectdialog.h"
|
|
*/
|
|
class cObjectSelectDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
/*!
|
|
\brief
|
|
|
|
\fn cObjectSelectDialog
|
|
\param parent
|
|
*/
|
|
explicit cObjectSelectDialog(QWidget *parent = 0);
|
|
/*!
|
|
\brief
|
|
|
|
\fn ~cObjectSelectDialog
|
|
*/
|
|
~cObjectSelectDialog();
|
|
|
|
/*!
|
|
\brief
|
|
|
|
\fn setObjectList
|
|
\param lpObjectList
|
|
\param objectDescriptionList
|
|
*/
|
|
void setObjectList(cObjectList* lpObjectList, QList<cObjectDescription *> objectDescriptionList);
|
|
/*!
|
|
\brief
|
|
|
|
\fn selected
|
|
\return cObject
|
|
*/
|
|
cObject* selected();
|
|
|
|
private:
|
|
Ui::cObjectSelectDialog* ui; /*!< TODO: describe */
|
|
QStandardItemModel* m_lpObjectListModel; /*!< TODO: describe */
|
|
|
|
private slots:
|
|
/*!
|
|
\brief
|
|
|
|
\fn onObjectDoubleClicked
|
|
\param index
|
|
*/
|
|
void onObjectDoubleClicked(const QModelIndex& index);
|
|
};
|
|
|
|
#endif // COBJECTSELECTDIALOG_H
|