syschartnavigationmgt.h 1.68 KB
Newer Older
Cindy Ye's avatar
Cindy Ye committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#ifndef SYSCHARTNAVIGATIONMGT_H
#define SYSCHARTNAVIGATIONMGT_H

#include <topcore/topclassabs.h>
#include <topcore/topclasshelper.h>
#include <tdatabaseutil/tsqlselectorv2.h>

class QVBoxLayout;
class TSplitter;
class TTableViewV2;
class TSearchEntry;
class TUiLoader;
class TPageTool;
class TDialog;
class TWidget;
class TSqlSelectorV2;
class TTableView;
class SysChartNavigation;

class SysChartNavigationMgt: public TopClassAbs
{
    Q_OBJECT
public:
    explicit SysChartNavigationMgt(const QString &iModuleName = QString(""),
                                      const QVariantMap &iUrlPars = QVariantMap(),
                                      QWidget *iParent = nullptr);
    ~SysChartNavigationMgt();
public slots:
    void refresh(bool iResetPageBol = true);
    QVariantList selectedItems() const;
    QVariantList selectedDataMaps() const;
    QString specifiedClass();

private slots:
    void onSelectionChanged();
    void onDetailChanged();
    void onPageChanged();

private:
    void initUi();
    void initSpecifiedClass();
    TSqlSelectorV2 getSqlSelector(bool iResetPageBol = true);
    void graphOnly();
    void parseParams(const QVariantMap &iParamMap);

private:
    TSplitter *mBodySplitter = nullptr;
    QWidget *mBodyWidget = nullptr;
    QWidget *mMgtWidget = nullptr;
    QVBoxLayout *mBodyLayout = nullptr;
    TSearchEntry *mSearchEntry = nullptr;
    TPageTool *mPageTool = nullptr;
    TTableView *mTableView = nullptr;
    SysChartNavigation *mDetail = nullptr;
    TopClassTableConf mTableConf;
    QString mSpecifiedClass;
    QString mLastChartNaviId = "";
    int mToolBarMode = 0; //0:工具栏只有搜索,1:工具栏还有导出功能
};
#endif // SYSCHARTNAVIGATIONMGT_H