~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/scraction.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <qiconset.h>
23
23
#include "scraction.h"
24
24
#include "scraction.moc"
25
 
 
 
25
#include "scribus.h"
 
26
#include "scribusdoc.h"
26
27
 
27
28
ScrAction::ScrAction( QObject * parent, const char * name ) : QAction( parent, name )
28
29
{
56
57
                case RecentFile:
57
58
                        _dataQString=extraQString;
58
59
                        break;
 
60
                case RecentPaste:
 
61
                        _dataQString=extraQString;
 
62
                        break;
59
63
                case DLL:
60
64
                        pluginID=extraInt;
61
65
                        break;
86
90
{
87
91
        _actionType=ScrAction::Normal;
88
92
        menuIndex=-1;
89
 
        widgetAddedTo=NULL;
90
 
        containerWidgetAddedTo=NULL;
 
93
        widgetAddedTo=0;
 
94
        containerWidgetAddedTo=0;
91
95
        savedKeySequence=QKeySequence("");
92
96
        shortcutSaved=false;
93
97
        fakeToggle=false;
121
125
                emit activatedData(windowID);
122
126
        if (_actionType==ScrAction::RecentFile)
123
127
                emit activatedData(_dataQString);
 
128
        if (_actionType==ScrAction::RecentPaste)
 
129
                emit activatedData(_dataQString);
124
130
        if (_actionType==ScrAction::RecentScript)
125
131
                emit activatedData(menuText());
126
132
        if (_actionType==ScrAction::UnicodeChar)
127
133
                activatedUnicodeShortcut(name(), _dataInt);
128
134
        if (_actionType==ScrAction::Layer)
129
135
                emit activatedData(layerID);
 
136
        if (_actionType==ScrAction::ActionDLL)
 
137
                emit activatedData(((ScribusMainWindow*)parent())->doc);
130
138
}
131
139
 
132
140
void ScrAction::toggledToToggledData(bool ison)
145
153
                        emit toggledData(ison, windowID);
146
154
                if (_actionType==ScrAction::RecentFile)
147
155
                        emit toggledData(ison, _dataQString);
 
156
                if (_actionType==ScrAction::RecentPaste)
 
157
                        emit toggledData(ison, _dataQString);
148
158
                if (_actionType==ScrAction::RecentScript)
149
159
                        emit toggledData(ison, menuText());
150
160
                if (_actionType==ScrAction::Layer)