1
/****************************************************************************
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)
6
Copyright (C) 2011 Dongxu Li (dongxuli2011@gmail.com)
7
Copyright (C) 2011 R. van Twisk (librecad@rvt.dds.nl)
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.
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.
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
**********************************************************************/
25
#ifndef RS_ACTIONLAYERSTOGGLEPRINT_H
26
#define RS_ACTIONLAYERSTOGGLEPRINT_H
28
#include "rs_actioninterface.h"
32
* whether a layer should appear on print (a help layer doesn't appear on
33
printout, and have straight lines of infinite length)
37
class RS_ActionLayersTogglePrint : public RS_ActionInterface {
40
RS_ActionLayersTogglePrint(RS_EntityContainer& container,
41
RS_GraphicView& graphicView);
42
~RS_ActionLayersTogglePrint() {}
44
static QAction* createGUIAction(RS2::ActionType /*type*/, QObject* /*parent*/);
46
virtual void init(int status=0);
47
virtual void trigger();