/*
  ==============================================================================

  This is an automatically generated GUI class created by the Introjucer!

  Be careful when adding custom code to these files, as only the code within
  the "//[xyz]" and "//[/xyz]" sections will be retained when the file is loaded
  and re-saved.

  Created with Introjucer version: 3.1.1

  ------------------------------------------------------------------------------

  The Introjucer is part of the JUCE library - "Jules' Utility Class Extensions"
  Copyright 2004-13 by Raw Material Software Ltd.

  ==============================================================================
*/

#ifndef _CONFIG_H_
#define _CONFIG_H_

//[Headers]     -- You can add your own extra header files here --

#include "ConfigAudio.h"
#include "ConfigClient.h"
#include "ConfigGui.h"
#include "ConfigBlacklist.h"

//[/Headers]



//==============================================================================
/**
                                                                    //[Comments]
  Config is the configuration screen
  specific configuration options are distriibuted across several tabs
                                                                    //[/Comments]
*/
class Config  : public Component,
                public Value::Listener,
                public Button::Listener
{
public:
    //==============================================================================
    Config (ValueTree audio_store, ValueTree client_store, ValueTree gui_store, ValueTree blacklist_store, Value linjam_status);
    ~Config();

    //==============================================================================
    //[UserMethods]     -- You can add your own custom methods in this section.
    //[/UserMethods]

    void paint (Graphics& g);
    void resized();
    void buttonClicked (Button* buttonThatWasClicked);



private:
    //[UserVariables]   -- You can add your own custom variables in this section.

  ScopedPointer<ConfigAudio>     configAudio ;
  ScopedPointer<ConfigClient>    configClient ;
  ScopedPointer<ConfigGui>       configGui ;
  ScopedPointer<ConfigBlacklist> configBlacklist ;

//   ConfigAudio*     configAudio ;
//   ConfigClient*    configClient ;
//   ConfigGui*       configGui ;
//   ConfigBlacklist* configBlacklist ;

  void valueChanged(Value& a_value) ;


  Value linjamStatus ;

    //[/UserVariables]

    //==============================================================================
    ScopedPointer<TabbedComponent> configTabs;
    ScopedPointer<TextButton> dismissButton;


    //==============================================================================
    JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Config)
};

//[EndFile] You can add extra defines here...
//[/EndFile]

#endif // _CONFIG_H_
