OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [gui_plugin/] [CpuWidgets/] [SymbolBrowserArea.h] - Rev 5

Go to most recent revision | Compare with Previous | Blame | View Log

/**
 * @file
 * @copyright  Copyright 2017 GNSS Sensor Ltd. All right reserved.
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
 * @brief      Symbol Browser main area.
 */
 
#pragma once
 
#include "api_core.h"   // MUST BE BEFORE QtWidgets.h or any other Qt header.
#include "attribute.h"
#include "igui.h"
#include "iservice.h"
#include "coreservices/isocinfo.h"
#include "coreservices/isrccode.h"
 
#include <QtWidgets/QWidget>
#include <QtWidgets/QTableWidget>
 
namespace debugger {
 
class SymbolBrowserArea : public QTableWidget,
                          public IGuiCmdHandler {
    Q_OBJECT
public:
    explicit SymbolBrowserArea(IGui *gui, QWidget *parent);
    virtual ~SymbolBrowserArea();
 
    /** IGuiCmdHandler */
    virtual void handleResponse(AttributeType *req, AttributeType *resp);
 
public slots:
    void slotCellDoubleClicked(int row, int column);
    void slotFilterChanged(const QString &flt);
    void slotHandleResponse();
 
signals:
    void signalHandleResponse();
    void signalShowFunction(uint64_t addr, uint64_t sz);
    void signalShowData(uint64_t addr, uint64_t sz);
 
private:
    void setListSize(int sz);
 
private:
    enum EColumnNames {
        COL_symbol,
        COL_type,
        COL_address,
        COL_Total
    };
 
    AttributeType symbolList_;
    AttributeType symbolFilter_;
    IGui *igui_;
    int lineHeight_;
    int hideLineIdx_;
};
 
}  // namespace debugger
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.