From ee0e88e4f8ecf5d3591e7a96d8af9f73380805d9 Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Fri, 29 Apr 2016 11:24:47 +0200 Subject: Tinted some Icons to differentiate between selected and non-selected students. --- icons/student2tutor.svg | 36 ++++++++++---------------- icons/student2tutor_extension.svg | 36 ++++++++++---------------- icons/tutor2student.svg | 36 ++++++++++---------------- src/server/connectionframe/connectionframe.cpp | 4 +-- src/server/mainwindow/mainwindow.cpp | 11 ++++++++ 5 files changed, 52 insertions(+), 71 deletions(-) diff --git a/icons/student2tutor.svg b/icons/student2tutor.svg index 94a3ff4..c40c478 100644 --- a/icons/student2tutor.svg +++ b/icons/student2tutor.svg @@ -15,7 +15,7 @@ height="114.30188" id="svg2" xml:space="preserve" - inkscape:version="0.48.4 r9939" + inkscape:version="0.48.5 r10040" sodipodi:docname="student2tutor.svg">image/svg+xmlsetEnabled(true); } + /* and disable some again based on special rules */ + if (getSelectedFrame()->client() != NULL) { + ui->action_DeleteClient->setEnabled(false); + } + if (getSelectedFrame()->client() == NULL) { + ui->action_SetAsTutor->setEnabled(false); + ui->action_StudentToTutorExclusive->setEnabled(false); + ui->action_StudentToTutor->setEnabled(false); + } + + } /***************************************************************************//** * Handle Mouse Release Event. -- cgit v1.2.3-55-g7522