Changeset 14187 for fact/Evidence


Ignore:
Timestamp:
06/19/12 08:44:57 (13 years ago)
Author:
ogrimm
Message:
Simplified history plot selection for numeric arrays
Location:
fact/Evidence
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified fact/Evidence/GUI.cc

    r14061 r14187  
    4343  QGridLayout *Layout = new QGridLayout(M->centralWidget());
    4444 
     45  // If service ends with 'C' make text display, otherwise numeric plot
    4546  if (Format.endsWith('C', Qt::CaseInsensitive)) Layout->addWidget(new EddText(Service), 0, 0);
    46   else  {
     47  else {
    4748    EddPlot *W = new EddPlot(Service, FromIndex);
     49       
     50        // If service is array and no index given, try to find out how many indices exist and add all
     51        if (FromIndex == -1 && Format.size() == 1) {
     52          DimCurrentInfo X(Service, NULL, 0);
     53         
     54          FromIndex = 0;
     55          ToIndex = EvidenceServer::Tokenize(EvidenceServer::ToString(Format.toAscii().data(), X.getData(), X.getSize()), " ").size() - 1;
     56        }
     57       
     58        // Add all requested indices
    4859        for (int i=FromIndex+1; i<=ToIndex; i++) W->AddService(Service,i);
    4960 
  • TabularUnified fact/Evidence/readme.txt

    r14174 r14187  
    6666                        services subscribed to.
    676713/6/2012       Removed calling Message() before abort() in signal handler, as Message() might get stuck
     6819/6/2012   Giving no indices in OpenHistory() will try to open plot for all members of an array
Note: See TracChangeset for help on using the changeset viewer.