12 #include <QApplication>
14 #include "scripterimpl.h"
19 Q_PROPERTY(QWidget* mainWindow READ mainWindow)
20 Q_PROPERTY(QWidget* properties READ properties)
21 Q_PROPERTY(QWidget* nodes READ nodes)
22 Q_PROPERTY(QWidget* outline READ outline)
23 Q_PROPERTY(QWidget* scrapbook READ scrapbook)
24 Q_PROPERTY(QWidget* layers READ layers)
25 Q_PROPERTY(QWidget* documentChecker READ documentChecker)
26 Q_PROPERTY(QWidget* pages READ pages)
27 Q_PROPERTY(QWidget* bookmarks READ bookmarks)
28 Q_PROPERTY(
bool newDocument READ newDocument)
34 void alert(
const QString & message);
42 QWidget* mainWindow() {
43 return ScCore->primaryMainWindow();
50 QWidget* properties() {
51 return (QWidget*)ScCore->primaryMainWindow()->propertiesPalette;
59 return (QWidget*)ScCore->primaryMainWindow()->nodePalette;
67 return (QWidget*)ScCore->primaryMainWindow()->outlinePalette;
74 QWidget* scrapbook() {
75 return (QWidget*)ScCore->primaryMainWindow()->scrapbookPalette;
83 return (QWidget*)ScCore->primaryMainWindow()->layerPalette;
90 QWidget* documentChecker() {
91 return (QWidget*)ScCore->primaryMainWindow()->docCheckerPalette;
99 return (QWidget*)ScCore->primaryMainWindow()->pagePalette;
106 QWidget* bookmarks() {
107 return (QWidget*)ScCore->primaryMainWindow()->bookmarkPalette;
void alert(const QString &message)
Definition: api_dialogs.cpp:30
bool slotFileNew()
generate a new document in the current view
Definition: scribus.cpp:2121
Definition: api_dialogs.h:16