Skip to content
Snippets Groups Projects
  • jsiegle's avatar
    ea8c1c90
    Run astyle to make code format more consistent · ea8c1c90
    jsiegle authored
    To run this in the future, install astyle (sudo apt-get install astyle),
    then enter the following from the top-level project directory:
    
    astyle --options=astyle.options --recursive "./Source/*.cpp" "./Source/*.h"
    
    This will convert tabs to 4 spaces and ensure that brackets are on
    their own lines.
    ea8c1c90
    History
    Run astyle to make code format more consistent
    jsiegle authored
    To run this in the future, install astyle (sudo apt-get install astyle),
    then enter the following from the top-level project directory:
    
    astyle --options=astyle.options --recursive "./Source/*.cpp" "./Source/*.h"
    
    This will convert tabs to 4 spaces and ensure that brackets are on
    their own lines.
EditorViewportButtons.h 2.03 KiB
/*
    ------------------------------------------------------------------

    This file is part of the Open Ephys GUI
    Copyright (C) 2013 Open Ephys

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

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef __EDITORVIEWPORTBUTTONS_H_2657C51D__
#define __EDITORVIEWPORTBUTTONS_H_2657C51D__

#include "../../JuceLibraryCode/JuceHeader.h"

/**

  Allows the user to scroll through visible editors when
  there are more than can fit within the boundaries of the
  EditorViewport.

  @see EditorViewport.

*/

class EditorScrollButton : public DrawableButton
{
public:
    EditorScrollButton(int type);
    ~EditorScrollButton();

    void setActive(bool);

    bool isActive;

    enum type {LEFT, RIGHT};

    int direction;

    DrawablePath inactive, activeNormal, activeOver, activeDown;

};

/**

  Allows the user to scroll through signal chains when
  there are more than can fit within the boundaries of the
  EditorViewport.

  @see EditorViewport.

*/

class SignalChainScrollButton : public DrawableButton
{
public:
    SignalChainScrollButton(int type);
    ~SignalChainScrollButton();

    void setActive(bool);

    enum type {UP, DOWN};

    bool isActive;

    int direction;

    DrawablePath inactive, activeNormal, activeOver, activeDown;
};



#endif  // __EDITORVIEWPORTBUTTONS_H_2657C51D__