Dialog.hpp   Dialog.hpp 
skipping to change at line 17 skipping to change at line 17
* as published by the Free Software Foundation; either version 2 * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version. * of the License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
*/ */
#ifndef _DIALOG_HPP_ #ifndef _DIALOG_HPP_
#define _DIALOG_HPP_ #define _DIALOG_HPP_
#include <QWidget> #include <QWidget>
#include <QFrame> #include <QFrame>
#include <QMouseEvent> #include <QMouseEvent>
//! \class BarFrame
//! 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 win
dow'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 f
or
//! the style sheet description.
class BarFrame : public QFrame class BarFrame : public QFrame
{ {
Q_OBJECT Q_OBJECT
public: public:
QPoint mousePos; QPoint mousePos;
BarFrame(QWidget* parent) : QFrame(parent), moving(false) {} BarFrame(QWidget* parent) : QFrame(parent), moving(false) {}
virtual void mousePressEvent(QMouseEvent *event); virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event); virtual void mouseReleaseEvent(QMouseEvent *event);
 End of changes. 2 change blocks. 
1 lines changed or deleted 19 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/