Commit ed4c14f5 authored by Denis Khachko's avatar Denis Khachko

Draw module fix

parent 0e6454ba
......@@ -85,6 +85,7 @@ namespace ActorDraw {
void setDraw(DrawModule* draw){DRAW=draw;};
void addDrawLine(QLineF lineF,QColor color,qreal width)
{
if(lineF.length()==0)return;
QGraphicsLineItem* line=addLine(lineF);
QPen mp=QPen(QColor(color));
mp.setWidthF(width);
......
......@@ -59,6 +59,9 @@ void Plugin::rebuildRescentMenu()
rescentMenu->setEnabled(hasAnyItem);
};
QString Plugin::getText()
{
GI * gui = ExtensionSystem::PluginManager::instance()->findPlugin<GI>();
......
......@@ -34,6 +34,13 @@ public:
QWidget* settingsEditorPage();
QList<QMenu*> menus() const;
QString getText();
inline QList<ExtensionSystem::CommandLineParameter> acceptableCommandLineParameters() const
{
QList<ExtensionSystem::CommandLineParameter> params;
params.append(ExtensionSystem::CommandLineParameter(true,'w',"work",tr("Work book file"),QVariant::String,false));
params.append(ExtensionSystem::CommandLineParameter(true,'c',"classbook",tr("Classbook file"),QVariant::String,false));
return params;
};
void setParam(QString paramname,QString param){};
bool startNewTask(QStringList isps,KumZadanie* task);
void setPreProgram(QVariant param);
......
......@@ -31,11 +31,11 @@ cursFile="";
connect(ui->loadCurs,SIGNAL(triggered()),this,SLOT(loadCourse()));
connect(ui->actionSave,SIGNAL(triggered()),this,SLOT(saveCourse()));
connect(ui->treeView,SIGNAL(clicked(QModelIndex)),this,SLOT(showText(QModelIndex)));
connect(ui->do_task,SIGNAL(triggered()),this,SLOT(startTask()));
qDebug()<<"Check Connect tttttttttttttttttt";
connect(ui->checkTask,SIGNAL(triggered()),this,SLOT(checkTask()));
connect(ui->actionReset,SIGNAL(triggered()),this,SLOT(resetTask()));
connect(ui->actionClose,SIGNAL(triggered()),this,SLOT(Close()));
connect(ui->do_task,SIGNAL(triggered()),this,SLOT(startTask()));
qDebug()<<"Check Connect tttttttttttttttttt";
connect(ui->checkTask,SIGNAL(triggered()),this,SLOT(checkTask()));
connect(ui->actionReset,SIGNAL(triggered()),this,SLOT(resetTask()));
connect(ui->actionClose,SIGNAL(triggered()),this,SLOT(Close()));
connect(ui->actionTested,SIGNAL(triggered()),this,SLOT(returnTested()));
connect(ui->treeView,SIGNAL(customContextMenuRequested(QPoint)),this,SLOT(customContextMenuRequested(QPoint)));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment