summaryrefslogtreecommitdiff
path: root/plugins/warp/ui/matches.h
blob: 88926add6e0cdc25d110ffdf2f39213e7749942d (plain)
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
#pragma once

#include <QSplitter>

#include "filter.h"
#include "render.h"
#include "shared/fetcher.h"
#include "shared/function.h"

class WarpCurrentFunctionWidget : public QWidget
{
    Q_OBJECT
    FunctionRef m_current;

    QSplitter *m_splitter;

    WarpFunctionTableWidget *m_tableWidget;
    WarpFunctionInfoWidget *m_infoWidget;

    LoggerRef m_logger;

    std::shared_ptr<WarpFetcher> m_fetcher;

public:
    explicit WarpCurrentFunctionWidget();

    ~WarpCurrentFunctionWidget() override = default;

    void SetFetcher(std::shared_ptr<WarpFetcher> fetcher);

    void SetCurrentFunction(FunctionRef current);

    FunctionRef GetCurrentFunction() { return m_current; };

    void UpdateMatches();
};