dropshadow effect on selected node

master
Denes Matetelki 14 years ago
parent 67819c5538
commit 1c3a41666e

@ -3,6 +3,7 @@
#include <QGraphicsTextItem> #include <QGraphicsTextItem>
#include <QTextCursor> #include <QTextCursor>
#include <QGraphicsDropShadowEffect>
#include "edge.h" #include "edge.h"
#include "graphwidget.h" #include "graphwidget.h"
@ -83,6 +84,7 @@ private:
bool m_numberIsSpecial; bool m_numberIsSpecial;
QColor m_color; QColor m_color;
QColor m_textColor; QColor m_textColor;
QGraphicsDropShadowEffect *m_effect;
static const double m_pi; static const double m_pi;
static const double m_oneAndHalfPi; static const double m_oneAndHalfPi;

@ -90,58 +90,58 @@
<translation>Nem lehetett elemezni az XML dokumentumot.</translation> <translation>Nem lehetett elemezni az XML dokumentumot.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="228"/> <location filename="../src/graphwidget.cpp" line="230"/>
<source>Couldn&apos;t open file to write.</source> <source>Couldn&apos;t open file to write.</source>
<translation>Nem lehetett a fájlt megnyitni írásra.</translation> <translation>Nem lehetett a fájlt megnyitni írásra.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="236"/> <location filename="../src/graphwidget.cpp" line="238"/>
<source>Saved.</source> <source>Saved.</source>
<translation>Elmentve.</translation> <translation>Elmentve.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="258"/> <location filename="../src/graphwidget.cpp" line="260"/>
<source>MindMap exported as </source> <source>MindMap exported as </source>
<translation>Az agytérkép exportálva lett, mint</translation> <translation>Az agytérkép exportálva lett, mint</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="271"/> <location filename="../src/graphwidget.cpp" line="269"/>
<location filename="../src/graphwidget.cpp" line="311"/> <location filename="../src/graphwidget.cpp" line="309"/>
<location filename="../src/graphwidget.cpp" line="356"/> <location filename="../src/graphwidget.cpp" line="354"/>
<location filename="../src/graphwidget.cpp" line="371"/> <location filename="../src/graphwidget.cpp" line="377"/>
<location filename="../src/graphwidget.cpp" line="399"/> <location filename="../src/graphwidget.cpp" line="398"/>
<location filename="../src/graphwidget.cpp" line="425"/> <location filename="../src/graphwidget.cpp" line="419"/>
<location filename="../src/graphwidget.cpp" line="461"/> <location filename="../src/graphwidget.cpp" line="455"/>
<location filename="../src/graphwidget.cpp" line="549"/> <location filename="../src/graphwidget.cpp" line="543"/>
<location filename="../src/graphwidget.cpp" line="586"/> <location filename="../src/graphwidget.cpp" line="580"/>
<location filename="../src/graphwidget.cpp" line="762"/> <location filename="../src/graphwidget.cpp" line="771"/>
<location filename="../src/graphwidget.cpp" line="805"/> <location filename="../src/graphwidget.cpp" line="814"/>
<source>No active node.</source> <source>No active node.</source>
<translation>Nincs aktív csúcs.</translation> <translation>Nincs aktív csúcs.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="317"/> <location filename="../src/graphwidget.cpp" line="315"/>
<source>Base node cannot be deleted.</source> <source>Base node cannot be deleted.</source>
<translation>Bázis csúcs nem törölhető.</translation> <translation>Bázis csúcs nem törölhető.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="443"/> <location filename="../src/graphwidget.cpp" line="437"/>
<source>Select node color</source> <source>Select node color</source>
<translation>Csúcs szín választás</translation> <translation>Csúcs szín választás</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="479"/> <location filename="../src/graphwidget.cpp" line="473"/>
<source>Select text color</source> <source>Select text color</source>
<translation>Csúcs szüvegszín választás</translation> <translation>Csúcs szüvegszín választás</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="514"/> <location filename="../src/graphwidget.cpp" line="508"/>
<source>Edge adding cancelled.</source> <source>Edge adding cancelled.</source>
<oldsource>Edge adding cancelled</oldsource> <oldsource>Edge adding cancelled</oldsource>
<translation>Él hozzáadása megszakítva.</translation> <translation>Él hozzáadása megszakítva.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="519"/> <location filename="../src/graphwidget.cpp" line="513"/>
<source>Edge deleting cancelled.</source> <source>Edge deleting cancelled.</source>
<oldsource>Edge deleting cancelled</oldsource> <oldsource>Edge deleting cancelled</oldsource>
<translation>Él törlés megszakítva.</translation> <translation>Él törlés megszakítva.</translation>
@ -151,32 +151,32 @@
<translation type="obsolete">Az utolsó csúcs nem törölhető.</translation> <translation type="obsolete">Az utolsó csúcs nem törölhető.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="491"/> <location filename="../src/graphwidget.cpp" line="485"/>
<source>Add edge: select destination node.</source> <source>Add edge: select destination node.</source>
<translation>Él hozzáadásához válassz ki cél csúcsot.</translation> <translation>Él hozzáadásához válassz ki cél csúcsot.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="497"/> <location filename="../src/graphwidget.cpp" line="491"/>
<source>Delete edge: select other end-node.</source> <source>Delete edge: select other end-node.</source>
<translation>Él törléséhez válaszd ki a másik csúcsot.</translation> <translation>Él törléséhez válaszd ki a másik csúcsot.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="769"/> <location filename="../src/graphwidget.cpp" line="778"/>
<source>Root element cannot be an edge target.</source> <source>Root element cannot be an edge target.</source>
<translation>Bázis csúcs nem lehet él végpontja.</translation> <translation>Bázis csúcs nem lehet él végpontja.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="776"/> <location filename="../src/graphwidget.cpp" line="785"/>
<source>There is already an edge between these two nodes.</source> <source>There is already an edge between these two nodes.</source>
<translation>Már létezik él e két csúcs között.</translation> <translation>Már létezik él e két csúcs között.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="785"/> <location filename="../src/graphwidget.cpp" line="794"/>
<source>The graph is acyclic, edge added as secondary edge.</source> <source>The graph is acyclic, edge added as secondary edge.</source>
<translation>A gráf aciklikus, az él másodlagosként lett hozzáadva.</translation> <translation>A gráf aciklikus, az él másodlagosként lett hozzáadva.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="811"/> <location filename="../src/graphwidget.cpp" line="820"/>
<source>There no edge between these two nodes.</source> <source>There no edge between these two nodes.</source>
<translation>Nincs él e között a két csúcs között.</translation> <translation>Nincs él e között a két csúcs között.</translation>
</message> </message>
@ -290,127 +290,127 @@
(F2, duplaklikk)</translation> (F2, duplaklikk)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="323"/> <location filename="../src/mainwindow.cpp" line="322"/>
<source>ScaleUp Node (Ctrl +)</source> <source>ScaleUp Node (Ctrl +)</source>
<translation>Csúcs növelése (Ctrl +)</translation> <translation>Csúcs növelése (Ctrl +)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="324"/> <location filename="../src/mainwindow.cpp" line="325"/>
<source>ScaleDown Node (Ctrl -)</source> <source>ScaleDown Node (Ctrl -)</source>
<translation>Csúcs csökkentése (Ctrl -)</translation> <translation>Csúcs csökkentése (Ctrl -)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="326"/> <location filename="../src/mainwindow.cpp" line="329"/>
<source>Node color (c)</source> <source>Node color (c)</source>
<translation>Csúcs szín (c)</translation> <translation>Csúcs szín (c)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="330"/> <location filename="../src/mainwindow.cpp" line="333"/>
<source>Node textcolor (t)</source> <source>Node textcolor (t)</source>
<translation>Csúcs szüvegszín (t)</translation> <translation>Csúcs szüvegszín (t)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="334"/> <location filename="../src/mainwindow.cpp" line="337"/>
<source>Add edge (a)</source> <source>Add edge (a)</source>
<translation>Él hozzáadása (a)</translation> <translation>Él hozzáadása (a)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="338"/> <location filename="../src/mainwindow.cpp" line="341"/>
<source>Del edge (d)</source> <source>Del edge (d)</source>
<translation>Él törlése (d)</translation> <translation>Él törlése (d)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="342"/> <location filename="../src/mainwindow.cpp" line="345"/>
<source>Move node <source>Move node
(Ctrl cursor, drag)</source> (Ctrl cursor, drag)</source>
<translation>Csúcs mozgatása <translation>Csúcs mozgatása
(Ctrl kurzor, egér)</translation> (Ctrl kurzor, egér)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="345"/> <location filename="../src/mainwindow.cpp" line="348"/>
<source>Change on wholesubtree <source>Change on wholesubtree
(Ctrl shift)</source> (Ctrl shift)</source>
<translation>Változtatás az al-fán <translation>Változtatás az al-fán
(Ctrl shift)</translation> (Ctrl shift)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="348"/> <location filename="../src/mainwindow.cpp" line="351"/>
<source>Zoom in (+, scrollup)</source> <source>Zoom in (+, scrollup)</source>
<translation>Nagyítás (+, felgörgetés)</translation> <translation>Nagyítás (+, felgörgetés)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="352"/> <location filename="../src/mainwindow.cpp" line="355"/>
<source>Zoom out (-, scrolldown)</source> <source>Zoom out (-, scrolldown)</source>
<translation>Kicsinítás (- legörgetés)</translation> <translation>Kicsinítás (- legörgetés)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="356"/> <location filename="../src/mainwindow.cpp" line="359"/>
<source>Leave editing, <source>Leave editing,
edge eadd/remove (esc)</source> edge eadd/remove (esc)</source>
<translation>Elhagyni szerkesztést, <translation>Elhagyni szerkesztést,
él hozzáadást/törlést (esc)</translation> él hozzáadást/törlést (esc)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="360"/> <location filename="../src/mainwindow.cpp" line="363"/>
<source>Hint mode (f)</source> <source>Hint mode (f)</source>
<translation>Csúcs választó mód (f)</translation> <translation>Csúcs választó mód (f)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="364"/> <location filename="../src/mainwindow.cpp" line="367"/>
<source>Show main toolbar <source>Show main toolbar
(Ctrl m)</source> (Ctrl m)</source>
<translation>Fő eszköztár mutatása <translation>Fő eszköztár mutatása
(Ctrl m)</translation> (Ctrl m)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="369"/> <location filename="../src/mainwindow.cpp" line="372"/>
<source>Insert status icons <source>Insert status icons
(Ctrl i)</source> (Ctrl i)</source>
<translation>Állapot ikon beszúrása <translation>Állapot ikon beszúrása
(Ctrl i)</translation> (Ctrl i)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="400"/> <location filename="../src/mainwindow.cpp" line="403"/>
<source>Insert icon:</source> <source>Insert icon:</source>
<translation>Ikon beszúrása:</translation> <translation>Ikon beszúrása:</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="403"/> <location filename="../src/mainwindow.cpp" line="406"/>
<source>&amp;Do</source> <source>&amp;Do</source>
<translation>&amp;Csinálni</translation> <translation>&amp;Csinálni</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="408"/> <location filename="../src/mainwindow.cpp" line="411"/>
<source>&amp;Trash</source> <source>&amp;Trash</source>
<translation>&amp;Kidobni</translation> <translation>&amp;Kidobni</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="413"/> <location filename="../src/mainwindow.cpp" line="416"/>
<source>&amp;Refer</source> <source>&amp;Refer</source>
<translation>&amp;Elrakni</translation> <translation>&amp;Elrakni</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="418"/> <location filename="../src/mainwindow.cpp" line="421"/>
<source>&amp;Blocked</source> <source>&amp;Blocked</source>
<translation>&amp;Várakoztatva</translation> <translation>&amp;Várakoztatva</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="424"/> <location filename="../src/mainwindow.cpp" line="427"/>
<source>&amp;How?</source> <source>&amp;How?</source>
<translation>&amp;Hogyan?</translation> <translation>&amp;Hogyan?</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="429"/> <location filename="../src/mainwindow.cpp" line="432"/>
<source>&amp;Postpone</source> <source>&amp;Postpone</source>
<translation>&amp;Elhalasztva</translation> <translation>&amp;Elhalasztva</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="435"/> <location filename="../src/mainwindow.cpp" line="438"/>
<source>&amp;Comission</source> <source>&amp;Comission</source>
<translation>&amp;Delegálva</translation> <translation>&amp;Delegálva</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="441"/> <location filename="../src/mainwindow.cpp" line="444"/>
<source>ma&amp;Ybe</source> <source>ma&amp;Ybe</source>
<oldsource>&amp;Maybe</oldsource> <oldsource>&amp;Maybe</oldsource>
<translation>&amp;Talán</translation> <translation>&amp;Talán</translation>
@ -433,6 +433,11 @@ edge eadd/remove (esc)</source>
<source>Read-only file!</source> <source>Read-only file!</source>
<translation>Csak olvasható fájl!</translation> <translation>Csak olvasható fájl!</translation>
</message> </message>
<message>
<location filename="../src/mainwindow.cpp" line="138"/>
<source>readonly </source>
<translation>csak olvasható </translation>
</message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="159"/> <location filename="../src/mainwindow.cpp" line="159"/>
<source>Save MindMap as</source> <source>Save MindMap as</source>

