• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaCore

Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Properties | List of all members
DialogProxy Class Reference

#include <dialog.h>

Inheritance diagram for DialogProxy:
Inheritance graph
[legend]

Public Types

enum  WidgetAttribute { WA_X11NetWmWindowTypeDock = Qt::WA_X11NetWmWindowTypeDock }
 

Signals

void activeWindowChanged ()
 
void heightChanged ()
 
void locationChanged ()
 
void mainItemChanged ()
 
void visibleChanged ()
 
void widthChanged ()
 
void xChanged ()
 
void yChanged ()
 

Public Member Functions

 DialogProxy (QDeclarativeItem *parent=0)
 
 ~DialogProxy ()
 
Q_INVOKABLE void activateWindow ()
 
int height () const
 
bool isActiveWindow () const
 
bool isVisible () const
 
int location () const
 
QGraphicsObject * mainItem () const
 
QObject * margins () const
 
Q_INVOKABLE QPoint popupPosition (QGraphicsObject *item, int alignment=Qt::AlignLeft)
 
Q_INVOKABLE void setAttribute (int attribute, bool on)
 
void setLocation (int location)
 
void setMainItem (QGraphicsObject *mainItem)
 
void setVisible (const bool visible)
 
void setWindowFlags (const int)
 
void setX (int x)
 
void setY (int y)
 
int width () const
 
int windowFlags () const
 
qulonglong windowId () const
 
int x () const
 
int y () const
 

Protected Slots

void syncMainItem ()
 

Protected Member Functions

bool eventFilter (QObject *watched, QEvent *event)
 

Properties

bool activeWindow
 
int height
 
int location
 
QGraphicsObject mainItem
 
QObject margins
 
bool visible
 
int width
 
int windowFlags
 
qulonglong windowId
 
int x
 
int y
 

Detailed Description

QML wrapper for kdelibs Plasma::Dialog.

Exposed as Dialog in QML.

Definition at line 93 of file dialog.h.

Member Enumeration Documentation

enum DialogProxy::WidgetAttribute
Enumerator
WA_X11NetWmWindowTypeDock 

Definition at line 157 of file dialog.h.

Constructor & Destructor Documentation

DialogProxy::DialogProxy ( QDeclarativeItem *  parent = 0)

Definition at line 92 of file dialog.cpp.

DialogProxy::~DialogProxy ( )

Definition at line 104 of file dialog.cpp.

Member Function Documentation

void DialogProxy::activateWindow ( )

Ask the window manager to activate the window.

The window manager may or may not accept the activiation request

Definition at line 357 of file dialog.cpp.

void DialogProxy::activeWindowChanged ( )
signal
bool DialogProxy::eventFilter ( QObject *  watched,
QEvent *  event 
)
protected

Definition at line 400 of file dialog.cpp.

int DialogProxy::height ( ) const
void DialogProxy::heightChanged ( )
signal
bool DialogProxy::isActiveWindow ( ) const

Definition at line 352 of file dialog.cpp.

bool DialogProxy::isVisible ( ) const

Definition at line 195 of file dialog.cpp.

int DialogProxy::location ( ) const
void DialogProxy::locationChanged ( )
signal
QGraphicsObject* DialogProxy::mainItem ( ) const
void DialogProxy::mainItemChanged ( )
signal
QObject* DialogProxy::margins ( ) const
QPoint DialogProxy::popupPosition ( QGraphicsObject *  item,
int  alignment = Qt::AlignLeft 
)
Returns
The suggested screen position for the popup
  • item the item the popup has to be positioned relatively to. if null, the popup will be positioned in the center of the window
  • alignment alignment of the popup compared to the item

Definition at line 222 of file dialog.cpp.

void DialogProxy::setAttribute ( int  attribute,
bool  on 
)

Set a Qt.WidgetAttribute to the dialog window.

  • int attribute see Qt.WidgetAttribute
  • bool on activate or deactivate the atrtibute

Definition at line 442 of file dialog.cpp.

void DialogProxy::setLocation ( int  location)

Definition at line 385 of file dialog.cpp.

void DialogProxy::setMainItem ( QGraphicsObject *  mainItem)

Definition at line 115 of file dialog.cpp.

void DialogProxy::setVisible ( const bool  visible)

Definition at line 200 of file dialog.cpp.

void DialogProxy::setWindowFlags ( const int  flags)

Definition at line 374 of file dialog.cpp.

void DialogProxy::setX ( int  x)

Definition at line 327 of file dialog.cpp.

void DialogProxy::setY ( int  y)

Definition at line 337 of file dialog.cpp.

void DialogProxy::syncMainItem ( )
protectedslot

Definition at line 135 of file dialog.cpp.

void DialogProxy::visibleChanged ( )
signal
int DialogProxy::width ( ) const
void DialogProxy::widthChanged ( )
signal
int DialogProxy::windowFlags ( ) const
qulonglong DialogProxy::windowId ( ) const
int DialogProxy::x ( ) const
void DialogProxy::xChanged ( )
signal
int DialogProxy::y ( ) const
void DialogProxy::yChanged ( )
signal

Property Documentation

bool DialogProxy::activeWindow
read

True if the dialog window is the active one in the window manager.

Definition at line 142 of file dialog.h.

int DialogProxy::height
read

Read only height of the dialog window.

It depends from the height of the mainItem

Definition at line 126 of file dialog.h.

int DialogProxy::location
readwrite

Plasma Location of the dialog window.

Useful if this dialog is apopup for a panel

Definition at line 147 of file dialog.h.

QGraphicsObject * DialogProxy::mainItem
readwrite

The main QML item that will be displayed in the Dialog.

Definition at line 100 of file dialog.h.

QObject * DialogProxy::margins
read

Margins of the dialog around the mainItem.

See also
DialogMargins

Definition at line 137 of file dialog.h.

bool DialogProxy::visible
readwrite

Visibility of the Dialog window.

Doesn't have anything to do with the visibility of the mainItem.

Definition at line 105 of file dialog.h.

int DialogProxy::width
read

Read only width of the dialog window.

It depends from the width of the mainItem

Definition at line 121 of file dialog.h.

int DialogProxy::windowFlags
readwrite

Window flags of the Dialog window.

Definition at line 131 of file dialog.h.

qulonglong DialogProxy::windowId
read

Window ID of the dialog window.

Definition at line 153 of file dialog.h.

int DialogProxy::x
readwrite

X position of the dialog window in screen coordinates.

Definition at line 110 of file dialog.h.

int DialogProxy::y
readwrite

X position of the dialog window in screen coordinates.

Definition at line 115 of file dialog.h.


The documentation for this class was generated from the following files:
  • dialog.h
  • dialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

PlasmaCore

Skip menu "PlasmaCore"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal