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
52 lines
1.6 KiB
C++
52 lines
1.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Program: wxWidgets Widgets Sample
|
|
// Name: itemcontainer.h
|
|
// Purpose: Part of the widgets sample showing wxComboBox
|
|
// Created: 20.07.07
|
|
// License: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_
|
|
#define _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_
|
|
|
|
#include "widgets.h"
|
|
|
|
class ItemContainerWidgetsPage : public WidgetsPage
|
|
{
|
|
public:
|
|
ItemContainerWidgetsPage(WidgetsBookCtrl *book,
|
|
wxImageList *image_list,
|
|
const char *const icon[]);
|
|
virtual ~ItemContainerWidgetsPage();
|
|
|
|
void OnButtonTestItemContainer(wxCommandEvent& event);
|
|
|
|
virtual wxItemContainer* GetContainer() const = 0;
|
|
|
|
private:
|
|
void StartTest(const wxString& label);
|
|
void EndTest(const wxArrayString& result);
|
|
|
|
// Track client data in wxItemContainer instances
|
|
wxClientData* CreateClientData(int value);
|
|
void StartTrackingData();
|
|
void StopTrackingData();
|
|
friend class TrackedClientData;
|
|
|
|
bool VerifyAllClientDataDestroyed();
|
|
bool VerifyClientData(wxUIntPtr i, const wxString& str);
|
|
|
|
wxString DumpContainerData(const wxArrayString& expected) const;
|
|
|
|
static wxArrayString MakeArray(const wxSortedArrayString& sorted);
|
|
|
|
wxArrayString m_items;
|
|
wxSortedArrayString m_itemsSorted;
|
|
int m_trackedDataObjects;
|
|
|
|
// holds pointer to the widget being tested
|
|
wxItemContainer *m_container;
|
|
};
|
|
|
|
#endif // _WX_SAMPLE_WIDGETS_ITEMCONTAINER_H_
|