|
a/src/qtgui/restable.h |
|
b/src/qtgui/restable.h |
|
... |
|
... |
21 |
#include <Qt>
|
21 |
#include <Qt>
|
22 |
|
22 |
|
23 |
#include <string>
|
23 |
#include <string>
|
24 |
#include <map>
|
24 |
#include <map>
|
25 |
#include <vector>
|
25 |
#include <vector>
|
26 |
#include MEMORY_INCLUDE
|
26 |
#include <memory>
|
27 |
|
27 |
|
28 |
#include "ui_restable.h"
|
28 |
#include "ui_restable.h"
|
29 |
#include "docseq.h"
|
29 |
#include "docseq.h"
|
30 |
#include "plaintorich.h"
|
30 |
#include "plaintorich.h"
|
31 |
|
31 |
|
|
... |
|
... |
49 |
int role = Qt::DisplayRole ) const;
|
49 |
int role = Qt::DisplayRole ) const;
|
50 |
virtual void saveAsCSV(FILE *fp);
|
50 |
virtual void saveAsCSV(FILE *fp);
|
51 |
virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
|
51 |
virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
|
52 |
// Specific methods
|
52 |
// Specific methods
|
53 |
virtual void readDocSource();
|
53 |
virtual void readDocSource();
|
54 |
virtual void setDocSource(STD_SHARED_PTR<DocSequence> nsource);
|
54 |
virtual void setDocSource(std::shared_ptr<DocSequence> nsource);
|
55 |
virtual STD_SHARED_PTR<DocSequence> getDocSource() {return m_source;}
|
55 |
virtual std::shared_ptr<DocSequence> getDocSource() {return m_source;}
|
56 |
virtual void deleteColumn(int);
|
56 |
virtual void deleteColumn(int);
|
57 |
virtual const std::vector<std::string>& getFields() {return m_fields;}
|
57 |
virtual const std::vector<std::string>& getFields() {return m_fields;}
|
58 |
virtual const std::map<std::string, QString>& getAllFields()
|
58 |
virtual const std::map<std::string, QString>& getAllFields()
|
59 |
{
|
59 |
{
|
60 |
return o_displayableFields;
|
60 |
return o_displayableFields;
|
|
... |
|
... |
71 |
|
71 |
|
72 |
signals:
|
72 |
signals:
|
73 |
void sortDataChanged(DocSeqSortSpec);
|
73 |
void sortDataChanged(DocSeqSortSpec);
|
74 |
|
74 |
|
75 |
private:
|
75 |
private:
|
76 |
mutable STD_SHARED_PTR<DocSequence> m_source;
|
76 |
mutable std::shared_ptr<DocSequence> m_source;
|
77 |
std::vector<std::string> m_fields;
|
77 |
std::vector<std::string> m_fields;
|
78 |
std::vector<FieldGetter*> m_getters;
|
78 |
std::vector<FieldGetter*> m_getters;
|
79 |
static std::map<std::string, QString> o_displayableFields;
|
79 |
static std::map<std::string, QString> o_displayableFields;
|
80 |
bool m_ignoreSort;
|
80 |
bool m_ignoreSort;
|
81 |
FieldGetter* chooseGetter(const std::string&);
|
81 |
FieldGetter* chooseGetter(const std::string&);
|
|
... |
|
... |
125 |
void setRclMain(RclMain *m, bool ismain);
|
125 |
void setRclMain(RclMain *m, bool ismain);
|
126 |
|
126 |
|
127 |
public slots:
|
127 |
public slots:
|
128 |
virtual void onTableView_currentChanged(const QModelIndex&);
|
128 |
virtual void onTableView_currentChanged(const QModelIndex&);
|
129 |
virtual void on_tableView_entered(const QModelIndex& index);
|
129 |
virtual void on_tableView_entered(const QModelIndex& index);
|
130 |
virtual void setDocSource(STD_SHARED_PTR<DocSequence> nsource);
|
130 |
virtual void setDocSource(std::shared_ptr<DocSequence> nsource);
|
131 |
virtual void saveColState();
|
131 |
virtual void saveColState();
|
132 |
virtual void resetSource();
|
132 |
virtual void resetSource();
|
133 |
virtual void readDocSource(bool resetPos = true);
|
133 |
virtual void readDocSource(bool resetPos = true);
|
134 |
virtual void onSortDataChanged(DocSeqSortSpec);
|
134 |
virtual void onSortDataChanged(DocSeqSortSpec);
|
135 |
virtual void createPopupMenu(const QPoint& pos);
|
135 |
virtual void createPopupMenu(const QPoint& pos);
|