Пример #1
0
ProcessorList::ProcessorList() : isDragging(false),
                           itemHeight(32),
                           subItemHeight(22),
                           totalHeight(800),
                           xBuffer(1),
                           yBuffer(1)
{

	ProcessorListItem* sources = new ProcessorListItem("Sources");
	sources->addSubItem(new ProcessorListItem("Intan Demo Board"));
	sources->addSubItem(new ProcessorListItem("Signal Generator"));
	//sources->addSubItem(new ProcessorListItem("Custom FPGA"));
	//sources->addSubItem(new ProcessorListItem("File Reader"));
	sources->addSubItem(new ProcessorListItem("Event Generator"));

	ProcessorListItem* filters = new ProcessorListItem("Filters");
	filters->addSubItem(new ProcessorListItem("Bandpass Filter"));
	//filters->addSubItem(new ProcessorListItem("Resampler"));
	//filters->addSubItem(new ProcessorListItem("Spike Detector"));

	ProcessorListItem* sinks = new ProcessorListItem("Sinks");
	sinks->addSubItem(new ProcessorListItem("LFP Viewer"));
	//sinks->addSubItem(new ProcessorListItem("Spike Display"));
	sinks->addSubItem(new ProcessorListItem("WiFi Output"));

	//ProcessorListItem* utilities = new ProcessorListItem("Utilities");
	//utilities->addSubItem(new ProcessorListItem("Splitter"));
	//utilities->addSubItem(new ProcessorListItem("Merger"));

	baseItem = new ProcessorListItem("Processors");
	baseItem->addSubItem(sources);
	baseItem->addSubItem(filters);
	baseItem->addSubItem(sinks);
	//baseItem->addSubItem(utilities);

	// set parent names / colors
	baseItem->setParentName("Processors");

	for (int n = 0; n < baseItem->getNumSubItems(); n++)
	{

		const String category = baseItem->getSubItem(n)->getName();
		baseItem->getSubItem(n)->setParentName(category);

			for (int m = 0; m < baseItem->getSubItem(n)->getNumSubItems(); m++)
			{

				baseItem->getSubItem(n)->getSubItem(m)->setParentName(category);// = category;

			}
			
	}

}
Пример #2
0
ProcessorList::ProcessorList()
    : isDragging(false), totalHeight(800), itemHeight(32), subItemHeight(22),
      xBuffer(1), yBuffer(1)
{

    listFontLight = Font("Default Light", 25, Font::plain);
    listFontPlain = Font("Default", 20, Font::plain);

    setColour(PROCESSOR_COLOR, Colour(59, 59, 59));
    setColour(FILTER_COLOR, Colour(0, 174, 239));
    setColour(SINK_COLOR, Colour(0, 166, 81));
    setColour(SOURCE_COLOR, Colour(241, 90, 41));
    setColour(UTILITY_COLOR, Colour(147, 149, 152));

    ProcessorListItem* sources = new ProcessorListItem("Sources");
    //sources->addSubItem(new ProcessorListItem("RHA2000-EVAL"));
    //sources->addSubItem(new ProcessorListItem("Signal Generator"));
    //sources->addSubItem(new ProcessorListItem("Custom FPGA"));
    sources->addSubItem(new ProcessorListItem("Rhythm FPGA"));
#if JUCE_WINDOWS // eCube module currently only available for Windows
#ifdef ECUBE_COMPILE
    sources->addSubItem(new ProcessorListItem("eCube")); // Added by Michael Borisov
#endif
#endif
    sources->addSubItem(new ProcessorListItem("File Reader"));
#ifdef ZEROMQ
    sources->addSubItem(new ProcessorListItem("Network Events"));
#endif
    sources->addSubItem(new ProcessorListItem("Serial Port"));
    //sources->addSubItem(new ProcessorListItem("Event Generator"));

    ProcessorListItem* filters = new ProcessorListItem("Filters");
    filters->addSubItem(new ProcessorListItem("Bandpass Filter"));
    filters->addSubItem(new ProcessorListItem("Spike Detector"));
    filters->addSubItem(new ProcessorListItem("Spike Sorter"));
    //filters->addSubItem(new ProcessorListItem("Resampler"));
    filters->addSubItem(new ProcessorListItem("Phase Detector"));
    //filters->addSubItem(new ProcessorListItem("Digital Ref"));
    filters->addSubItem(new ProcessorListItem("Channel Map"));
    filters->addSubItem(new ProcessorListItem("Common Avg Ref"));
    filters->addSubItem(new ProcessorListItem("Rectifier"));
    //filters->addSubItem(new ProcessorListItem("Eye Tracking"));


    ProcessorListItem* sinks = new ProcessorListItem("Sinks");
    sinks->addSubItem(new ProcessorListItem("LFP Viewer"));
    //sinks->addSubItem(new ProcessorListItem("LFP Trig. Avg."));
    sinks->addSubItem(new ProcessorListItem("Spike Viewer"));
    sinks->addSubItem(new ProcessorListItem("PSTH"));
    //sinks->addSubItem(new ProcessorListItem("Network Sink"));
    //sinks->addSubItem(new ProcessorListItem("WiFi Output"));
    sinks->addSubItem(new ProcessorListItem("Arduino Output"));
    // sinks->addSubItem(new ProcessorListItem("FPGA Output"));
    sinks->addSubItem(new ProcessorListItem("Pulse Pal"));
#ifdef ZEROMQ
    sinks->addSubItem(new ProcessorListItem("Event Broadcaster"));
#endif

    ProcessorListItem* utilities = new ProcessorListItem("Utilities");
    utilities->addSubItem(new ProcessorListItem("Splitter"));
    utilities->addSubItem(new ProcessorListItem("Merger"));
    utilities->addSubItem(new ProcessorListItem("Record Control"));
    //utilities->addSubItem(new ProcessorListItem("Advancers"));

    baseItem = new ProcessorListItem("Processors");
    baseItem->addSubItem(sources);
    baseItem->addSubItem(filters);
    baseItem->addSubItem(sinks);
    baseItem->addSubItem(utilities);

    // set parent names / colors
    baseItem->setParentName("Processors");

    for (int n = 0; n < baseItem->getNumSubItems(); n++)
    {

        const String category = baseItem->getSubItem(n)->getName();
        baseItem->getSubItem(n)->setParentName(category);

        for (int m = 0; m < baseItem->getSubItem(n)->getNumSubItems(); m++)
        {

            baseItem->getSubItem(n)->getSubItem(m)->setParentName(category);// = category;

        }

    }

}
Пример #3
0
ProcessorList::ProcessorList() : isDragging(false),
                           itemHeight(32),
                           subItemHeight(22),
                           totalHeight(800),
                           xBuffer(1),
                           yBuffer(1)
{


	setColour(PROCESSOR_COLOR, Colour(59, 59, 59));
	setColour(FILTER_COLOR, Colour(41, 76, 158));//Colour(255, 89, 0));
	setColour(SINK_COLOR, Colour(93, 125, 199));//Colour(255, 149, 0));
	setColour(SOURCE_COLOR, Colour(48, 67, 112)); //Colour(255, 0, 0));
	setColour(UTILITY_COLOR, Colour(90, 80, 80));

	ProcessorListItem* sources = new ProcessorListItem("Sources");
	sources->addSubItem(new ProcessorListItem("Intan Demo Board"));
	sources->addSubItem(new ProcessorListItem("Signal Generator"));
	sources->addSubItem(new ProcessorListItem("Custom FPGA"));
	sources->addSubItem(new ProcessorListItem("File Reader"));
	sources->addSubItem(new ProcessorListItem("Event Generator"));

	ProcessorListItem* filters = new ProcessorListItem("Filters");
	filters->addSubItem(new ProcessorListItem("Bandpass Filter"));
	//filters->addSubItem(new ProcessorListItem("Resampler"));
	filters->addSubItem(new ProcessorListItem("Spike Detector"));

	ProcessorListItem* sinks = new ProcessorListItem("Sinks");
	sinks->addSubItem(new ProcessorListItem("LFP Viewer"));
	sinks->addSubItem(new ProcessorListItem("Spike Viewer"));
	sinks->addSubItem(new ProcessorListItem("WiFi Output"));
	sinks->addSubItem(new ProcessorListItem("Arduino Output"));

	ProcessorListItem* utilities = new ProcessorListItem("Utilities");
	utilities->addSubItem(new ProcessorListItem("Splitter"));
	utilities->addSubItem(new ProcessorListItem("Merger"));

	baseItem = new ProcessorListItem("Processors");
	baseItem->addSubItem(sources);
	baseItem->addSubItem(filters);
	baseItem->addSubItem(sinks);
	baseItem->addSubItem(utilities);

	// set parent names / colors
	baseItem->setParentName("Processors");

	for (int n = 0; n < baseItem->getNumSubItems(); n++)
	{

		const String category = baseItem->getSubItem(n)->getName();
		baseItem->getSubItem(n)->setParentName(category);

			for (int m = 0; m < baseItem->getSubItem(n)->getNumSubItems(); m++)
			{

				baseItem->getSubItem(n)->getSubItem(m)->setParentName(category);// = category;

			}
			
	}

}
Пример #4
0
ProcessorList::ProcessorList()
    : isDragging(false), totalHeight(800), itemHeight(32), subItemHeight(22),
      xBuffer(1), yBuffer(1)
{

    listFontLight = Font("Default Light", 25, Font::plain);
    listFontPlain = Font("Default", 20, Font::plain);

    setColour(PROCESSOR_COLOR, Colour(59, 59, 59));
    setColour(FILTER_COLOR, Colour(0, 174, 239));
    setColour(SINK_COLOR, Colour(0, 166, 81));
    setColour(SOURCE_COLOR, Colour(241, 90, 41));
    setColour(UTILITY_COLOR, Colour(147, 149, 152));

    ProcessorListItem* sources = new ProcessorListItem("Sources");
    //sources->addSubItem(new ProcessorListItem("RHA2000-EVAL"));
    //sources->addSubItem(new ProcessorListItem("Signal Generator"));
    //sources->addSubItem(new ProcessorListItem("Custom FPGA"));
    sources->addSubItem(new ProcessorListItem("Rhythm FPGA"));
    sources->addSubItem(new ProcessorListItem("File Reader"));
    //sources->addSubItem(new ProcessorListItem("Event Generator"));

    ProcessorListItem* filters = new ProcessorListItem("Filters");
    filters->addSubItem(new ProcessorListItem("Bandpass Filter"));
    //filters->addSubItem(new ProcessorListItem("Event Detector"));
    filters->addSubItem(new ProcessorListItem("Spike Detector"));
    //filters->addSubItem(new ProcessorListItem("Resampler"));
    filters->addSubItem(new ProcessorListItem("Phase Detector"));
    //filters->addSubItem(new ProcessorListItem("Digital Ref"));
    filters->addSubItem(new ProcessorListItem("Channel Map"));

    ProcessorListItem* sinks = new ProcessorListItem("Sinks");
    sinks->addSubItem(new ProcessorListItem("LFP Viewer"));
    //sinks->addSubItem(new ProcessorListItem("LFP Trig. Avg."));
    sinks->addSubItem(new ProcessorListItem("Spike Viewer"));
    //sinks->addSubItem(new ProcessorListItem("WiFi Output"));
    //sinks->addSubItem(new ProcessorListItem("Arduino Output"));
    // sinks->addSubItem(new ProcessorListItem("FPGA Output"));
    sinks->addSubItem(new ProcessorListItem("Pulse Pal"));

    ProcessorListItem* utilities = new ProcessorListItem("Utilities");
    utilities->addSubItem(new ProcessorListItem("Splitter"));
    utilities->addSubItem(new ProcessorListItem("Merger"));
    utilities->addSubItem(new ProcessorListItem("Record Control"));

    baseItem = new ProcessorListItem("Processors");
    baseItem->addSubItem(sources);
    baseItem->addSubItem(filters);
    baseItem->addSubItem(sinks);
    baseItem->addSubItem(utilities);

    // set parent names / colors
    baseItem->setParentName("Processors");

    for (int n = 0; n < baseItem->getNumSubItems(); n++)
    {

        const String category = baseItem->getSubItem(n)->getName();
        baseItem->getSubItem(n)->setParentName(category);

        for (int m = 0; m < baseItem->getSubItem(n)->getNumSubItems(); m++)
        {

            baseItem->getSubItem(n)->getSubItem(m)->setParentName(category);// = category;

        }

    }

}