MediatorDisplay.h 968 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #pragma once
  2. #include <QObject>
  3. class MediatorDisplay:public QObject
  4. {
  5. Q_OBJECT
  6. public:
  7. MediatorDisplay();
  8. virtual ~MediatorDisplay();
  9. void setLeftNum(int value);
  10. void setRightNum(int value);
  11. int getLeftNum();
  12. int getRightNum();
  13. void setLeftScrollValue(int value);
  14. void setRightScrollValue(int value);
  15. int getLeftScrollValue();
  16. int getRightScrollValue();
  17. void setLeftScrollXValue(int value);
  18. void setRightScrollXValue(int value);
  19. int getLeftScrollXValue();
  20. int getRightScrollXValue();
  21. signals:
  22. //当前行同步
  23. void syncCurLineNum(int direction);
  24. //滚动条同步
  25. void syncCurScrollValue(int direction);
  26. void syncCurScrollXValue(int direction);
  27. private:
  28. //左右当前行的值
  29. int m_leftLineNum;
  30. int m_rightLineNum;
  31. //左右滚动条的值
  32. int m_leftScrollValue;
  33. int m_rightScrollValue;
  34. //左右滚动条的值x
  35. int m_leftScrollXValue;
  36. int m_rightScrollXValue;
  37. };