~librecad-dev/librecad/librecad

« back to all changes in this revision

Viewing changes to librecad/src/actions/rs_actionlayerstoggleprint.h

  • Committer: Scott Howard
  • Date: 2014-02-21 19:07:55 UTC
  • Revision ID: showard@debian.org-20140221190755-csjax9wb146hgdq4
first commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
 * Toggle whether a layer should appear on print (a help layer doesn't appear on
 
4
 printout, and have straight lines of infinite length)
 
5
 
 
6
Copyright (C) 2011 Dongxu Li (dongxuli2011@gmail.com)
 
7
Copyright (C) 2011 R. van Twisk (librecad@rvt.dds.nl)
 
8
 
 
9
This program is free software; you can redistribute it and/or
 
10
modify it under the terms of the GNU General Public License
 
11
as published by the Free Software Foundation; either version 2
 
12
of the License, or (at your option) any later version.
 
13
 
 
14
This program is distributed in the hope that it will be useful,
 
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
17
GNU General Public License for more details.
 
18
 
 
19
You should have received a copy of the GNU General Public License
 
20
along with this program; if not, write to the Free Software
 
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
22
**********************************************************************/
 
23
 
 
24
 
 
25
#ifndef RS_ACTIONLAYERSTOGGLEPRINT_H
 
26
#define RS_ACTIONLAYERSTOGGLEPRINT_H
 
27
 
 
28
#include "rs_actioninterface.h"
 
29
 
 
30
 
 
31
/**
 
32
 * whether a layer should appear on print (a help layer doesn't appear on
 
33
 printout, and have straight lines of infinite length)
 
34
 *
 
35
 * @author Dongxu Li
 
36
 */
 
37
class RS_ActionLayersTogglePrint : public RS_ActionInterface {
 
38
    Q_OBJECT
 
39
public:
 
40
    RS_ActionLayersTogglePrint(RS_EntityContainer& container,
 
41
                              RS_GraphicView& graphicView);
 
42
    ~RS_ActionLayersTogglePrint() {}
 
43
 
 
44
    static QAction* createGUIAction(RS2::ActionType /*type*/, QObject* /*parent*/);
 
45
 
 
46
    virtual void init(int status=0);
 
47
    virtual void trigger();
 
48
 
 
49
};
 
50
 
 
51
#endif