43 lines
891 B
C++
43 lines
891 B
C++
#ifndef RM_FRAME_GRAPH_H
|
|
#define RM_FRAME_GRAPH_H
|
|
|
|
#include "../rm_include.h"
|
|
#include "rm_widget_base.h"
|
|
#include "../fm_event_types.h"
|
|
class FMSpeedFrame;
|
|
class RMGraphWidget;
|
|
class FMButton;
|
|
|
|
class RMFrameGraph : public RMWidgetBase
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RMFrameGraph(QWidget *parent = nullptr);
|
|
|
|
FMSpeedFrame* speed;
|
|
RMGraphWidget* graph;
|
|
|
|
FMButton* xOnBtn;
|
|
QLabel* xLabel;
|
|
FMButton* yOnBtn;
|
|
QLabel* yLabel;
|
|
FMButton* zOnBtn;
|
|
QLabel* zLabel;
|
|
|
|
private:
|
|
QHBoxLayout* layout;
|
|
void createXYZLabel();
|
|
void createZoomButtons();
|
|
|
|
FMButton* _zoomIn;
|
|
FMButton* _zoomOut;
|
|
|
|
static FMButton* _createXYZ(QWidget* parent, QLayout* layout, const char* icon, QLabel** lb, int color);
|
|
|
|
public slots:
|
|
void onAppEvent(RMApp::Event event,int param) override;
|
|
void onZoomChange(bool zi,bool zo);
|
|
};
|
|
|
|
#endif // RM_FRAME_GRAPH_H
|