@ -86,89 +86,89 @@
<translation>Kunne ikke analysere XML-fil.</translation> <translation>Kunne ikke analysere XML-fil.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="228"/> <location filename="../src/graphwidget.cpp" line="230"/>
<source>Couldn&apos;t open file to write.</source> <source>Couldn&apos;t open file to write.</source>
<translation>Kunne ikke åpne filen for å skrive.</translation> <translation>Kunne ikke åpne filen for å skrive.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="236"/> <location filename="../src/graphwidget.cpp" line="238"/>
<source>Saved.</source> <source>Saved.</source>
<translation>Saved.</translation> <translation>Saved.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="258"/> <location filename="../src/graphwidget.cpp" line="260"/>
<source>MindMap exported as </source> <source>MindMap exported as </source>
<translation>Mindmap eksporteres som </translation> <translation>Mindmap eksporteres som </translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="271"/> <location filename="../src/graphwidget.cpp" line="269"/>
<location filename="../src/graphwidget.cpp" line="311"/> <location filename="../src/graphwidget.cpp" line="309"/>
<location filename="../src/graphwidget.cpp" line="356"/> <location filename="../src/graphwidget.cpp" line="354"/>
<location filename="../src/graphwidget.cpp" line="371"/> <location filename="../src/graphwidget.cpp" line="377"/>
<location filename="../src/graphwidget.cpp" line="399"/> <location filename="../src/graphwidget.cpp" line="398"/>
<location filename="../src/graphwidget.cpp" line="425"/> <location filename="../src/graphwidget.cpp" line="419"/>
<location filename="../src/graphwidget.cpp" line="461"/> <location filename="../src/graphwidget.cpp" line="455"/>
<location filename="../src/graphwidget.cpp" line="549"/> <location filename="../src/graphwidget.cpp" line="543"/>
<location filename="../src/graphwidget.cpp" line="586"/> <location filename="../src/graphwidget.cpp" line="580"/>
<location filename="../src/graphwidget.cpp" line="762"/> <location filename="../src/graphwidget.cpp" line="771"/>
<location filename="../src/graphwidget.cpp" line="805"/> <location filename="../src/graphwidget.cpp" line="814"/>
<source>No active node.</source> <source>No active node.</source>
<translation>Ingen aktive noden.</translation> <translation>Ingen aktive noden.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="317"/> <location filename="../src/graphwidget.cpp" line="315"/>
<source>Base node cannot be deleted.</source> <source>Base node cannot be deleted.</source>
<translation>Base node kan ikke slettes.</translation> <translation>Base node kan ikke slettes.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="443"/> <location filename="../src/graphwidget.cpp" line="437"/>
<source>Select node color</source> <source>Select node color</source>
<translation>Velg node farge</translation> <translation>Velg node farge</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="479"/> <location filename="../src/graphwidget.cpp" line="473"/>
<source>Select text color</source> <source>Select text color</source>
<translation>Velg tekstfarge</translation> <translation>Velg tekstfarge</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="514"/> <location filename="../src/graphwidget.cpp" line="508"/>
<source>Edge adding cancelled.</source> <source>Edge adding cancelled.</source>
<oldsource>Edge adding cancelled</oldsource> <oldsource>Edge adding cancelled</oldsource>
<translation>Kant legge kansellert.</translation> <translation>Kant legge kansellert.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="519"/> <location filename="../src/graphwidget.cpp" line="513"/>
<source>Edge deleting cancelled.</source> <source>Edge deleting cancelled.</source>
<oldsource>Edge deleting cancelled</oldsource> <oldsource>Edge deleting cancelled</oldsource>
<translation>Kant slette kansellert.</translation> <translation>Kant slette kansellert.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="491"/> <location filename="../src/graphwidget.cpp" line="485"/>
<source>Add edge: select destination node.</source> <source>Add edge: select destination node.</source>
<translation>Legg kant: velg destinasjon node.</translation> <translation>Legg kant: velg destinasjon node.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="497"/> <location filename="../src/graphwidget.cpp" line="491"/>
<source>Delete edge: select other end-node.</source> <source>Delete edge: select other end-node.</source>
<translation>Slett kanten: velg andre enden-node.</translation> <translation>Slett kanten: velg andre enden-node.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="769"/> <location filename="../src/graphwidget.cpp" line="778"/>
<source>Root element cannot be an edge target.</source> <source>Root element cannot be an edge target.</source>
<translation>Base node kan ikke være en kant mål.</translation> <translation>Base node kan ikke være en kant mål.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="776"/> <location filename="../src/graphwidget.cpp" line="785"/>
<source>There is already an edge between these two nodes.</source> <source>There is already an edge between these two nodes.</source>
<translation>Det er allerede en kant mellom disse to noder.</translation> <translation>Det er allerede en kant mellom disse to noder.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="785"/> <location filename="../src/graphwidget.cpp" line="794"/>
<source>The graph is acyclic, edge added as secondary edge.</source> <source>The graph is acyclic, edge added as secondary edge.</source>
<translation>Grafen er asyklisk, lagt kant som sekundær kant.</translation> <translation>Grafen er asyklisk, lagt kant som sekundær kant.</translation>
</message> </message>
<message> <message>
<location filename="../src/graphwidget.cpp" line="811"/> <location filename="../src/graphwidget.cpp" line="820"/>
<source>There no edge between these two nodes.</source> <source>There no edge between these two nodes.</source>
<translation>Der ingen kant mellom disse to noder.</translation> <translation>Der ingen kant mellom disse to noder.</translation>
</message> </message>
@ -281,127 +281,127 @@
<translation>Rediger node (F2, dubclick)</translation> <translation>Rediger node (F2, dubclick)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="323"/> <location filename="../src/mainwindow.cpp" line="322"/>
<source>ScaleUp Node (Ctrl +)</source> <source>ScaleUp Node (Ctrl +)</source>
<translation>Forstørre node (Ctrl +)</translation> <translation>Forstørre node (Ctrl +)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="324"/> <location filename="../src/mainwindow.cpp" line="325"/>
<source>ScaleDown Node (Ctrl -)</source> <source>ScaleDown Node (Ctrl -)</source>
<translation>Redusere node (Ctrl -)</translation> <translation>Redusere node (Ctrl -)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="326"/> <location filename="../src/mainwindow.cpp" line="329"/>
<source>Node color (c)</source> <source>Node color (c)</source>
<translation>Node farge (c)</translation> <translation>Node farge (c)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="330"/> <location filename="../src/mainwindow.cpp" line="333"/>
<source>Node textcolor (t)</source> <source>Node textcolor (t)</source>
<translation>Node tekstfarge (t)</translation> <translation>Node tekstfarge (t)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="334"/> <location filename="../src/mainwindow.cpp" line="337"/>
<source>Add edge (a)</source> <source>Add edge (a)</source>
<translation>Legg kant (a)</translation> <translation>Legg kant (a)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="338"/> <location filename="../src/mainwindow.cpp" line="341"/>
<source>Del edge (d)</source> <source>Del edge (d)</source>
<translation>Slett kant (d)</translation> <translation>Slett kant (d)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="342"/> <location filename="../src/mainwindow.cpp" line="345"/>
<source>Move node <source>Move node
(Ctrl cursor, drag)</source> (Ctrl cursor, drag)</source>
<translation>Flytte node <translation>Flytte node
(Ctrl markør, dra)</translation> (Ctrl markør, dra)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="345"/> <location filename="../src/mainwindow.cpp" line="348"/>
<source>Change on wholesubtree <source>Change on wholesubtree
(Ctrl shift)</source> (Ctrl shift)</source>
<translation>Endre på wholesubtree <translation>Endre på wholesubtree
(Ctrl shift)</translation> (Ctrl shift)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="348"/> <location filename="../src/mainwindow.cpp" line="351"/>
<source>Zoom in (+, scrollup)</source> <source>Zoom in (+, scrollup)</source>
<translation>Zoome inn (+, bla opp)</translation> <translation>Zoome inn (+, bla opp)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="352"/> <location filename="../src/mainwindow.cpp" line="355"/>
<source>Zoom out (-, scrolldown)</source> <source>Zoom out (-, scrolldown)</source>
<translation>Zoome ut (- bla nedover)</translation> <translation>Zoome ut (- bla nedover)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="356"/> <location filename="../src/mainwindow.cpp" line="359"/>
<source>Leave editing, <source>Leave editing,
edge eadd/remove (esc)</source> edge eadd/remove (esc)</source>
<translation>Leave redigering, <translation>Leave redigering,
kant add / slette (esc)</translation> kant add / slette (esc)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="360"/> <location filename="../src/mainwindow.cpp" line="363"/>
<source>Hint mode (f)</source> <source>Hint mode (f)</source>
<translation>Hint mode (f)</translation> <translation>Hint mode (f)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="364"/> <location filename="../src/mainwindow.cpp" line="367"/>
<source>Show main toolbar <source>Show main toolbar
(Ctrl m)</source> (Ctrl m)</source>
<translation>Vis hovedverktøylinjen <translation>Vis hovedverktøylinjen
(Ctrl m)</translation> (Ctrl m)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="369"/> <location filename="../src/mainwindow.cpp" line="372"/>
<source>Insert status icons <source>Insert status icons
(Ctrl i)</source> (Ctrl i)</source>
<translation>Sett status ikoner <translation>Sett status ikoner
(Ctrl i)</translation> (Ctrl i)</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="400"/> <location filename="../src/mainwindow.cpp" line="403"/>
<source>Insert icon:</source> <source>Insert icon:</source>
<translation>Sett inn ikon:</translation> <translation>Sett inn ikon:</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="403"/> <location filename="../src/mainwindow.cpp" line="406"/>
<source>&amp;Do</source> <source>&amp;Do</source>
<translation>&amp;Gjøre</translation> <translation>&amp;Gjøre</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="408"/> <location filename="../src/mainwindow.cpp" line="411"/>
<source>&amp;Trash</source> <source>&amp;Trash</source>
<translation>Sle&amp;tte</translation> <translation>Sle&amp;tte</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="413"/> <location filename="../src/mainwindow.cpp" line="416"/>
<source>&amp;Refer</source> <source>&amp;Refer</source>
<translation>&amp;Referere</translation> <translation>&amp;Referere</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="418"/> <location filename="../src/mainwindow.cpp" line="421"/>
<source>&amp;Blocked</source> <source>&amp;Blocked</source>
<translation>&amp;Blokkerte</translation> <translation>&amp;Blokkerte</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="424"/> <location filename="../src/mainwindow.cpp" line="427"/>
<source>&amp;How?</source> <source>&amp;How?</source>
<translation>&amp;Hvordan?</translation> <translation>&amp;Hvordan?</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="429"/> <location filename="../src/mainwindow.cpp" line="432"/>
<source>&amp;Postpone</source> <source>&amp;Postpone</source>
<translation>&amp;Utsette</translation> <translation>&amp;Utsette</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="435"/> <location filename="../src/mainwindow.cpp" line="438"/>
<source>&amp;Comission</source> <source>&amp;Comission</source>
<translation>&amp;Delegere</translation> <translation>&amp;Delegere</translation>
</message> </message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="441"/> <location filename="../src/mainwindow.cpp" line="444"/>
<source>ma&amp;Ybe</source> <source>ma&amp;Ybe</source>
<oldsource>&amp;Maybe</oldsource> <oldsource>&amp;Maybe</oldsource>
<translation>&amp;Kanskje</translation> <translation>&amp;Kanskje</translation>
@ -424,6 +424,11 @@ kant add / slette (esc)</translation>
<source>Read-only file!</source> <source>Read-only file!</source>
<translation>Skrivebeskyttet fil!</translation> <translation>Skrivebeskyttet fil!</translation>
</message> </message>
<message>
<location filename="../src/mainwindow.cpp" line="138"/>
<source>readonly </source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<location filename="../src/mainwindow.cpp" line="159"/> <location filename="../src/mainwindow.cpp" line="159"/>
<source>Save MindMap as</source> <source>Save MindMap as</source>

