mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-22 12:28:51 +00:00
32 lines
637 B
C++
32 lines
637 B
C++
#pragma once
|
|
|
|
#include "Cutter.h"
|
|
|
|
class MainWindow;
|
|
|
|
class CutterSeekableWidget : public QObject
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CutterSeekableWidget(QObject *parent = nullptr);
|
|
~CutterSeekableWidget();
|
|
void seek(RVA addr);
|
|
void toggleSyncWithCore();
|
|
RVA getOffset();
|
|
RVA getIndependentOffset();
|
|
RVA getPrevIndependentOffset();
|
|
bool getSyncWithCore();
|
|
void setIndependentOffset(RVA addr);
|
|
void onSeekChanged(RVA addr);
|
|
|
|
private:
|
|
RVA independentOffset = RVA_INVALID;
|
|
RVA prevIdenpendentOffset = RVA_INVALID;
|
|
bool isInSyncWithCore = true;
|
|
|
|
signals:
|
|
void seekChanged(RVA addr);
|
|
|
|
}; |