本文整理汇总了C++中OnChange函数的典型用法代码示例。如果您正苦于以下问题:C++ OnChange函数的具体用法?C++ OnChange怎么用?C++ OnChange使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了OnChange函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wxRegEx
void BattleListFilter::OnChangeMap ( wxCommandEvent& event )
{
if ( m_filter_map_edit == NULL ) return;
if ( m_filter_map_expression == NULL )
m_filter_map_expression = new wxRegEx(m_filter_map_edit->GetValue(), wxRE_ICASE);
else
m_filter_map_expression->Compile(m_filter_map_edit->GetValue(), wxRE_ICASE);
OnChange(event);
}
示例2: strdup
void GUI_TextField::DeleteCurrChar(void)
{
if (cursorpos < buffer_index) {
char *bkup = strdup(buffer);
strncpy(buffer + cursorpos, bkup + cursorpos + 1, buffer_index - cursorpos);
buffer[--buffer_index] = '\0';
free(bkup);
OnChange();
SetChanged(1);
}
}
示例3: OnChange
bool CAccessControlListGroup::AddACL ( CAccessControlList* pACL )
{
if ( !IsACLPresent ( pACL ) )
{
m_ACLs.push_back ( pACL );
OnChange ();
return true;
}
return false;
}
示例4: file
void frmReport::OnBrowseStylesheet(wxCommandEvent &ev)
{
if (rbHtml->GetValue())
{
wxString def = txtHtmlStylesheet->GetValue();
if (!wxFile::Exists(def))
def.Empty();
#ifdef __WXMSW__
wxFileDialog file(this, _("Select stylesheet filename"), wxGetHomeDir(), def, _("HTML Stylesheet files (*.css)|*.css|All files (*.*)|*.*"), wxFD_OPEN);
#else
wxFileDialog file(this, _("Select stylesheet filename"), wxGetHomeDir(), def, _("HTML Stylesheet files (*.css)|*.css|All files (*)|*"), wxFD_OPEN);
#endif
if (file.ShowModal() == wxID_OK)
{
txtHtmlStylesheet->SetValue(file.GetPath());
OnChange(ev);
}
}
else
{
wxString def = txtXmlStylesheet->GetValue();
if (!wxFile::Exists(def))
def.Empty();
#ifdef __WXMSW__
wxFileDialog file(this, _("Select stylesheet filename"), wxGetHomeDir(), def, _("XML Stylesheet files (*.xsl)|*.xsl|All files (*.*)|*.*"), wxFD_OPEN);
#else
wxFileDialog file(this, _("Select stylesheet filename"), wxGetHomeDir(), def, _("XML Stylesheet files (*.xsl)|*.xsl|All files (*)|*"), wxFD_OPEN);
#endif
if (file.ShowModal() == wxID_OK)
{
txtXmlStylesheet->SetValue(file.GetPath());
OnChange(ev);
}
}
}
示例5: OnChange
void frmRestore::OnChangeSchema(wxCommandEvent &ev)
{
if (chkOnlySchema->GetValue())
{
chkOnlyData->SetValue(false);
chkOnlyData->Disable();
}
else
chkOnlyData->Enable();
OnChange(ev);
}
示例6: OnChange
void dlgLanguage::OnChangeName(wxCommandEvent &ev)
{
if (connection->BackendMinimumVersion(8, 1) && !language)
{
bool useTemplate = (cbName->FindString(cbName->wxComboBox::GetValue()) >= 0);
chkTrusted->Enable(!useTemplate);
cbHandler->Enable(!useTemplate);
cbInline->Enable(!useTemplate && connection->BackendMinimumVersion(9, 0));
cbValidator->Enable(!useTemplate);
}
OnChange(ev);
}
示例7: assert
void CAccessControlListManager::DeleteACL ( class CAccessControlList* pACL )
{
assert ( pACL );
// Remove its dependencies among the groups
RemoveACLDependencies ( pACL );
// Delete the class and remove it from the list
delete pACL;
m_ACLs.remove ( pACL );
OnChange ();
}
示例8: OnChange
CAccessControlList::~CAccessControlList ( void )
{
CIdArray::PushUniqueId ( this, EIdClass::ACL, m_uiScriptID );
list < CAccessControlListRight* > ::iterator iter = m_Rights.begin ();
for ( ; iter != m_Rights.end (); iter++ )
{
delete *iter;
}
m_Rights.clear ();
OnChange ();
}
示例9: GetRight
CAccessControlListRight* CAccessControlList::AddRight ( const char* szRightName, CAccessControlListRight::ERightType eRightType, bool bAccess )
{
CAccessControlListRight* pRight = GetRight ( szRightName, eRightType );
if ( !pRight )
{
pRight = new CAccessControlListRight ( szRightName, eRightType, bAccess, m_pACLManager );
m_Rights.push_back ( pRight );
OnChange ();
}
return pRight;
}
示例10: OnChange
void CAccessControlListManager::ClearACLs ( void )
{
// Return true if it exists
list < CAccessControlList* > ::iterator iter = m_ACLs.begin ();
for ( ; iter != m_ACLs.end (); iter++ )
{
delete *iter;
}
// Clear the list
m_ACLs.clear ();
OnChange ();
}
示例11: OnChange
void FindContoursSidebar::OnChooseAuto( wxCommandEvent& event )
{
if (autoThresh->GetValue())
{
thresh1->Disable();
thresh2->Disable();
}
else
{
thresh1->Enable();
thresh2->Enable();
}
OnChange();
}
示例12: GetACL
CAccessControlList* CAccessControlListManager::AddACL ( const char* szACLName )
{
// Grab the ACL with that name. Only add it if we don't already have it
CAccessControlList* pACL = GetACL ( szACLName );
if ( !pACL )
{
// Create it and put it back in our list
pACL = new CAccessControlList ( szACLName, this );
m_ACLs.push_back ( pACL );
OnChange ();
}
return pACL;
}
示例13: GetGroup
CAccessControlListGroup* CAccessControlListManager::AddGroup ( const char* szGroupName )
{
// Grab the group with that name already. Only add it if it doesn't exist already
CAccessControlListGroup* pGroup = GetGroup ( szGroupName );
if ( !pGroup )
{
// Create it and put it back in our list
pGroup = new CAccessControlListGroup ( szGroupName );
m_Groups.push_back ( pGroup );
OnChange ();
}
return pGroup;
}
示例14: OnChange
void CParmGlobal::SetValue(tint32 iValueNew, tbool bCallOnChange)
{
if (iValueNew < miMinValue) {
iValueNew = miMinValue;
}
if (iValueNew > miMaxValue) {
iValueNew = miMaxValue;
}
miValue = iValueNew;
if (bCallOnChange) {
OnChange();
}
}
示例15: GetRetainedFileRecord
void Store::ShadowFile(StringSection<ResChar> filename)
{
auto record = GetRetainedFileRecord(filename);
record->_state._status = DependentFileState::Status::Shadowed;
// propagate change messages...
// (duplicating processing from RegisterFileDependency)
ResChar directoryName[MaxPath];
FileNameSplitter<ResChar> splitter(filename);
SplitPath<ResChar>(splitter.DriveAndPath()).Simplify().Rebuild(directoryName);
FakeFileChange(StringSection<ResChar>(directoryName), splitter.FileAndExtension());
record->OnChange();
}