+ if (gridchanged){
+ if (GraphStart < 0)
+ GridOffset += GraphStart;
+ if(GridOffset < 0)
+ GridOffset += PlotGridX;
+ GridOffset %= PlotGridX;
+ }
+ break;
+
+ case Qt::Key_G:
+ if(PlotGridX || PlotGridY) {
+ PlotGridX= 0;
+ PlotGridY= 0;
+ } else {
+ PlotGridX= PlotGridXdefault;
+ PlotGridY= PlotGridYdefault;
+ }
+ break;
+
+ case Qt::Key_H:
+ puts("Plot Window Keystrokes:\n");
+ puts(" Key Action\n");
+ puts(" DOWN Zoom in");
+ puts(" G Toggle grid display");
+ puts(" H Show help");
+ puts(" L Toggle lock grid relative to samples");
+ puts(" LEFT Move left");
+ puts(" <CTL>LEFT Move left 1 sample");
+ puts(" <SHIFT>LEFT Page left");
+ puts(" LEFT-MOUSE-CLICK Set yellow cursor");
+ puts(" Q Hide window");
+ puts(" RIGHT Move right");
+ puts(" <CTL>RIGHT Move right 1 sample");
+ puts(" <SHIFT>RIGHT Page right");
+ puts(" RIGHT-MOUSE-CLICK Set purple cursor");
+ puts(" UP Zoom out");
+ puts("");
+ puts("Use client window 'data help' for more plot commands\n");
+ break;
+
+ case Qt::Key_L:
+ GridLocked= !GridLocked;
+ break;
+
+ case Qt::Key_Q:
+ this->hide();