| 6 | #include "CtrlrInlineUtilitiesGUI.h" |
| 7 | |
| 8 | CtrlrAbout::CtrlrAbout (CtrlrManager &_owner) |
| 9 | : owner(_owner) |
| 10 | { |
| 11 | //[Constructor_pre] You can add your own custom stuff here.. |
| 12 | //[/Constructor_pre] |
| 13 | |
| 14 | String authorEmail; |
| 15 | if(owner.getActivePanel()) authorEmail = owner.getActivePanel()->getProperty(Ids::panelAuthorEmail); |
| 16 | else authorEmail = ""; |
| 17 | String authorDonateUrl; |
| 18 | if(owner.getActivePanel()) authorDonateUrl = owner.getActivePanel()->getProperty(Ids::panelAuthorDonateUrl); |
| 19 | else authorDonateUrl = ""; |
| 20 | |
| 21 | addAndMakeVisible (ctrlrName = new Label ("", |
| 22 | TRANS("Ctrlr"))); |
| 23 | ctrlrName->setFont (Font (48.00f, Font::bold)); |
| 24 | ctrlrName->setJustificationType (Justification::centredLeft); |
| 25 | ctrlrName->setEditable (false, false, false); |
| 26 | ctrlrName->setColour (Label::textColourId, Colour (0xd6000000)); |
| 27 | ctrlrName->setColour (TextEditor::textColourId, Colours::black); |
| 28 | ctrlrName->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); |
| 29 | |
| 30 | addAndMakeVisible (ctrlrLogo = gui::createDrawableButton("Ctrlr", BIN2STR(ctrlr_logo_svg))); |
| 31 | ctrlrLogo->addListener (this); |
| 32 | |
| 33 | addAndMakeVisible (versionInfoLabel = new TextEditor ("")); |
| 34 | versionInfoLabel->setMultiLine (true); |
| 35 | versionInfoLabel->setReturnKeyStartsNewLine (true); |
| 36 | versionInfoLabel->setReadOnly (true); |
| 37 | versionInfoLabel->setScrollbarsShown (true); |
| 38 | versionInfoLabel->setCaretVisible (false); |
| 39 | versionInfoLabel->setPopupMenuEnabled (true); |
| 40 | versionInfoLabel->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); |
| 41 | versionInfoLabel->setColour (TextEditor::outlineColourId, Colour (0x9c000000)); |
| 42 | versionInfoLabel->setColour (TextEditor::shadowColourId, Colour (0x00000000)); |
| 43 | versionInfoLabel->setText (""); |
| 44 | |
| 45 | addAndMakeVisible (label = new Label ("new label", |
| 46 | TRANS("Instance name"))); |
| 47 | label->setFont (Font (24.00f, Font::bold)); |
| 48 | label->setJustificationType (Justification::topRight); |
| 49 | label->setEditable (false, false, false); |
| 50 | label->setColour (TextEditor::textColourId, Colours::black); |
| 51 | label->setColour (TextEditor::backgroundColourId, Colour (0x00000000)); |
| 52 | |
| 53 | if (!authorDonateUrl.isEmpty()) |
| 54 | { |
| 55 | addAndMakeVisible(labelDonate = new Label("new label", TRANS("Donate"))); |
| 56 | labelDonate->setFont(Font(24.00f, Font::plain)); |
| 57 | labelDonate->setJustificationType(Justification::topRight); |
| 58 | labelDonate->setEditable(false, false, false); |
| 59 | labelDonate->setColour(TextEditor::textColourId, Colours::black); |
| 60 | labelDonate->setColour(TextEditor::backgroundColourId, Colour(0x00000000)); |
| 61 | } |
| 62 | |
| 63 | addAndMakeVisible (label2 = new Label ("new label", |
| 64 | TRANS("Author"))); |
| 65 | label2->setFont (Font (24.00f, Font::plain)); |
nothing calls this directly
no test coverage detected