Add files via upload

This commit is contained in:
nmset
2018-04-25 20:43:41 +02:00
committed by GitHub
parent 8fc04fbbb6
commit 428cc9099e
80 changed files with 11718 additions and 0 deletions

68
L7/LBoundTextCtrl.h Normal file
View File

@@ -0,0 +1,68 @@
/*
* File: LBoundTextCtrl.h
* Author: SET - nmset@netcourrier.com
* License : LGPL version 2.1
* Copyright SET, M. D. - © 2014
*
* Created on 2 juin 2014, 14:52
*/
#ifndef LBOUNDTEXTCTRL_H
#define LBOUNDTEXTCTRL_H
#include <wx/textctrl.h>
#include "LBoundControl.h"
#include "LResultSet.h"
class LBoundTextCtrl : public wxTextCtrl, public LBoundControl
{
public:
LBoundTextCtrl(wxWindow* parent, wxWindowID id = wxID_ANY, long style = 0);
virtual ~LBoundTextCtrl();
/**
* Sets the resultset member and registers the control in the resultset.
* @param newResultSet
*/
void SetResultSet(LResultSet * newResultSet);
/**
*
* @return If the control is empty, returns literal NULL. Else, returns GetValue().
*/
const wxAny GetData();
/**
* Calls ChangeValue().
* @param newData
* @return
*/
bool SetData(const wxAny& newData);
/**
* Alias for IsEmpty().
* @return
*/
bool IsNull()
{
return IsEmpty();
}
/**
* Alias for Clear().
* @return
*/
bool SetNull()
{
Clear();
}
bool IsDirty();
/**
* Alias for GetValue().
* @return
*/
const wxString GetDisplayedData()
{
return GetValue();
}
private:
};
#endif /* LBOUNDTEXTCTRL_H */