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
76 lines
2.0 KiB
C++
76 lines
2.0 KiB
C++
//-----------------------------------------------------------------------------
|
|
// Name: objref.h
|
|
// Purpose: XML resources sample: Object references and ID ranges dialog
|
|
// Author: David Hart, Vaclav Slavik
|
|
// Copyright: (c) Vaclav Slavik
|
|
// Licence: wxWindows licence
|
|
//-----------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Begin single inclusion of this .h file condition
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _OBJREFDLG_H_
|
|
#define _OBJREFDLG_H_
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Headers
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#include "wx/dialog.h"
|
|
#include "wx/notebook.h"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Class definition: ObjrefDialog
|
|
//-----------------------------------------------------------------------------
|
|
|
|
class ObjrefDialog : public wxDialog
|
|
{
|
|
|
|
public:
|
|
|
|
// Constructor.
|
|
ObjrefDialog( wxWindow* parent );
|
|
|
|
// Destructor.
|
|
~ObjrefDialog();
|
|
|
|
private:
|
|
enum PageNumbers
|
|
{
|
|
first_page,
|
|
copy_page,
|
|
icons_page,
|
|
calc_page
|
|
};
|
|
|
|
enum CalcOperator
|
|
{
|
|
operator_plus,
|
|
operator_minus,
|
|
operator_multiply,
|
|
operator_divide,
|
|
operator_equals
|
|
};
|
|
|
|
void OnNotebookPageChanged( wxNotebookEvent &event );
|
|
void OnUpdateUIFirst(wxUpdateUIEvent& event);
|
|
void OnUpdateUISecond(wxUpdateUIEvent& event);
|
|
void OnUpdateUIThird(wxUpdateUIEvent& event);
|
|
void OnNumeralClick(wxCommandEvent& event);
|
|
void OnOperatorClick(wxCommandEvent& event);
|
|
void Calculate();
|
|
void ClearCalculator();
|
|
|
|
wxNotebook *nb;
|
|
wxTextCtrl *text;
|
|
wxTextCtrl *result_txt;
|
|
int current;
|
|
int previous;
|
|
bool operator_expected;
|
|
CalcOperator curr_operator;
|
|
|
|
};
|
|
|
|
#endif //_OBJREFDLG_H_
|