kig
kig_view.cpp
Go to the documentation of this file.
530 topLevelWidget()->setWindowState( topLevelWidget()->windowState() | Qt::WindowFullScreen ); // set
532 topLevelWidget()->setWindowState( topLevelWidget()->windowState() & ~Qt::WindowFullScreen ); // reset
int width() const
Definition: kig_commands.h:210
bool end()
a KigCommand represents almost every action performed in Kig.
Definition: kig_commands.h:44
void fill(const QColor &color)
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void setFocusPolicy(Qt::FocusPolicy policy)
const std::set< ObjectHolder * > & objectsSet() const
Definition: kig_document.cc:51
void setAttribute(Qt::WidgetAttribute attribute, bool on)
void setPageStep(int)
Qt::MouseButtons buttons() const
void recenterScreen()
this recenters the screen, that is, resets the shown rect to mpart->document().suggestedRect().
Definition: kig_view.cpp:202
ScreenInfo is a simple utility class that maps a region of the document onto a region of the screen...
Definition: screeninfo.h:31
void setSpacing(int spacing)
The Coordinate class is the basic class representing a 2D location by its x and y components...
Definition: coordinate.h:33
static void getTwoCoordinates(const QString &caption, const QString &label, QWidget *parent, bool *ok, const KigDocument &doc, Coordinate *cvalue, Coordinate *cvalue2)
Static convenience function to get two Coordinates at once from the user.
Definition: kiginputdialog.cc:265
virtual void mouseMoved(QMouseEvent *, KigWidget *)
mouse moved without any buttons down...
Definition: mode.cc:91
QSize size() const
const QRect & rect() const
void setWindowState(QFlags< Qt::WindowState > windowState)
const ScreenInfo & screenInfo() const
the part of the document we're currently showing i.e.
Definition: kig_view.cpp:272
QWidget * topLevelWidget() const
Qt::WindowStates windowState() const
Qt::Orientation orientation() const
const QSize & oldSize() const
Qt::MouseButton button() const
void drawPixmap(const QRectF &target, const QPixmap &pixmap, const QRectF &source)
void setObjectName(const QString &name)
void slotRecenterScreen()
this gets called if the user clicks the recenter screen button.
Definition: kig_view.cpp:515
void setMinimum(int)
void setMargin(int margin)
QRect rect() const
Rect matchShape(const Rect &rhs, bool shrink=false) const
return a rect which is a copy of this rect, but has an aspect ratio equal to rhs's one...
Definition: rect.cc:282
void updateCurPix(const std::vector< QRect > &=std::vector< QRect >())
update curPix (bitBlt stillPix onto curPix..)
Definition: kig_view.cpp:187
void drawGrid(const CoordinateSystem &c, bool showGrid=true, bool showAxes=true)
Definition: kigpainter.cpp:507
const QSize & size() const
virtual void leftMouseMoved(QMouseEvent *, KigWidget *)
this means: mouse moved with left mouse button down (in case that wasn't clear...) ...
Definition: mode.cc:56
void setValue(int)
virtual QString coordinateFormatNoticeMarkup() const =0
Like coordinateFormatNotice(), but with HTML tags useful to have a rich text...
virtual QSize sizeHint() const
int delta() const
void repaint()
KigWidget(KigPart *doc, KigView *view, QWidget *parent=0, bool fullscreen=false)
standard qwidget constructor.
Definition: kig_view.cpp:45
QPixmap curPix
temporary, gets bitBlt'd (copied) onto the widget (to avoid flickering)
Definition: kig_view.h:84
void clearStillPix()
The following are functions used by KigMode's to tell us to draw stuff...
Definition: kig_view.cpp:245
void setSingleStep(int)
KigView(KigPart *part, bool fullscreen=false, QWidget *parent=0)
Definition: kig_view.cpp:303
void triggerAction(SliderAction action)
void updateWidget(const std::vector< QRect > &=std::vector< QRect >())
this means bitBlting curPix on the actual widget...
Definition: kig_view.cpp:115
KigDocument is the class holding the real data in a Kig document.
Definition: kig_document.h:36
int height() const
void setMouseTracking(bool enable)
virtual void rightMouseMoved(QMouseEvent *, KigWidget *)
Definition: mode.cc:83
QString fromLatin1(const char *str, int size)
void setTracking(bool enable)
const CoordinateSystem & coordinateSystem() const
Definition: kig_document.cc:40
void setMaximum(int)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void redrawScreen(const std::vector< ObjectHolder * > &selection, bool paintOnWidget=true)
Definition: kig_view.cpp:252
ScreenInfo msi
this is a class that maps from our widget coordinates to the document's coordinates ( and back )...
Definition: kig_view.h:93
QPixmap stillPix
what do the still objects look like wondering if this is appropriate, maybe it should be part of Movi...
Definition: kig_view.h:79
Rect suggestedRect() const
Return a rect containing most of the objects, which would be a fine suggestion to map to the widget...
Definition: kig_document.cc:106
void push(QUndoCommand *cmd)
DragRectMode is a mode that provides a rect for selecting the objects inside it.
Definition: dragrectmode.h:40
const Rect showingRect() const
Mapping between Internal Coordinate Systems there are two coordinate systems: 1 the widget's coordina...
Definition: kig_view.cpp:277
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.