3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
84 lines
2.7 KiB
C++
84 lines
2.7 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/ribbon/control.h
|
|
// Purpose: Extension of wxControl with common ribbon methods
|
|
// Author: Peter Cawley
|
|
// Modified by:
|
|
// Created: 2009-06-05
|
|
// Copyright: (C) Peter Cawley
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_RIBBON_CONTROL_H_
|
|
#define _WX_RIBBON_CONTROL_H_
|
|
|
|
#include "wx/defs.h"
|
|
|
|
#if wxUSE_RIBBON
|
|
|
|
#include "wx/control.h"
|
|
#include "wx/dynarray.h"
|
|
|
|
class wxRibbonBar;
|
|
class wxRibbonArtProvider;
|
|
|
|
class WXDLLIMPEXP_RIBBON wxRibbonControl : public wxControl
|
|
{
|
|
public:
|
|
wxRibbonControl() { Init(); }
|
|
|
|
wxRibbonControl(wxWindow *parent, wxWindowID id,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
const wxString& name = wxControlNameStr)
|
|
{
|
|
Init();
|
|
|
|
Create(parent, id, pos, size, style, validator, name);
|
|
}
|
|
|
|
bool Create(wxWindow *parent, wxWindowID id,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
const wxValidator& validator = wxDefaultValidator,
|
|
const wxString& name = wxControlNameStr);
|
|
|
|
virtual void SetArtProvider(wxRibbonArtProvider* art);
|
|
wxRibbonArtProvider* GetArtProvider() const {return m_art;}
|
|
|
|
virtual bool IsSizingContinuous() const {return true;}
|
|
wxSize GetNextSmallerSize(wxOrientation direction, wxSize relative_to) const;
|
|
wxSize GetNextLargerSize(wxOrientation direction, wxSize relative_to) const;
|
|
wxSize GetNextSmallerSize(wxOrientation direction) const;
|
|
wxSize GetNextLargerSize(wxOrientation direction) const;
|
|
|
|
virtual bool Realize();
|
|
bool Realise() {return Realize();}
|
|
|
|
virtual wxRibbonBar* GetAncestorRibbonBar()const;
|
|
|
|
// Finds the best width and height given the parent's width and height
|
|
virtual wxSize GetBestSizeForParentSize(const wxSize& WXUNUSED(parentSize)) const { return GetBestSize(); }
|
|
|
|
protected:
|
|
wxRibbonArtProvider* m_art;
|
|
|
|
virtual wxSize DoGetNextSmallerSize(wxOrientation direction,
|
|
wxSize relative_to) const;
|
|
virtual wxSize DoGetNextLargerSize(wxOrientation direction,
|
|
wxSize relative_to) const;
|
|
|
|
private:
|
|
void Init() { m_art = NULL; }
|
|
|
|
#ifndef SWIG
|
|
DECLARE_CLASS(wxRibbonControl)
|
|
#endif
|
|
};
|
|
|
|
WX_DEFINE_USER_EXPORTED_ARRAY_PTR(wxRibbonControl*, wxArrayRibbonControl, class WXDLLIMPEXP_RIBBON);
|
|
|
|
#endif // wxUSE_RIBBON
|
|
|
|
#endif // _WX_RIBBON_CONTROL_H_
|