本文整理汇总了C++中RefreshData函数的典型用法代码示例。如果您正苦于以下问题:C++ RefreshData函数的具体用法?C++ RefreshData怎么用?C++ RefreshData使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RefreshData函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: clearInput
void __fastcall TDicSupplierForm::FormShow(TObject *Sender)
{
clearInput();
RefreshData();
m_enWorkState = EN_IDLE;
ResetCtrl() ;
}
示例2: RefreshData
//---------------------------------------------------------------------------
void __fastcall TDicPackForm::FormShow(TObject *Sender)
{
edtName->Text="";
RefreshData();
m_enWorkState=EN_IDLE;
ResetCtrl();
}
示例3: item
void CIntelItemMgr::AddItem(uint8 nType, uint32 nID)
{
if (g_pGameClientShell->IsMultiplayerGame()) return;
if (g_pGameClientShell->IsCustomLevel()) return;
int nMissionNum = g_pGameClientShell->GetCurrentMission();
int nIndex = 0;
CPoint item((int)nType,(int)nID);
LTBOOL bFound = LTFALSE;
sprintf(s_aTagName,"%s%d",IMGR_MISSION_TAG,nMissionNum);
sprintf(s_aAttName,"%s%d",IMGR_INTEL,nIndex);
CPoint test(-1,-1);
while (!bFound && m_buteMgr.Exist(s_aTagName,s_aAttName))
{
CPoint zero(0,0);
test = m_buteMgr.GetPoint(s_aTagName,s_aAttName,zero);
bFound = (test.y == item.y);
if (!bFound)
{
nIndex++;
sprintf(s_aAttName,"%s%d",IMGR_INTEL,nIndex);
}
}
if (!bFound)
{
g_pLTClient->CPrint("%s,%s (%d,%d)",s_aTagName,s_aAttName, item.x, item.y);
m_buteMgr.SetPoint(s_aTagName,s_aAttName, item);
m_buteMgr.Save(s_aAttributeFile);
RefreshData();
}
}
示例4: RefreshData
/////////////////////////////////////////////////////////////////////////////
// CSettingsDialog::OnOK()
// Description: Handler of the OK button
//
void CSettingsDialog::OnOK()
{
HTREEITEM LOL = m_TreeCtrl.GetSelectedItem();
CString LOLA = m_TreeCtrl.GetItemText(LOL);
for (int i=0; i<m_pInfo.GetSize(); i++)
{
PAGE_INFO *pInfo = (PAGE_INFO *)m_pInfo.GetAt(i);
if (pInfo->csCaption == LOLA)
{
((CPropertyPage*)pInfo->pWnd)->OnKillActive();
}
}
// TODO: Add extra validation here
RefreshData(); // Do data update and validation
if ( m_pParent != NULL ) // Modaless dialog case
{
// Inform the parent, the modaless case
m_pParent->PostMessage( WM_SETTINGSDIALOG_CLOSE, IDOK, 0 );
}
else // Modal dialog case
{
DestroyPages(); // First destroy all the pages
CDialog::OnOK();
}
}
示例5: ExpandPointer
void ExpandPointer(VARINFO *v, int code, int page)
{
if (v->pointer)
{
if (code == TVE_EXPAND)
{
int val;
int outofscope = (val = v->derefaddress) == -1 && !ReadValue(v->address, &val, 4, v) || !val;
if (!v->subtype && watchinfo_list[page][v->watchindex].dbg_info)
{
TreeView_DeleteItem(hwndTree[page], v->hTreeHolder);
ExpandPointerInfo(watchinfo_list[page][v->watchindex].dbg_info, v);
if (v->subtype->structure)
{
InsertSubTree(v->hTreeItem, 0, v->subtype->subtype, v->watchindex, page);
}
else
InsertSubTree(v->hTreeItem, 0, v->subtype, v->watchindex, page);
}
RefreshAddresses(v->subtype, val, NULL, outofscope);
RefreshData(watchinfo_list[page][v->watchindex].dbg_info, v);
}
else if (code == TVE_COLLAPSE)
{
if (v->subtype)
{
FreeTree(v->subtype, page);
FreeVarInfo(v->subtype);
v->subtype = 0;
v->hTreeHolder = InsertItem(v->hTreeItem, TVI_LAST, v, page);
}
}
}
}
示例6: QObject
DeviceProcess::DeviceProcess(QObject *parent) :
QObject(parent)
{
_maintimer=new QTimer;
connect(_maintimer,SIGNAL(timeout()),this,SLOT(timeoutMaintimer()));
connect(MessageWatcher::GetInstance(),SIGNAL(RefreshData()),this,SLOT(onRefreshData()));
}
示例7: OnOK
void CMTMDlg::OnOK()
{
// TODO: Add extra validation here
if( !RefreshData( TRUE ) )
m_pMTM->SetDefaultParameters( );
CParamDlg::OnOK();
}
示例8: RefreshStruct
/*---------------------------------------------------------------------------*/
void wxTableBook::RefreshDbObject()
{
RefreshStruct();
if ("Data" == m_Book->GetPageText(m_Book->GetSelection()))
RefreshData();
else
m_InitData = true;
}
示例9: RefreshData
void U_ADC::RefreshData(uint8_t OverLevel) {
uint32_t sum = 0;
for (uint16_t i = 0; i < (1 << OverLevel << OverLevel); ++i) {
RefreshData();
sum += Data;
}
Data = sum >> OverLevel;
}
示例10: RefreshData
wxString mmReportPayeeExpenses::getHTMLText()
{
RefreshData();
mmHTMLBuilder hb;
hb.init();
hb.addDivContainer();
hb.addHeader(2, title());
hb.DisplayDateHeading(m_date_range->start_date(), m_date_range->end_date(), m_date_range->is_with_date());
hb.addDivRow();
hb.addDivCol17_67();
// Add the graph
hb.addDivCol25_50();
if (!valueList_.empty())
hb.addPieChart(valueList_, "Withdrawal");
hb.endDiv();
hb.startSortTable();
hb.startThead();
hb.startTableRow();
hb.addTableHeaderCell(" ", false, false);
hb.addTableHeaderCell(_("Payee"));
hb.addTableHeaderCell(_("Incomes"), true);
hb.addTableHeaderCell(_("Expenses"), true);
hb.addTableHeaderCell(_("Difference"), true);
hb.endTableRow();
hb.endThead();
hb.startTbody();
for (const auto& entry : data_)
{
hb.startTableRow();
hb.addColorMarker(entry.color);
hb.addTableCell(entry.name);
hb.addMoneyCell(entry.incomes);
hb.addMoneyCell(entry.expenses);
hb.addMoneyCell(entry.incomes + entry.expenses);
hb.endTableRow();
}
hb.endTbody();
hb.startTfoot();
std::vector <double> totals;
totals.push_back(positiveTotal_);
totals.push_back(negativeTotal_);
totals.push_back(positiveTotal_ + negativeTotal_);
hb.addTotalRow(_("Total:"), 5, totals);
hb.endTfoot();
hb.endTable();
hb.endDiv();
hb.endDiv();
hb.endDiv();
hb.end();
Model_Report::outputReportFile(hb.getHTMLText());
return "";
}
示例11: RefreshData
void __fastcall TGoodsAddrForm::FormShow(TObject *Sender)
{
edtID->Text="";
edtName->Text="";
edtType->Text="";
RefreshData();
m_enWorkState=EN_IDLE;
ResetCtrl();
}
示例12: RefreshData
void __fastcall TDicDepartForm::FormShow(TObject *Sender)
{
edtID->Text="";
edtName->Text="";
edtDepartCorp->Text="";
RefreshData();
m_enWorkState=EN_IDLE;
ResetCtrl();
}
示例13: RefreshData
//------------------------------------------------------------------------
// TControlDialog - SetupWindow
//------------------------------------------------------------------------
void TControlDialog::SetupWindow() {
int i;
TDialog::SetupWindow();
for (i=0;i<MAX_CONTROL_CENTER_TRIGGERS;i++) {
TriggerCombo->AddString(itoa(i,message,10));
}
TriggerCombo->SetSelIndex(0);
RefreshData();
}
示例14: RefreshData
void RefreshData(DEBUG_INFO *dbg_info, VARINFO *var)
{
while (var)
{
WatchValue(dbg_info, var->value, var, FALSE);
RefreshData(dbg_info, var->subtype);
var = var->link;
}
}
示例15: RefreshData
void __fastcall TStockDepartForm::FormShow(TObject *Sender)
{
edtID->Text="";
edtName->Text="";
edtAddress->Text="";
edtTel->Text="";
RefreshData();
m_enWorkState=EN_IDLE;
ResetCtrl();
}