diff options
Diffstat (limited to 'src/guichan/widgets')
-rw-r--r-- | src/guichan/widgets/button.cpp | 1 | ||||
-rw-r--r-- | src/guichan/widgets/checkbox.cpp | 6 | ||||
-rw-r--r-- | src/guichan/widgets/label.cpp | 1 | ||||
-rw-r--r-- | src/guichan/widgets/listbox.cpp | 6 | ||||
-rw-r--r-- | src/guichan/widgets/radiobutton.cpp | 7 | ||||
-rw-r--r-- | src/guichan/widgets/slider.cpp | 20 | ||||
-rw-r--r-- | src/guichan/widgets/textbox.cpp | 2 | ||||
-rw-r--r-- | src/guichan/widgets/textfield.cpp | 1 | ||||
-rw-r--r-- | src/guichan/widgets/window.cpp | 1 |
9 files changed, 28 insertions, 17 deletions
diff --git a/src/guichan/widgets/button.cpp b/src/guichan/widgets/button.cpp index 6ea6c8f3a..b0627c4bd 100644 --- a/src/guichan/widgets/button.cpp +++ b/src/guichan/widgets/button.cpp @@ -64,6 +64,7 @@ namespace gcn gcn::MouseListener(), gcn::KeyListener(), gcn::FocusListener(), + mCaption(), mHasMouse(false), mKeyPressed(false), mMousePressed(false), diff --git a/src/guichan/widgets/checkbox.cpp b/src/guichan/widgets/checkbox.cpp index 4e76e75d2..da6776d31 100644 --- a/src/guichan/widgets/checkbox.cpp +++ b/src/guichan/widgets/checkbox.cpp @@ -62,7 +62,8 @@ namespace gcn gcn::Widget(), gcn::MouseListener(), gcn::KeyListener(), - mSelected(false) + mSelected(false), + mCaption() { setFocusable(true); addMouseListener(this); @@ -73,7 +74,8 @@ namespace gcn gcn::Widget(), gcn::MouseListener(), gcn::KeyListener(), - mSelected(selected) + mSelected(selected), + mCaption() { setCaption(caption); diff --git a/src/guichan/widgets/label.cpp b/src/guichan/widgets/label.cpp index db1ea6e8a..5e7c714f3 100644 --- a/src/guichan/widgets/label.cpp +++ b/src/guichan/widgets/label.cpp @@ -58,6 +58,7 @@ namespace gcn { Label::Label() : gcn::Widget(), + mCaption(), mAlignment(Graphics::LEFT) { } diff --git a/src/guichan/widgets/listbox.cpp b/src/guichan/widgets/listbox.cpp index 938d82721..5dd1509f5 100644 --- a/src/guichan/widgets/listbox.cpp +++ b/src/guichan/widgets/listbox.cpp @@ -66,7 +66,8 @@ namespace gcn gcn::KeyListener(), mSelected(-1), mListModel(nullptr), - mWrappingEnabled(false) + mWrappingEnabled(false), + mSelectionListeners() { setWidth(100); setFocusable(true); @@ -81,7 +82,8 @@ namespace gcn gcn::KeyListener(), mSelected(-1), mListModel(listModel), - mWrappingEnabled(false) + mWrappingEnabled(false), + mSelectionListeners() { setWidth(100); adjustSize(); diff --git a/src/guichan/widgets/radiobutton.cpp b/src/guichan/widgets/radiobutton.cpp index 9be0b75c9..55de52a99 100644 --- a/src/guichan/widgets/radiobutton.cpp +++ b/src/guichan/widgets/radiobutton.cpp @@ -64,8 +64,8 @@ namespace gcn gcn::MouseListener(), gcn::KeyListener(), mSelected(false), - mCaption(""), - mGroup("") + mCaption(), + mGroup() { setSelected(false); @@ -81,7 +81,8 @@ namespace gcn gcn::MouseListener(), gcn::KeyListener(), mSelected(false), - mGroup("") + mCaption(), + mGroup() { setCaption(caption); setGroup(group); diff --git a/src/guichan/widgets/slider.cpp b/src/guichan/widgets/slider.cpp index 7611fdfd7..322f2ef76 100644 --- a/src/guichan/widgets/slider.cpp +++ b/src/guichan/widgets/slider.cpp @@ -61,15 +61,15 @@ namespace gcn gcn::MouseListener(), gcn::KeyListener(), mDragged(false), + mValue(0), + mStepLength(scaleEnd / 10), + mMarkerLength(10), mScaleStart(0), - mScaleEnd(scaleEnd) + mScaleEnd(scaleEnd), + mOrientation(HORIZONTAL) { setFocusable(true); setFrameSize(1); - setOrientation(HORIZONTAL); - setValue(0); - setStepLength(scaleEnd / 10); - setMarkerLength(10); addMouseListener(this); addKeyListener(this); @@ -80,15 +80,15 @@ namespace gcn gcn::MouseListener(), gcn::KeyListener(), mDragged(false), + mValue(scaleStart), + mStepLength((scaleEnd - scaleStart) / 10), + mMarkerLength(10), mScaleStart(scaleStart), - mScaleEnd(scaleEnd) + mScaleEnd(scaleEnd), + mOrientation(HORIZONTAL) { setFocusable(true); setFrameSize(1); - setOrientation(HORIZONTAL); - setValue(scaleStart); - setStepLength((scaleEnd - scaleStart) / 10); - setMarkerLength(10); addMouseListener(this); addKeyListener(this); diff --git a/src/guichan/widgets/textbox.cpp b/src/guichan/widgets/textbox.cpp index bfb6aff89..3f1c51402 100644 --- a/src/guichan/widgets/textbox.cpp +++ b/src/guichan/widgets/textbox.cpp @@ -62,6 +62,7 @@ namespace gcn gcn::Widget(), gcn::MouseListener(), gcn::KeyListener(), + mTextRows(), mCaretColumn(0), mCaretRow(0), mEditable(true), @@ -79,6 +80,7 @@ namespace gcn gcn::Widget(), gcn::MouseListener(), gcn::KeyListener(), + mTextRows(), mCaretColumn(0), mCaretRow(0), mEditable(true), diff --git a/src/guichan/widgets/textfield.cpp b/src/guichan/widgets/textfield.cpp index 7d9bd87f6..e5ecc172b 100644 --- a/src/guichan/widgets/textfield.cpp +++ b/src/guichan/widgets/textfield.cpp @@ -61,6 +61,7 @@ namespace gcn gcn::Widget(), gcn::MouseListener(), gcn::KeyListener(), + mText(), mCaretPosition(0), mXScroll(0) { diff --git a/src/guichan/widgets/window.cpp b/src/guichan/widgets/window.cpp index f04a47e9e..025021a41 100644 --- a/src/guichan/widgets/window.cpp +++ b/src/guichan/widgets/window.cpp @@ -60,6 +60,7 @@ namespace gcn Window::Window() : Container(), gcn::MouseListener(), + mCaption(), mAlignment(Graphics::CENTER), mPadding(2), mTitleBarHeight(16), |