SkSettingsWidget.h revision 902ebe5eb41a350b766238b3b103c22fe9fc0fb5
1 2/* 3 * Copyright 2012 Google Inc. 4 * 5 * Use of this source code is governed by a BSD-style license that can be 6 * found in the LICENSE file. 7 */ 8 9 10#ifndef SKSETTINGSWIDGET_H_ 11#define SKSETTINGSWIDGET_H_ 12 13#include <QWidget> 14#include <QHBoxLayout> 15#include <QTextEdit> 16#include <QFrame> 17#include <QLabel> 18#include <QRadioButton> 19#include <QCheckBox> 20 21/** \class SkSettingsWidget 22 23 The SettingsWidget contains multiple checkboxes and toggles for altering 24 the visibility. 25 */ 26class SkSettingsWidget : public QWidget { 27 Q_OBJECT 28 29public: 30 /** 31 Constructs a widget with the specified parent for layout purposes. 32 @param parent The parent container of this widget 33 */ 34 SkSettingsWidget(QWidget *parent = NULL); 35 ~SkSettingsWidget(); 36 37private: 38 QHBoxLayout* fHorizontalLayout; 39 40 QVBoxLayout* mainFrameLayout; 41 42 QVBoxLayout* fVerticalLayout; 43 QVBoxLayout* fVerticalLayout_2; 44 QTextEdit* fText; 45 QFrame* fFrame; 46 QFrame* mainFrame; 47 48 QLabel* fVisibility; 49 QRadioButton* fVisibleOn; 50 QRadioButton* fVisibleOff; 51 52 QLabel* fCommandToggle; 53 QFrame* fCommandFrame; 54 QVBoxLayout* fCommandLayout; 55 56 QCheckBox* fCommandCheckBox; 57 QCheckBox* fCommandSingleDraw; 58}; 59 60#endif /* SKSETTINGSWIDGET_H_ */ 61