Exemple #1
0
void HWInfo::init()
{
    KGlobal::locale()->insertCatalog("plasma_applet_system-monitor");
    setTitle(i18n("Hardware Info"));
    setEngine(dataEngine("soliddevice"));
    setSources();
    connectToEngine();
}
Exemple #2
0
void Hdd::configChanged()
{
    KConfigGroup cg = config();
    QStringList sources = cg.readEntry("uuids", mounted());
    setSources(sources);
    setInterval(cg.readEntry("interval", 2) * 60 * 1000);
    connectToEngine();
}
Exemple #3
0
//==============================================================================
SamplesProjectAudioProcessorEditor::SamplesProjectAudioProcessorEditor (SamplesProjectAudioProcessor& p)
    : AudioProcessorEditor (&p), impl_(new pimpl), processor (p)
{
    addAndMakeVisible (impl_->zoomLabel);
    
    addAndMakeVisible (impl_->followTransportButton);
    impl_->followTransportButton.addListener (this);
    
    addAndMakeVisible (impl_->zoomSlider);
    impl_->zoomSlider.addListener (this);
    
    addAndMakeVisible (impl_->thumbnail);
    addAndMakeVisible (impl_->startStopButton);
    impl_->startStopButton.addListener (this);
    
    setOpaque (true);
    setSources();

    // Make sure that before the constructor has finished, you've set the
    // editor's size to whatever you need it to be.
    setSize (400, 300);
}