Scribus
Open source desktop publishing at your fingertips
contextmenu.h
1 /*
2  For general Scribus (>=1.3.2) copyright and licensing information please refer
3  to the COPYING file provided with the program. Following this notice may exist
4  a copyright and/or license notice that predates the release of Scribus 1.3.2
5  for which a new license (GPL+exception) is in place.
6  */
7 /***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15 
16 //CB Added 22102007 for the canvas context menu
17 
18 #include <QMenu>
19 #include <QStringList>
20 
21 class QWidget;
22 
23 
24 #include "selection.h"
25 
26 class ScribusDoc;
27 class ScribusMainWindow;
28 
29 class ContextMenu : public QMenu
30 {
31  Q_OBJECT
32 public:
33  ContextMenu(Selection &sel, ScribusMainWindow *actionsParent, ScribusDoc* doc, QWidget* parent=0);
34  ContextMenu(ScribusMainWindow *actionsParent, ScribusDoc* doc, double mx, double my, QWidget* parent=0);
35  ~ContextMenu();
36 
37 protected:
38  void processSelection();
39  void createMenuItems_Selection();
40  void createMenuItems_NoSelection(double mx, double my);
41 
42  Selection m_Sel;
43  QStringList m_actionList;
44  ScribusMainWindow *m_ScMW;
45  ScribusDoc *m_doc;
46 
47  QString pageDeletePrimaryString;
48  bool onAPage;
49 };
Definition: contextmenu.h:29
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
the Document Class
Definition: scribusdoc.h:90
Definition: selection.h:34