Changeset 14187


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

Legend:

Unmodified
Added
Removed
  • 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 
  • 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
  • fact/tools/Edd/Edd.cc

    r12940 r14187  
    950950  // Open dialog and open history window
    951951  QString Result = QInputDialog::getItem(this, "Edd Request",
    952     "Enter or choose DIM service name (add index or index range a-b separated by colon)", List, 0, true, &OK);
     952    "Enter or choose DIM service name\n\nAdd index or index range a-b separated by colon\nWithout index, all array members will be plotted (for numeric data)", List, 0, true, &OK);
    953953
    954954  // Check if cancelled or empty data
Note: See TracChangeset for help on using the changeset viewer.