]> git.saurik.com Git - wxWidgets.git/blame - src/qt/scrolbar.cpp
Added wxOKlibc(), which checks for glibc2.0, which incorrectly does UTF-8
[wxWidgets.git] / src / qt / scrolbar.cpp
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: scrolbar.cpp
01b2eeec
KB
3// Purpose: wxScrollBar
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
7c78e7c7
RR
12#ifdef __GNUG__
13#pragma implementation "scrolbar.h"
14#endif
15
16#include "wx/scrolbar.h"
7c78e7c7 17
01b2eeec
KB
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
7c78e7c7 20
01b2eeec 21#endif
7c78e7c7 22
01b2eeec 23// Scrollbar
7c78e7c7 24bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
01b2eeec
KB
25 const wxPoint& pos,
26 const wxSize& size, long style,
27 const wxValidator& validator,
28 const wxString& name)
7c78e7c7 29{
01b2eeec
KB
30 if (!parent)
31 return FALSE;
32 parent->AddChild(this);
33 SetName(name);
34 SetValidator(validator);
35
36 m_windowStyle = style;
7c78e7c7 37
01b2eeec
KB
38 if ( id == -1 )
39 m_windowId = (int)NewControlId();
40 else
41 m_windowId = id;
7c78e7c7 42
01b2eeec
KB
43 // TODO create scrollbar
44 return TRUE;
45}
7c78e7c7 46
01b2eeec 47wxScrollBar::~wxScrollBar()
7c78e7c7 48{
01b2eeec 49}
7c78e7c7 50
01b2eeec 51void wxScrollBar::SetPosition(int viewStart)
7c78e7c7 52{
01b2eeec
KB
53 // TODO
54}
7c78e7c7 55
01b2eeec 56int wxScrollBar::GetPosition() const
7c78e7c7 57{
01b2eeec
KB
58 // TODO
59 return 0;
60}
7c78e7c7 61
01b2eeec
KB
62void wxScrollBar::SetScrollbar(int position, int thumbSize, int range, int pageSize,
63 bool refresh)
7c78e7c7 64{
01b2eeec
KB
65 m_viewSize = pageSize;
66 m_pageSize = thumbSize;
67 m_objectSize = range;
7c78e7c7 68
01b2eeec
KB
69 // TODO
70}
7c78e7c7 71
7c78e7c7 72
01b2eeec 73void wxScrollBar::Command(wxCommandEvent& event)
7c78e7c7 74{
01b2eeec
KB
75 SetValue(event.m_commandInt);
76 ProcessCommand(event);
77}
7c78e7c7 78