-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvisualabcmenudialog.cpp
More file actions
61 lines (52 loc) · 1.34 KB
/
visualabcmenudialog.cpp
File metadata and controls
61 lines (52 loc) · 1.34 KB
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
#include "visualabcmenudialog.h"
#include <cassert>
#include <iostream>
int ribi::VisualAbcMenuDialog::ExecuteSpecific(const std::vector<std::string>& argv) noexcept
{
const int argc = static_cast<int>(argv.size());
if (argc != 1)
{
std::cout << GetHelp() << '\n';
return 0;
}
std::cout << "VisualABC has no command-line interface\n";
return 0;
}
ribi::About ribi::VisualAbcMenuDialog::GetAbout() const noexcept
{
About a(
"Richel Bilderbeek",
"Visual ABC",
"visual ABC editor",
"the 5th of May 2011",
"2011-2015",
"http://www.richelbilderbeek.nl/ToolVisualAbc.htm",
GetVersion(),
GetVersionHistory());
//a.AddLibrary("Encranger version: " + Encranger::GetVersion());
//a.AddLibrary("LoopReader version: " + LoopReader<int>::GetVersion());
return a;
}
ribi::Help ribi::VisualAbcMenuDialog::GetHelp() const noexcept
{
return Help(
this->GetAbout().GetFileTitle(),
this->GetAbout().GetFileDescription(),
{
},
{
}
);
}
std::string ribi::VisualAbcMenuDialog::GetVersion() const noexcept
{
return "2.0";
}
std::vector<std::string> ribi::VisualAbcMenuDialog::GetVersionHistory() const noexcept
{
return {
"2011-05-01: Version 1.0: initial version",
"2011-05-01: Version 1.1: added button to save ABC text",
"2016-01-08: Version 2.0: moved to own GitHub",
};
}