mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 08:47:28 +01:00
programs. The user can now add scripts. A contextual menu displays various options when clicking on a script, such as editing. Change-Id: I124a17f7584b0beedb897e8499ca0a1bb6c13cbe
23 lines
358 B
C++
23 lines
358 B
C++
#include "program.h"
|
|
|
|
namespace Code {
|
|
|
|
Program::Program(char * textBuffer, size_t sizeOfBuffer) :
|
|
m_bufferSize(sizeOfBuffer),
|
|
m_textBuffer(textBuffer)
|
|
{
|
|
}
|
|
|
|
const char * Program::readOnlyContent() const {
|
|
return m_textBuffer;
|
|
}
|
|
|
|
char * Program::editableContent() {
|
|
return m_textBuffer;
|
|
}
|
|
int Program::bufferSize() const {
|
|
return m_bufferSize;
|
|
}
|
|
|
|
}
|