Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kumir2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kumir
kumir2
Commits
cd457bad
Commit
cd457bad
authored
May 21, 2013
by
Victor Yacovlev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
INTERFACES: Added cousre support interfaces
parent
05041564
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
0 deletions
+72
-0
src/shared/interfaces/coursesinterface.h
src/shared/interfaces/coursesinterface.h
+32
-0
src/shared/interfaces/guiinterface.h
src/shared/interfaces/guiinterface.h
+40
-0
No files found.
src/shared/interfaces/coursesinterface.h
0 → 100644
View file @
cd457bad
#ifndef COURSESINTERFACE_H
#define COURSESINTERFACE_H
#include <QtCore>
#include <QWidget>
namespace
Shared
{
class
CoursesInterface
{
Q_ENUMS
(
ProgramRunStatus
)
public:
enum
ProgramRunStatus
{
SuccessfullyFinished
,
UserTerminated
,
AbortedOnError
};
virtual
QWidget
*
mainWindow
()
const
=
0
;
virtual
QAction
*
actionPerformCheck
()
const
=
0
;
public
/*slots*/
:
virtual
void
setEnabled
(
bool
value
)
=
0
;
virtual
void
setTestingResult
(
ProgramRunStatus
status
,
int
value
)
=
0
;
};
}
#endif // COURSESINTERFACE_H
src/shared/interfaces/guiinterface.h
0 → 100644
View file @
cd457bad
#ifndef GUIINTERFACE_H
#define GUIINTERFACE_H
#include <dataformats/kumfile.h>
#include <QtCore>
#include <QWidget>
namespace
Shared
{
class
GuiInterface
{
Q_ENUMS
(
Shared
::
GuiInterface
::
ProgramSourceText
::
Language
)
public:
struct
ProgramSourceText
{
enum
Language
{
Kumir
,
Pascal
,
etc
=
255
};
Language
language
;
QDateTime
saved
;
QDateTime
changed
;
KumFile
::
Data
content
;
QString
title
;
};
public
/*slots*/
:
virtual
void
setProgramSource
(
const
ProgramSourceText
&
source
)
=
0
;
virtual
ProgramSourceText
programSource
()
const
=
0
;
virtual
void
startTesting
()
=
0
;
};
}
Q_DECLARE_METATYPE
(
Shared
::
GuiInterface
::
ProgramSourceText
)
Q_DECLARE_INTERFACE
(
Shared
::
GuiInterface
,
"kumir2.Gui"
)
#endif // GUIINTERFACE_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment