1 /**************************************************************************** 2 ** 3 ** DQt - D bindings for the Qt Toolkit 4 ** 5 ** GNU Lesser General Public License Usage 6 ** This file may be used under the terms of the GNU Lesser 7 ** General Public License version 3 as published by the Free Software 8 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 9 ** packaging of this file. Please review the following information to 10 ** ensure the GNU Lesser General Public License version 3 requirements 11 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 12 ** 13 ****************************************************************************/ 14 module qt.widgets.statusbar; 15 extern(C++): 16 17 import qt.config; 18 import qt.core.coreevent; 19 import qt.core.string; 20 import qt.gui.event; 21 import qt.helpers; 22 import qt.widgets.widget; 23 24 /+ QT_REQUIRE_CONFIG(statusbar); +/ 25 26 27 extern(C++, class) struct QStatusBarPrivate; 28 29 class /+ Q_WIDGETS_EXPORT +/ QStatusBar: QWidget 30 { 31 mixin(Q_OBJECT); 32 33 /+ Q_PROPERTY(bool sizeGripEnabled READ isSizeGripEnabled WRITE setSizeGripEnabled) +/ 34 35 public: 36 /+ explicit +/this(QWidget parent = null); 37 /+ virtual +/~this(); 38 39 final void addWidget(QWidget widget, int stretch = 0); 40 final int insertWidget(int index, QWidget widget, int stretch = 0); 41 final void addPermanentWidget(QWidget widget, int stretch = 0); 42 final int insertPermanentWidget(int index, QWidget widget, int stretch = 0); 43 final void removeWidget(QWidget widget); 44 45 final void setSizeGripEnabled(bool); 46 final bool isSizeGripEnabled() const; 47 48 final QString currentMessage() const; 49 50 public /+ Q_SLOTS +/: 51 @QSlot final void showMessage(ref const(QString) text, int timeout = 0); 52 @QSlot final void clearMessage(); 53 54 55 /+ Q_SIGNALS +/public: 56 @QSignal final void messageChanged(ref const(QString) text); 57 58 protected: 59 override void showEvent(QShowEvent ); 60 override void paintEvent(QPaintEvent ); 61 override void resizeEvent(QResizeEvent ); 62 63 final void reformat(); 64 final void hideOrShow(); 65 override bool event(QEvent ); 66 67 private: 68 /+ Q_DISABLE_COPY(QStatusBar) +/ 69 /+ Q_DECLARE_PRIVATE(QStatusBar) +/ 70 } 71