Stellarium 0.12.0
Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · Renderer · File Structure

BarFrame Class Reference

A title bar control used in windows derived from StelDialog. More...

#include <Dialog.hpp>

List of all members.

Public Member Functions

 BarFrame (QWidget *parent)
virtual void mousePressEvent (QMouseEvent *event)
virtual void mouseReleaseEvent (QMouseEvent *event)
virtual void mouseMoveEvent (QMouseEvent *event)

Public Attributes

QPoint mousePos

Protected Attributes

bool moving

Detailed Description

A title bar control used in windows derived from StelDialog.

As window classes derived from StelDialog are basic QWidgets, they have no title bar. A BarFrame control needs to be used in each window's design to allow the user to move them.

Typically, the frame should contain a centered label displaying the window's title and a button for closing the window (connected to the StelDialog::close() slot).

To use the default Stellarium style for title bars, the BarFrame object of a given window should be named "TitleBar". See the normalStyle.css file for the style sheet description.

Definition at line 42 of file Dialog.hpp.

The documentation for this class was generated from the following file:
Generated on Thu Jan 31 14:05:43 2013 for Stellarium by  doxygen 1.6.3