Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
scribuswin.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
scribuswin.h - description
9
-------------------
10
begin : Mit Nov 6 2002
11
copyright : (C) 2002 by Franz Schmid
12
email : Franz.Schmid@altmuehlnet.de
13
***************************************************************************/
14
15
/***************************************************************************
16
* *
17
* This program is free software; you can redistribute it and/or modify *
18
* it under the terms of the GNU General Public License as published by *
19
* the Free Software Foundation; either version 2 of the License, or *
20
* (at your option) any later version. *
21
* *
22
***************************************************************************/
23
24
#ifndef SCRIBUSWIN_H
25
#define SCRIBUSWIN_H
26
27
#include <QCloseEvent>
28
#include <QMainWindow>
29
#include <QMdiSubWindow>
30
31
class
ScribusDoc
;
32
class
ScribusMainWindow
;
33
class
ScribusView
;
34
35
#include "scribusapi.h"
40
class
SCRIBUS_API
ScribusWin
:
public
QMainWindow
41
{
42
Q_OBJECT
43
44
public
:
45
ScribusWin
(QWidget* parent,
ScribusDoc
* doc);
46
~
ScribusWin
() {};
47
void
closeEvent(QCloseEvent *ce);
48
void
setView(
ScribusView
* newView);
49
void
setMainWindow(
ScribusMainWindow
*);
50
ScribusView
* view()
const
{
return
m_View;}
51
ScribusDoc
* doc()
const
{
return
m_Doc;}
52
QMdiSubWindow* getSubWin() {
return
m_subWindow; }
53
void
setSubWin(QMdiSubWindow *win) { m_subWindow = win; }
54
55
public
slots:
56
void
slotSaved(QString newName);
57
58
signals:
59
void
autoSaved();
60
61
protected
:
62
QMdiSubWindow *m_subWindow;
63
ScribusDoc
*m_Doc;
64
ScribusMainWindow
*m_ScMW;
65
ScribusView
*m_View;
66
int
m_winIndex;
67
68
};
69
70
#endif
ScribusMainWindow
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition:
scribus.h:123
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
ScribusWin
Definition:
scribuswin.h:40
ScribusView
Definition:
scribusview.h:87
scribus
scribuswin.h
Generated on Tue Sep 29 2015 09:15:11 for Scribus by
1.8.9.1