//------------------------------------------------------------------------- // Get All charts //------------------------------------------------------------------------- void CFuiListPlan::FillOneList(char *ext) { char fn[MAX_PATH]; sprintf(fn,"CHARTS/*.%s",ext); //--- Get all JPG files in the list -------------- char *name = (char*)pfindfirst (&globals->pfs,fn); while (name) { char *deb = strrchr(name,'/'); if (deb) AddChart(deb+1); name = (char*)pfindnext(&globals->pfs); } //--- Get All PNG files in the list -------------- return; }
C4ChartDialog::C4ChartDialog() : Dialog(DialogWidth, DialogHeight, LoadResStr("IDS_NET_STATISTICS"), false) { // register singleton pChartDlg = this; // add main chart switch component C4GUI::ComponentAligner caAll(GetContainedClientRect(), 5,5); pChartTabular = new C4GUI::Tabular(caAll.GetAll(), C4GUI::Tabular::tbTop); AddElement(pChartTabular); // add some graphs as subcomponents AddChart(StdStrBuf("oc")); AddChart(StdStrBuf("FPS")); AddChart(StdStrBuf("NetIO")); if (::Network.isEnabled()) AddChart(StdStrBuf("Pings")); AddChart(StdStrBuf("Control")); AddChart(StdStrBuf("APM")); }