OpenMW
apps/opencs/view/settings/groupbox.hpp
Go to the documentation of this file.
00001 #ifndef GROUPBOX_HPP
00002 #define GROUPBOX_HPP
00003 
00004 #include <QGroupBox>
00005 
00006 namespace CSVSettings
00007 {
00009     class GroupBox : public QGroupBox
00010     {
00011         static const QString INVISIBLE_BOX_STYLE;
00012         QString VISIBLE_BOX_STYLE;                  //not a const...
00013 
00014     public:
00015         explicit GroupBox (QWidget *parent = 0);
00016         explicit GroupBox (bool isVisible, QWidget *parent = 0);
00017 
00018         void setTitle (const QString &title);
00019         void setBorderVisibility (bool value);
00020         bool borderVisibile() const;
00021 
00022     private:
00023         void setMinimumWidth();
00024         void initBox(bool isVisible = true);
00025     };
00026 }
00027 
00028 #endif // GROUPBOX_HPP