blob: 0c94b3dc251225cd2b207f7efc9edc6f50422086 [file] [log] [blame]
chudy@google.com902ebe52012-06-29 14:21:22 +00001
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#include "SkSettingsWidget.h"
11
12SkSettingsWidget::SkSettingsWidget(QWidget *parent) : QWidget(parent) {
13 mainFrameLayout = new QVBoxLayout(this);
14 mainFrameLayout->setSpacing(6);
15 mainFrameLayout->setContentsMargins(0,0,0,0);
16
17
18 mainFrame = new QFrame();
19 mainFrame->setFrameShape(QFrame::StyledPanel);
20 mainFrame->setFrameShadow(QFrame::Raised);
21
22 mainFrameLayout->addWidget(mainFrame);
23
24 fVerticalLayout = new QVBoxLayout(mainFrame);
25 fVerticalLayout->setContentsMargins(11,11,11,11);
26 fVerticalLayout->setAlignment(Qt::AlignTop);
27
28 fVisibility = new QLabel();
29 fVisibility->setText("Visibility Filter");
30
31 fFrame = new QFrame();
32 fFrame->setFrameShape(QFrame::StyledPanel);
33 fFrame->setFrameShadow(QFrame::Raised);
34
35 fVerticalLayout_2 = new QVBoxLayout(fFrame);
36 fVerticalLayout_2->setSpacing(6);
37 fVerticalLayout_2->setContentsMargins(11,11,11,11);
38
39 fVerticalLayout->addWidget(fVisibility);
40 fVerticalLayout->addWidget(fFrame);
41
42 fVisibleOn = new QRadioButton(fFrame);
43 fVisibleOn->setText("On");
44 fVisibleOff = new QRadioButton(fFrame);
45 fVisibleOff->setText("Off");
46
47 fVisibleOff->setChecked(true);
48
49 fVerticalLayout_2->addWidget(fVisibleOn);
50 fVerticalLayout_2->addWidget(fVisibleOff);
51
52 fCommandToggle = new QLabel();
53 fCommandToggle->setText("Command Scrolling Preferences");
54
55 fCommandFrame = new QFrame();
56 fCommandFrame->setFrameShape(QFrame::StyledPanel);
57 fCommandFrame->setFrameShadow(QFrame::Raised);
58
59 fCommandLayout = new QVBoxLayout(fCommandFrame);
60 fCommandLayout->setSpacing(6);
61 fCommandLayout->setContentsMargins(11,11,11,11);
62
63 fVerticalLayout->addWidget(fCommandToggle);
64 fVerticalLayout->addWidget(fCommandFrame);
65
66 fCommandCheckBox = new QCheckBox(fCommandFrame);
67 fCommandCheckBox->setText("Toggle Sticky Activate");
68 fCommandSingleDraw = new QCheckBox(fCommandFrame);
69 fCommandSingleDraw->setText("Display Single Command");
70
71 fCommandLayout->addWidget(fCommandCheckBox);
72 fCommandLayout->addWidget(fCommandSingleDraw);
73
74 this->setDisabled(true);
75}
76
77SkSettingsWidget::~SkSettingsWidget() {}