Subversion Repositories svn.mios32

Rev

Rev 1190 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1190 Rev 1724
Line 1... Line 1...
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
// $Id: OscMonitor.cpp 1190 2011-04-24 23:20:11Z tk $
2
// $Id: OscMonitor.cpp 1724 2013-03-28 20:23:40Z tk $
3
/*
3
/*
4
 * OSC Monitor Component
4
 * OSC Monitor Component
5
 *
5
 *
6
 * ==========================================================================
6
 * ==========================================================================
7
 *
7
 *
Line 31... Line 31...
31
31
32
    addAndMakeVisible(monitorLogBox = new LogBox(T("Osc Monitor")));
32
    addAndMakeVisible(monitorLogBox = new LogBox(T("Osc Monitor")));
33
    monitorLogBox->addEntry(Colours::grey, T("OSC Monitor ready."));
33
    monitorLogBox->addEntry(Colours::grey, T("OSC Monitor ready."));
34
34
35
    // restore settings
35
    // restore settings
36
    PropertiesFile *propertiesFile = ApplicationProperties::getInstance()->getCommonSettings(true);
36
    PropertiesFile *propertiesFile = MiosStudioProperties::getInstance()->getCommonSettings(true);
37
    if( propertiesFile ) {
37
    if( propertiesFile ) {
38
        displayOptionsComboBox->setSelectedId(propertiesFile->getIntValue(T("oscDisplayOption")), true);
38
        displayOptionsComboBox->setSelectedId(propertiesFile->getIntValue(T("oscDisplayOption")), true);
39
    }
39
    }
40
40
41
    setSize(400, 200);
41
    setSize(400, 200);
Line 62... Line 62...
62
62
63
//==============================================================================
63
//==============================================================================
64
void OscMonitor::comboBoxChanged (ComboBox* comboBoxThatHasChanged)
64
void OscMonitor::comboBoxChanged (ComboBox* comboBoxThatHasChanged)
65
{
65
{
66
    if( comboBoxThatHasChanged == displayOptionsComboBox ) {
66
    if( comboBoxThatHasChanged == displayOptionsComboBox ) {
67
        PropertiesFile *propertiesFile = ApplicationProperties::getInstance()->getCommonSettings(true);
67
        PropertiesFile *propertiesFile = MiosStudioProperties::getInstance()->getCommonSettings(true);
68
        if( propertiesFile ) {
68
        if( propertiesFile ) {
69
            propertiesFile->setValue(T("oscDisplayOption"), String(displayOptionsComboBox->getSelectedId()));
69
            propertiesFile->setValue(T("oscDisplayOption"), String(displayOptionsComboBox->getSelectedId()));
70
        }
70
        }
71
    }
71
    }
72
}
72
}