#include <view.h>
Inheritance diagram for View:


Public Slots | |
| virtual void | setFocused () |
| virtual void | setUnfocused () |
Signals | |
| void | viewFocused (View *view) |
| void | viewUnfocused () |
Public Member Functions | |
| View (Document *document, ViewContainer *viewContainer, uint viewAreaId, const char *name=0) | |
| virtual | ~View () |
| KAction * | action (const QString &name) const |
| bool | isFocused () const |
| Document * | document () const |
| DCOPObject * | dcopObject () const |
| unsigned | dcopID () const |
| void | setDCOPID (unsigned id) |
| ViewContainer * | viewContainer () const |
| virtual bool | closeView () |
| uint | viewAreaId () const |
| virtual void | viewZoomIn () |
| virtual void | viewZoomOut () |
| virtual bool | canZoomIn () const |
| virtual bool | canZoomOut () const |
| virtual void | actualSize () |
| virtual void | toggleBreakpoint () |
| void | setKTechlabDeleted () |
Protected Slots | |
| virtual void | slotUpdateConfiguration () |
Protected Attributes | |
| QGuardedPtr< Document > | m_pDocument |
| KTechlab * | p_ktechlab |
| QGuardedPtr< ViewContainer > | p_viewContainer |
| uint | m_viewAreaId |
| bool | b_isFocused |
| ViewStatusBar * | m_statusBar |
| QVBoxLayout * | m_layout |
| ViewIface * | m_pViewIface |
| unsigned | m_dcopID |
Definition at line 60 of file view.h.
| Document* View::document | ( | ) | const [inline] |
Pointer to the parent document
Definition at line 72 of file view.h.
References m_pDocument.
Referenced by ViewContainer::closeViewArea(), EventInfo::EventInfo(), setDCOPID(), ViewStatusBar::slotModifiedStateChanged(), KTechlab::slotTabContext(), KTechlab::slotTabContextActivated(), DocManager::slotViewFocused(), TextView::textDocument(), ViewContainer::updateCaption(), ItemView::updateStatus(), View(), and ViewStatusBar::ViewStatusBar().
| DCOPObject * View::dcopObject | ( | ) | const |
Returns the DCOP object from this view
Definition at line 111 of file view.cpp.
References m_pViewIface.
Referenced by DocumentIface::viewToRef().
| unsigned View::dcopID | ( | ) | const [inline] |
Returns the dcop suffix for this view - a unique ID for the current the view within all views associated with the parent document. DCOP name will become "View#docID#viewID".
Definition at line 82 of file view.h.
References m_dcopID.
Referenced by setDCOPID().
| void View::setDCOPID | ( | unsigned | id | ) |
Sets the dcop suffix. The DCOP object for this view will be renamed.
Definition at line 152 of file view.cpp.
References dcopID(), document(), m_dcopID, and m_pViewIface.
| ViewContainer* View::viewContainer | ( | ) | const [inline] |
Pointer to the ViewContainer that we're in
Definition at line 91 of file view.h.
References p_viewContainer.
Referenced by KTechlab::slotUpdateCaptions(), DocManager::slotViewFocused(), and View().
| bool View::closeView | ( | ) | [virtual] |
Tells the view container which contains this view to close this view, returning true if successful (i.e. not both last view and unsaved, etc)
Reimplemented in TextView.
Definition at line 117 of file view.cpp.
References p_viewContainer, and viewAreaId().
Referenced by TextView::closeView().
| uint View::viewAreaId | ( | ) | const [inline] |
Returns the unique (for the view container) view area id associated with this view
Definition at line 100 of file view.h.
References m_viewAreaId.
Referenced by closeView(), and setFocused().
| virtual void View::viewZoomOut | ( | ) | [inline, virtual] |
| virtual void View::actualSize | ( | ) | [inline, virtual] |
| void View::setKTechlabDeleted | ( | ) | [inline] |
Called by ktechlab when it has entered its destructor to avoid calls to it (such as from the TextView destructor).
Definition at line 121 of file view.h.
References p_ktechlab.
| void View::setFocused | ( | ) | [virtual, slot] |
Called when the view is to be focused (enables actions, etc)
Reimplemented in TextView.
Definition at line 123 of file view.cpp.
References KTechlab::action(), b_isFocused, p_ktechlab, p_viewContainer, ItemInterface::self(), ItemInterface::updateItemActions(), and viewAreaId().
Referenced by ItemView::contentsMousePressEvent(), DocManager::createNewView(), ViewContainer::setActiveViewArea(), ViewContainer::setFocused(), and TextView::setFocused().
| void View::setUnfocused | ( | ) | [virtual, slot] |
Called when the view is to be unfocused (disables actions, etc)
Definition at line 145 of file view.cpp.
References b_isFocused.
Referenced by ViewContainer::setActiveViewArea(), and ViewContainer::setUnfocused().
| virtual void View::slotUpdateConfiguration | ( | ) | [inline, protected, virtual, slot] |
1.5.1