1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
#include "juce.h"
class CTab3: public Component,
public ButtonListener
{
public:
CTab3();
~CTab3();
private:
TextButton* LoadButton; // bouton
Label *LPath;
TextEditor* TextPath;
TextEditor* TextError; // liste des erreurs
std::list<String> tags; // liste des tag en attente de fermeture /tag
};
CTab3::CTab3()
{
int X00, X0, DX, Y0, DY;
// bouton
addAndMakeVisible (LoadButton = new TextButton (T("LOAD")));
LoadButton->setBounds (24, 16, 40, 20);
LoadButton->addButtonListener (this);
LoadButton->setTooltip("charge data");
// path
X00 = X0 = 5;
Y0 = 40;
DX = 40;
DY = 20;
addAndMakeVisible (LPath = new Label (T("bof"), T("Path")));
LPath->setFont (Font (15.0000f, Font::plain));
LPath->setJustificationType (Justification::centredLeft);
LPath->setEditable (false, false, false);
LPath->setColour (TextEditor::textColourId, Colours::black);
LPath->setColour (TextEditor::backgroundColourId, Colour (0x0));
LPath->setBounds (X0, Y0, DX, DY);
X0 += DX;
// TextPath
DX = 100;
TextPath = new TextEditor();
addAndMakeVisible (TextPath);
TextPath->setBounds (X0, Y0, DX, DY);
TextPath->setText (T("..\\..\\out\\"));
Y0 += DY;
// TextError
X0 = X00;
DX = 350;
DY = 80;
TextError = new TextEditor();
addAndMakeVisible (TextError);
TextError->setBounds (X0, Y0, DX, DY);
TextError->setText (T(""));
TextError->setMultiLine(true);
Y0 += DY;
}; |
Partager