~ubuntu-branches/debian/sid/librecad/sid

« back to all changes in this revision

Viewing changes to src/actions/rs_actionlayersfreezeall.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2011-12-17 20:08:57 UTC
  • mfrom: (0.2.4)
  • Revision ID: package-import@ubuntu.com-20111217200857-r9wmynaloj230qm1
Tags: 1.0.0+nolibs-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
**
8
8
**
9
9
** This file may be distributed and/or modified under the terms of the
10
 
** GNU General Public License version 2 as published by the Free Software 
 
10
** GNU General Public License version 2 as published by the Free Software
11
11
** Foundation and appearing in the file gpl-2.0.txt included in the
12
12
** packaging of this file.
13
13
**
15
15
** but WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
17
** GNU General Public License for more details.
18
 
** 
 
18
**
19
19
** You should have received a copy of the GNU General Public License
20
20
** along with this program; if not, write to the Free Software
21
21
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22
22
**
23
 
** This copyright notice MUST APPEAR in all copies of the script!  
 
23
** This copyright notice MUST APPEAR in all copies of the script!
24
24
**
25
25
**********************************************************************/
26
26
 
42
42
 
43
43
QAction* RS_ActionLayersFreezeAll::createGUIAction(RS2::ActionType type, QObject* /*parent*/) {
44
44
    QAction* action=NULL;
45
 
        
46
 
        if (type==RS2::ActionLayersFreezeAll) {
47
 
                // tr("Freeze all")
48
 
                action = new QAction(tr("&Freeze all"),  NULL);
49
 
        //action->zetStatusTip(tr("Freeze all layers"));
50
 
                action->setIcon(QIcon(":/ui/hiddenblock.png"));
51
 
        }
52
 
        else if (type==RS2::ActionLayersDefreezeAll) {
53
 
                // tr("Defreeze all")
54
 
        action = new QAction(tr("&Defreeze all"),   NULL);
 
45
 
 
46
        if (type==RS2::ActionLayersFreezeAll) {
 
47
                // tr("Freeze all")
 
48
                action = new QAction(tr("&Hide all"),  NULL);
 
49
        //action->zetStatusTip(tr("Freeze all layers"));
 
50
                action->setIcon(QIcon(":/ui/hiddenblock.png"));
 
51
        }
 
52
        else if (type==RS2::ActionLayersDefreezeAll) {
 
53
                // tr("Defreeze all")
 
54
        action = new QAction(tr("&Show all"),   NULL);
55
55
        //action->zetStatusTip(tr("Defreeze all layers"));
56
 
                action->setIcon(QIcon(":/ui/visibleblock.png"));
57
 
        }
 
56
                action->setIcon(QIcon(":/ui/visibleblock.png"));
 
57
        }
58
58
    return action;
59
59
}
60
60