first commit
This commit is contained in:
42
project/fm_viewer/ui/rm_frame_graph.h
Normal file
42
project/fm_viewer/ui/rm_frame_graph.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user