PageRenderTime 64ms CodeModel.GetById 36ms app.highlight 3ms RepoModel.GetById 22ms app.codeStats 0ms

/Primitive/MainApp/commands/grid.h

https://bitbucket.org/flexcomputer/primitive
C Header | 34 lines | 25 code | 6 blank | 3 comment | 0 complexity | 66909709268c4023a9c0a8f7ebe6c2e3 MD5 | raw file
 1#ifndef GRID_H
 2#define GRID_H
 3
 4#include <QAction>
 5#include "designtool.h"
 6#include "settings.h"
 7
 8class GridTool : public DesignTool
 9{
10    Q_OBJECT
11public:
12    GridTool(DrawingView* view) :
13    DesignTool(view)
14    {
15        // Create the action
16        _action = new QAction(tr("&Grid"), _mainWindow );
17        _action->setStatusTip(tr("Shows or hides the grid"));
18        connect(_action, SIGNAL(changed()), this, SLOT(triggered()));
19        _action->setCheckable(true);
20        _action->setChecked(true);
21        // _action->setChecked(settings.showGrid());
22        // Set the mnemonic
23        _mnemonic = tr("GRID");
24    }
25    
26signals:
27    
28public slots:
29    void start();
30    void triggered();
31    
32};
33
34#endif // GRID_H