当前位置: 首页>>代码示例>>C++>>正文


C++ RefreshData函数代码示例

本文整理汇总了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() ;
}
开发者ID:25311753,项目名称:asi,代码行数:7,代码来源:DicSupplier.cpp

示例2: RefreshData

//---------------------------------------------------------------------------
void __fastcall TDicPackForm::FormShow(TObject *Sender)
{
  edtName->Text="";
  RefreshData();
  m_enWorkState=EN_IDLE;
  ResetCtrl();        
}
开发者ID:25311753,项目名称:runshun,代码行数:8,代码来源:DicPack.cpp

示例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();
	}
}
开发者ID:germanocaldeira,项目名称:no-one-lives-forever,代码行数:33,代码来源:IntelItemMgr.cpp

示例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();	
	}
}
开发者ID:segafan,项目名称:Construct-classic,代码行数:32,代码来源:SettingsDlg.cpp

示例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);
            }
        }
    }
}
开发者ID:doniexun,项目名称:OrangeC,代码行数:34,代码来源:dbgwatch.c

示例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()));
}
开发者ID:Qasemt,项目名称:irrigationsystem,代码行数:8,代码来源:deviceprocess.cpp

示例7: OnOK

void CMTMDlg::OnOK() 
{
	// TODO: Add extra validation here
	if( !RefreshData( TRUE ) )
		m_pMTM->SetDefaultParameters( );

	CParamDlg::OnOK();
}
开发者ID:amikey,项目名称:tradingstrategyking,代码行数:8,代码来源:MTMDlg.cpp

示例8: RefreshStruct

/*---------------------------------------------------------------------------*/
void wxTableBook::RefreshDbObject()
{
    RefreshStruct();
    if ("Data" == m_Book->GetPageText(m_Book->GetSelection()))
        RefreshData();
    else
        m_InitData = true;
}
开发者ID:4silvertooth,项目名称:wxSqlitePlus,代码行数:9,代码来源:tablebook.cpp

示例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;
}
开发者ID:tromeli,项目名称:STM32F0_User_lib,代码行数:8,代码来源:U_ADC.cpp

示例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 "";
}
开发者ID:Zorg2409,项目名称:moneymanagerex,代码行数:58,代码来源:payee.cpp

示例11: RefreshData

void __fastcall TGoodsAddrForm::FormShow(TObject *Sender)
{
	edtID->Text="";
  edtName->Text="";
  edtType->Text="";
  RefreshData();
  m_enWorkState=EN_IDLE;
  ResetCtrl();
}
开发者ID:25311753,项目名称:asi,代码行数:9,代码来源:GoodsAddr.cpp

示例12: RefreshData

void __fastcall TDicDepartForm::FormShow(TObject *Sender)
{
	edtID->Text="";
  edtName->Text="";
	edtDepartCorp->Text="";
  RefreshData();
  m_enWorkState=EN_IDLE;
  ResetCtrl();
}
开发者ID:25311753,项目名称:asi,代码行数:9,代码来源:DicDepart.cpp

示例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();
}
开发者ID:paud,项目名称:d2x-xl,代码行数:12,代码来源:control.cpp

示例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;
    }
}
开发者ID:doniexun,项目名称:OrangeC,代码行数:9,代码来源:dbgwatch.c

示例15: RefreshData

void __fastcall TStockDepartForm::FormShow(TObject *Sender)
{
	edtID->Text="";
  edtName->Text="";
  edtAddress->Text="";
  edtTel->Text="";
  RefreshData();
  m_enWorkState=EN_IDLE;
  ResetCtrl();
}
开发者ID:25311753,项目名称:asi,代码行数:10,代码来源:StockDepart.cpp


注:本文中的RefreshData函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。