这篇教程C++ CheckChange函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中CheckChange函数的典型用法代码示例。如果您正苦于以下问题:C++ CheckChange函数的具体用法?C++ CheckChange怎么用?C++ CheckChange使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了CheckChange函数的24个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: wxTvoid dlgTablespace::OnVarAdd(wxCommandEvent &ev){ wxString name=cbVarname->GetValue(); wxString value; if (chkValue->IsShown()) value = chkValue->GetValue() ? wxT("on") : wxT("off"); else value = txtValue->GetValue().Strip(wxString::both); if (value.IsEmpty()) value = wxT("DEFAULT"); if (!name.IsEmpty()) { long pos=lstVariables->FindItem(-1, name); if (pos < 0) { pos = lstVariables->GetItemCount(); lstVariables->InsertItem(pos, name, 0); } lstVariables->SetItem(pos, 1, value); } dirtyVars = true; CheckChange();}
开发者ID:xiul,项目名称:Database-Designer-for-pgAdmin,代码行数:25,
示例2: CheckChangevoid dlgTrigger::OnChange(wxCommandEvent &ev){ if (chkUpdate->GetValue()) { cbColumns->Enable(); } else { if (lstColumns->GetItemCount() > 0) { if (wxMessageBox(_("Removing the UPDATE event will cause the column list to be cleared. Do you wish to continue?"), _("Remove UPDATE event?"), wxYES_NO) != wxYES) { chkUpdate->SetValue(true); return; } // Move all the columns back to the combo for (int pos = lstColumns->GetItemCount(); pos > 0; pos--) { wxString colName = lstColumns->GetItemText(pos - 1); lstColumns->DeleteItem(pos - 1); cbColumns->Append(colName); } } cbColumns->Disable(); btnAddCol->Disable(); btnRemoveCol->Disable(); } CheckChange();}
开发者ID:kleopatra999,项目名称:pgadmin3,代码行数:33,
示例3: StrToLongvoid dlgJob::OnChangeSchedule(wxCommandEvent &ev){ long pos = lstSchedules->GetSelection(); pgaSchedule *obj = (pgaSchedule *) StrToLong(lstSchedules->GetText(pos, 3)); dlgSchedule schedule(&scheduleFactory, mainForm, obj, job); schedule.CenterOnParent(); schedule.SetConnection(connection); if (schedule.Go(true) != wxID_CANCEL) { lstSchedules->SetItem(pos, 0, schedule.GetName()); lstSchedules->SetItem(pos, 1, schedule.GetComment()); if (lstSchedules->GetText(pos, 3).IsEmpty()) { wxString *scheduleSql = new wxString(schedule.GetInsertSql()); lstSchedules->SetItemData(pos, (long)scheduleSql); } else { wxString *scheduleSql = new wxString(schedule.GetUpdateSql()); lstSchedules->SetItemData(pos, (long)scheduleSql); } CheckChange(); }}
开发者ID:GHnubsST,项目名称:pgadmin3,代码行数:28,
示例4: wxLogErrorvoid dlgFunction::OnChangeArg(wxCommandEvent &ev){ if (GetSelectedDirection() == wxT("VARIADIC") && !cbDatatype->GetValue().EndsWith(wxT("[]"))) { wxLogError(_("Only array types can be VARIADIC.")); return; } int row = lstArguments->GetSelection(); if (row >= 0) { lstArguments->SetItem(row, 0, cbDatatype->GetValue()); lstArguments->SetItem(row, 1, GetSelectedDirection()); lstArguments->SetItem(row, 2, txtArgName->GetValue()); if (isBackendMinVer84) lstArguments->SetItem(row, 3, txtArgDefVal->GetValue()); if (!function) argOids.Item(row) = typOids.Item(cbDatatype->GetGuessedSelection()); txtArguments->SetValue(GetArgs()); } OnChangeArgName(ev); CheckChange();}
开发者ID:xiul,项目名称:pgadmin3,代码行数:26,
示例5: CheckChangevoid dlgRole::OnVarRemove(wxCommandEvent &ev){ if (lstVariables->GetSelection() == wxNOT_FOUND) return; lstVariables->DeleteCurrentItem(); CheckChange();}
开发者ID:search5,项目名称:pgadmin3,代码行数:7,
示例6: CheckChangevoid dlgForeignServer::OnAddOption(wxCommandEvent &ev){ bool found = false; for (int pos = 0 ; pos < lstOptions->GetItemCount() ; pos++) { if (lstOptions->GetText(pos).IsSameAs(txtOption->GetValue(), false)) { lstOptions->SetItem(pos, 1, txtValue->GetValue()); found = true; break; } } if (!found) { lstOptions->AppendItem(txtOption->GetValue(), txtValue->GetValue()); } txtOption->SetValue(wxT("")); txtValue->SetValue(wxT("")); btnAdd->Disable(); CheckChange();}
开发者ID:Timosha,项目名称:pgadmin3,代码行数:25,
示例7: CheckLenEnablevoid dlgForeignTable::OnSelChangeTypOrLen(wxCommandEvent &ev){ CheckLenEnable(); txtLength->Enable(isVarLen); txtPrecision->Enable(isVarPrec); CheckChange(); OnChangeMember(ev);}
开发者ID:aiht,项目名称:pgadmin3,代码行数:8,
示例8: wxTvoid dlgIndex::OnAddCol(wxCommandEvent &ev){ wxString colName = cbColumns->GetValue(); if (!colName.IsEmpty()) { long colIndex = lstColumns->InsertItem(lstColumns->GetItemCount(), colName, columnFactory.GetIconId()); if (this->database->BackendMinimumVersion(8, 3)) { if (chkDesc->GetValue()) { if (chkDesc->IsEnabled()) lstColumns->SetItem(colIndex, 1, wxT("DESC")); if (rdbNullsLast->GetValue()) { if (rdbNullsLast->IsEnabled()) lstColumns->SetItem(colIndex, 2, wxT("LAST")); } else { if (rdbNullsLast->IsEnabled()) lstColumns->SetItem(colIndex, 2, wxT("FIRST")); } } else { if (chkDesc->IsEnabled()) lstColumns->SetItem(colIndex, 1, wxT("ASC")); if (rdbNullsFirst->GetValue()) { if (rdbNullsFirst->IsEnabled()) lstColumns->SetItem(colIndex, 2, wxT("FIRST")); } else { if (rdbNullsLast->IsEnabled()) lstColumns->SetItem(colIndex, 2, wxT("LAST")); } } lstColumns->SetItem(colIndex, 3, cbOpClass->GetValue()); lstColumns->SetItem(colIndex, 4, cbCollation->GetValue()); } cbColumns->Delete(cbColumns->GetCurrentSelection()); if (cbColumns->GetCount()) cbColumns->SetSelection(0); CheckChange(); if (!cbColumns->GetCount()) btnAddCol->Disable(); }}
开发者ID:GHnubsST,项目名称:pgadmin3,代码行数:58,
示例9: CheckChangevoid dlgFunction::OnChangeSetof(wxCommandEvent &ev){ if (chkSetof->GetValue() && connection->BackendMinimumVersion(8, 3) && !isProcedure) txtRows->Enable(); else txtRows->Disable(); CheckChange();}
开发者ID:xiul,项目名称:pgadmin3,代码行数:9,
示例10: CheckChangevoid dlgTablespace::OnVarRemove(wxCommandEvent &ev){ if (lstVariables->GetSelection() >= 0) { lstVariables->DeleteCurrentItem(); dirtyVars = true; CheckChange(); }}
开发者ID:xiul,项目名称:Database-Designer-for-pgAdmin,代码行数:9,
示例11: Goint dlgServer::GoNew(){ if (cbSSL->GetValue().IsEmpty()) return Go(true); else { CheckChange(); return ShowModal(); }}
开发者ID:mintsoft,项目名称:pgadmin3,代码行数:10,
示例12: deletevoid dlgJob::OnRemoveSchedule(wxCommandEvent &ev){ delete (wxString *)lstSchedules->GetItemData(lstSchedules->GetSelection()); lstSchedules->DeleteCurrentItem(); btnChangeSchedule->Disable(); btnRemoveSchedule->Disable(); CheckChange();}
开发者ID:GHnubsST,项目名称:pgadmin3,代码行数:10,
示例13: CheckLenEnablevoid dlgDomain::OnSelChangeTyp(wxCommandEvent &ev){ if (!domain) { cbDatatype->GuessSelection(ev); CheckLenEnable(); txtLength->Enable(isVarLen); CheckChange(); }}
开发者ID:dragansah,项目名称:pgadmin3,代码行数:10,
示例14: Updatevoid OpPackageKitProgress::Update(){ if (CheckChange() == false) { // No change has happened skip return; } // Set the new percent pk_backend_job_set_percentage(m_job, static_cast<unsigned int>(Percent));}
开发者ID:Distrotech,项目名称:packagekit,代码行数:10,
示例15: CheckChangevoid dlgUser::OnChangeCal(wxCalendarEvent &ev){ CheckChange(); bool timEn=ev.GetDate().IsValid(); timValidUntil->Enable(timEn); if (!timEn) timValidUntil->SetTime(wxDefaultDateTime); else timValidUntil->SetTime(wxDateTime::Today());}
开发者ID:xiul,项目名称:Database-Designer-for-pgAdmin,代码行数:11,
示例16: wxMessageBoxvoid dlgSchedule::OnChangeException(wxCommandEvent &ev){ if (!calException->GetValue().IsValid() && timException->GetValue().IsNull()) { wxMessageBox(_("You must enter a valid date and/or time!"), _("Add exception"), wxICON_EXCLAMATION | wxOK, this); return; } wxString exDate, exTime; if (calException->GetValue().IsValid()) exDate = calException->GetValue().FormatDate(); else exDate = _("<any>"); if (!timException->GetValue().IsNull()) exTime = timException->GetValue().Format(); else exTime = _("<any>"); long item = lstExceptions->GetFocusedItem(); for (int pos = 0; pos < lstExceptions->GetItemCount(); pos++) { if (item != pos) { if (lstExceptions->GetText(pos, 0) == exDate && lstExceptions->GetText(pos, 1) == exTime) { wxMessageBox(_("The specified exception already exists!"), _("Add exception"), wxICON_EXCLAMATION | wxOK, this); return; } if (lstExceptions->GetText(pos, 0) == exDate && lstExceptions->GetText(pos, 1) == _("<any>")) { wxMessageBox(_("An exception already exists for any time on this date!"), _("Add exception"), wxICON_EXCLAMATION | wxOK, this); return; } if (lstExceptions->GetText(pos, 1) == exTime && lstExceptions->GetText(pos, 0) == _("<any>")) { wxMessageBox(_("An exception already exists for this time on any date!"), _("Add exception"), wxICON_EXCLAMATION | wxOK, this); return; } } } lstExceptions->SetItem(item, 0, exDate); lstExceptions->SetItem(item, 1, exTime); lstExceptions->SetItem(item, 2, BoolToStr(true)); CheckChange();}
开发者ID:aiht,项目名称:pgadmin3,代码行数:54,
示例17: CheckLenEnablevoid dlgColumn::OnSelChangeTyp(wxCommandEvent &ev){ cbDatatype->GuessSelection(ev); CheckLenEnable(); txtLength->Enable(isVarLen); bool isSerial = (cbDatatype->GetValue() == wxT("serial") || cbDatatype->GetValue() == wxT("bigserial") || cbDatatype->GetValue() == wxT("smallserial")); txtDefault->Enable(!isSerial); CheckChange();}
开发者ID:GHnubsST,项目名称:pgadmin3,代码行数:12,
示例18: wxTvoid dlgDatabase::OnVarAdd(wxCommandEvent &ev){ wxString username = cbVarUsername->GetValue(); wxString name = cbVarname->GetValue(); wxString value; if (chkValue->IsShown()) value = chkValue->GetValue() ? wxT("on") : wxT("off"); else value = txtValue->GetValue().Strip(wxString::both); if (value.IsEmpty()) value = wxT("DEFAULT"); if (!name.IsEmpty()) { bool found = false; long prevpos = -1; for (long item = 0; item < lstVariables->GetItemCount(); item++) { if (name == lstVariables->GetText(item, 1)) { if (username == lstVariables->GetText(item)) { found = true; lstVariables->SetItem(item, 2, value); } else { prevpos = item; } } } if (!found) { if (prevpos != -1) { lstVariables->InsertItem(prevpos, username, 1); lstVariables->SetItem(prevpos, 1, name); lstVariables->SetItem(prevpos, 2, value); } else { long pos = lstVariables->GetItemCount(); lstVariables->InsertItem(pos, username, 1); lstVariables->SetItem(pos, 1, name); lstVariables->SetItem(pos, 2, value); } } } dirtyVars = true; CheckChange();}
开发者ID:Joe-xXx,项目名称:pgadmin3,代码行数:52,
示例19: CheckChangevoid dlgGroup::OnUserAdd(wxCommandEvent &ev){ if (!readOnly) { int pos = lbUsersNotIn->GetSelection(); if (pos >= 0) { lbUsersIn->Append(lbUsersNotIn->GetString(pos)); lbUsersNotIn->Delete(pos); } CheckChange(); }}
开发者ID:douglasresende,项目名称:pgadmin3,代码行数:13,
示例20: schedulevoid dlgJob::OnAddSchedule(wxCommandEvent &ev){ dlgSchedule schedule(&scheduleFactory, mainForm, NULL, job); schedule.CenterOnParent(); schedule.SetConnection(connection); if (schedule.Go(true) != wxID_CANCEL) { int pos = lstSchedules->AppendItem(scheduleFactory.GetIconId(), schedule.GetName(), schedule.GetComment()); wxString *scheduleSql = new wxString(schedule.GetInsertSql()); lstSchedules->SetItemData(pos, (long)scheduleSql); CheckChange(); }}
开发者ID:GHnubsST,项目名称:pgadmin3,代码行数:13,
示例21: CheckChangevoid dlgSchedule::OnRemoveException(wxCommandEvent &ev){ if (lstExceptions->GetText(lstExceptions->GetFocusedItem(), 3) != wxEmptyString) { deleteExceptions.Add(lstExceptions->GetText(lstExceptions->GetFocusedItem(), 3)); } lstExceptions->DeleteCurrentItem(); btnChangeException->Disable(); btnRemoveException->Disable(); CheckChange();}
开发者ID:aiht,项目名称:pgadmin3,代码行数:13,
示例22: CheckChangevoid dlgForeignTable::OnMemberRemove(wxCommandEvent &ev){ long pos = lstMembers->GetSelection(); if (pos >= 0) { lstMembers->DeleteItem(pos); memberTypes.RemoveAt(pos); memberLengths.RemoveAt(pos); memberPrecisions.RemoveAt(pos); memberNotNulls.RemoveAt(pos); } CheckChange();}
开发者ID:aiht,项目名称:pgadmin3,代码行数:14,
示例23: switchvoid dlgSchedule::OnSelectAll(wxCommandEvent &ev, int origin){ bool check = false; wxBitmapButton *btn; wxCheckListBox *lb; wxString tooltip; switch (origin) { case 1: btn = ((wxBitmapButton *)btnWeekdays); lb = chkWeekdays; break; case 2: btn = ((wxBitmapButton *)btnMonthdays); lb = chkMonthdays; break; case 3: btn = ((wxBitmapButton *)btnMonths); lb = chkMonths; break; case 4: btn = ((wxBitmapButton *)btnHours); lb = chkHours; break; case 5: btn = ((wxBitmapButton *)btnMinutes); lb = chkMinutes; break; default: return; break; } for (unsigned int x = 0; x < lb->GetCount(); x++) { if (!lb->IsChecked(x)) { check = true; break; } } for (unsigned int x = 0; x < lb->GetCount(); x++) { lb->Check(x, check); } CheckChange();}
开发者ID:aiht,项目名称:pgadmin3,代码行数:49,
示例24: dlgvoid dlgUser::OnChangeSuperuser(wxCommandEvent &ev){ if (user && user->GetSuperuser() && !chkCreateUser->GetValue()) { wxMessageDialog dlg(this, _("Deleting a superuser might result in unwanted behaviour (e.g. when restoring the database)./nAre you sure?"), _("Confirm superuser deletion"), wxICON_EXCLAMATION | wxYES_NO |wxNO_DEFAULT); if (dlg.ShowModal() != wxID_YES) { chkCreateUser->SetValue(true); return; } } CheckChange();}
开发者ID:xiul,项目名称:Database-Designer-for-pgAdmin,代码行数:16,
注:本文中的CheckChange函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ CheckClientID函数代码示例 C++ CheckCTRStatus函数代码示例 |