@ -135,7 +135,7 @@ void MainWindow::openFile(const QString &fileName)
fileInfo.isWritable() ? fileInfo.isWritable() ?
setTitle(m_fileName) : setTitle(m_fileName) :
setTitle(QString("readonly ").append(m_fileName)); setTitle(tr("readonly ").append(m_fileName));
showMainToolbar(); showMainToolbar();
} }

@ -18,13 +18,17 @@ Node::Node(GraphWidget *parent) :
m_hasBorder(false), m_hasBorder(false),
m_numberIsSpecial(false), m_numberIsSpecial(false),
m_color(m_gold), m_color(m_gold),
m_textColor(0,0,0) m_textColor(0,0,0),
m_effect(new QGraphicsDropShadowEffect(this))
{ {
setFlag(ItemIsMovable); setFlag(ItemIsMovable);
setFlag(ItemSendsGeometryChanges); setFlag(ItemSendsGeometryChanges);
setCacheMode(DeviceCoordinateCache); setCacheMode(DeviceCoordinateCache);
setDefaultTextColor(QColor(0,0,0)); setDefaultTextColor(QColor(0,0,0));
setZValue(2); setZValue(2);
setGraphicsEffect(m_effect);
m_effect->setEnabled(false);
m_effect->setOffset(qreal(4.0));
} }
Node::~Node() Node::~Node()
@ -144,6 +148,8 @@ bool Node::isConnected(const Node *node) const
void Node::setBorder(const bool &hasBorder) void Node::setBorder(const bool &hasBorder)
{ {
m_hasBorder = hasBorder; m_hasBorder = hasBorder;
m_effect->setEnabled(hasBorder);
update(); update();
} }

Loading…
Cancel
Save