summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2008-12-07 20:08:43 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2008-12-07 20:08:43 +0100
commite95d6d7b4adc644ba67d2eae7ed42d189749e005 (patch)
tree8fa53f37ed5e253c7637ce1055a13d59efec44a2
parent5fd78df234b4c1639e31ddffd6a2e2d010737671 (diff)
downloaddbmodel-e95d6d7b4adc644ba67d2eae7ed42d189749e005.tar.gz
dbmodel-e95d6d7b4adc644ba67d2eae7ed42d189749e005.tar.bz2
New icons
-rw-r--r--dbmodel.qrc3
-rw-r--r--icons/16x16/item-relationship.pngbin0 -> 373 bytes
-rw-r--r--icons/16x16/item-table.pngbin0 -> 437 bytes
-rw-r--r--icons/32x32/item-table.pngbin0 -> 777 bytes
-rw-r--r--icons/item-relationship.svg165
-rw-r--r--icons/item-table.svg164
-rw-r--r--src/mainwindow.cpp9
7 files changed, 339 insertions, 2 deletions
diff --git a/dbmodel.qrc b/dbmodel.qrc
index a13b509..5c6ed93 100644
--- a/dbmodel.qrc
+++ b/dbmodel.qrc
@@ -15,6 +15,9 @@
<file>icons/16x16/edit-copy.png</file>
<file>icons/16x16/edit-paste.png</file>
<file>icons/16x16/edit-delete.png</file>
+ <file>icons/16x16/item-table.png</file>
+ <file>icons/16x16/item-relationship.png</file>
+ <file>icons/32x32/item-table.png</file>
<!-- Translations -->
<file>translations/dbmodel_sk.qm</file>
</qresource>
diff --git a/icons/16x16/item-relationship.png b/icons/16x16/item-relationship.png
new file mode 100644
index 0000000..59f799a
--- /dev/null
+++ b/icons/16x16/item-relationship.png
Binary files differ
diff --git a/icons/16x16/item-table.png b/icons/16x16/item-table.png
new file mode 100644
index 0000000..5b0eeeb
--- /dev/null
+++ b/icons/16x16/item-table.png
Binary files differ
diff --git a/icons/32x32/item-table.png b/icons/32x32/item-table.png
new file mode 100644
index 0000000..2d0d82f
--- /dev/null
+++ b/icons/32x32/item-table.png
Binary files differ
diff --git a/icons/item-relationship.svg b/icons/item-relationship.svg
new file mode 100644
index 0000000..11db2fa
--- /dev/null
+++ b/icons/item-relationship.svg
@@ -0,0 +1,165 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="16"
+ height="16"
+ id="svg2"
+ inkscape:label="Pozadie"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ version="1.0"
+ inkscape:export-filename="/home/lukas/projects/db/icons/cr16-action-relation_newobj.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90"
+ sodipodi:docname="item-relationship.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ <defs
+ id="defs3">
+ <linearGradient
+ id="linearGradient3178">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1;"
+ offset="0"
+ id="stop3180" />
+ <stop
+ style="stop-color:#8ae234;stop-opacity:0;"
+ offset="1"
+ id="stop3182" />
+ </linearGradient>
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 526.18109 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+ id="perspective9" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3178"
+ id="linearGradient3186"
+ x1="-0.94928211"
+ y1="-15.69332"
+ x2="16.756172"
+ y2="17.486193"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.9286251,0,0,0.7501518,18.034031,0.7945479)" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="30.391378"
+ inkscape:cx="7.4097196"
+ inkscape:cy="5.6453542"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:snap-global="true"
+ inkscape:snap-bbox="false"
+ gridtolerance="1"
+ inkscape:window-width="1280"
+ inkscape:window-height="929"
+ inkscape:window-x="0"
+ inkscape:window-y="25"
+ showguides="true"
+ inkscape:guide-bbox="true">
+ <inkscape:grid
+ type="xygrid"
+ id="grid2382"
+ visible="true"
+ enabled="true"
+ empspacing="10"
+ dotted="false" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata6">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Vrstva 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <rect
+ style="fill:#ef2929;fill-opacity:1;stroke:#a40000;stroke-width:1;stroke-linecap:square;stroke-miterlimit:3.0999999;stroke-dasharray:none;stroke-opacity:1"
+ id="rect3220"
+ width="4"
+ height="4"
+ x="0.51303899"
+ y="1.5023633"
+ ry="1.5677398"
+ rx="0" />
+ <rect
+ rx="0"
+ ry="1.5677398"
+ y="2.472708"
+ x="1.4901987"
+ height="2"
+ width="2"
+ id="rect3222"
+ style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1;stroke-linecap:square;stroke-miterlimit:3.0999999;stroke-dasharray:none;stroke-opacity:0.31271476" />
+ <rect
+ rx="0"
+ ry="1.5677398"
+ y="10.547318"
+ x="10.515413"
+ height="4"
+ width="4"
+ id="rect3226"
+ style="fill:#ef2929;fill-opacity:1;stroke:#a40000;stroke-width:1;stroke-linecap:square;stroke-miterlimit:3.0999999;stroke-dasharray:none;stroke-opacity:1" />
+ <rect
+ style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1;stroke-linecap:square;stroke-miterlimit:3.0999999;stroke-dasharray:none;stroke-opacity:0.31271476"
+ id="rect3228"
+ width="2"
+ height="2"
+ x="11.492574"
+ y="11.517662"
+ ry="1.5677398"
+ rx="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.80382776"
+ d="M 8.5,3.6065602 L 8.5,12.245519"
+ id="path3238" />
+ <path
+ id="path3240"
+ d="M 6.5779055,3.5000001 L 8.4588789,3.5000001"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.99999987999999995px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.80382776" />
+ <path
+ id="path3242"
+ d="M 10.095532,12.488902 L 8.5111804,12.488902"
+ style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000024000000010px;stroke-linecap:square;stroke-linejoin:miter;stroke-opacity:0.80382776" />
+ <path
+ sodipodi:type="star"
+ style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:square;stroke-miterlimit:3.0999999;stroke-dasharray:none;stroke-opacity:0.31271476"
+ id="path3246"
+ sodipodi:sides="3"
+ sodipodi:cx="6.1679754"
+ sodipodi:cy="1.5352792"
+ sodipodi:r1="1.9528513"
+ sodipodi:r2="0.97642565"
+ sodipodi:arg1="1.0471976"
+ sodipodi:arg2="2.0943951"
+ inkscape:flatsided="false"
+ inkscape:rounded="0"
+ inkscape:randomized="0"
+ d="M 7.144401,3.226498 L 5.6797626,2.3808886 L 4.2151241,1.5352791 L 5.6797626,0.68966974 L 7.1444012,-0.15593963 L 7.1444011,1.5352792 L 7.144401,3.226498 z"
+ transform="matrix(0.813661,0,0,1.4782238,1.1868793,1.2305137)" />
+ </g>
+</svg>
diff --git a/icons/item-table.svg b/icons/item-table.svg
new file mode 100644
index 0000000..00cc904
--- /dev/null
+++ b/icons/item-table.svg
@@ -0,0 +1,164 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ width="16"
+ height="16"
+ id="svg2"
+ inkscape:label="Pozadie"
+ sodipodi:version="0.32"
+ inkscape:version="0.46"
+ version="1.0"
+ inkscape:export-filename="/home/lukas/projects/db/icons/cr16-action-table_newobj.png"
+ inkscape:export-xdpi="90"
+ inkscape:export-ydpi="90"
+ sodipodi:docname="item-table.svg"
+ inkscape:output_extension="org.inkscape.output.svg.inkscape">
+ <defs
+ id="defs3">
+ <linearGradient
+ id="linearGradient3178">
+ <stop
+ style="stop-color:#ffffff;stop-opacity:1;"
+ offset="0"
+ id="stop3180" />
+ <stop
+ style="stop-color:#8ae234;stop-opacity:0;"
+ offset="1"
+ id="stop3182" />
+ </linearGradient>
+ <inkscape:perspective
+ sodipodi:type="inkscape:persp3d"
+ inkscape:vp_x="0 : 526.18109 : 1"
+ inkscape:vp_y="0 : 1000 : 0"
+ inkscape:vp_z="744.09448 : 526.18109 : 1"
+ inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+ id="perspective9" />
+ <linearGradient
+ inkscape:collect="always"
+ xlink:href="#linearGradient3178"
+ id="linearGradient3186"
+ x1="-0.94928211"
+ y1="-15.69332"
+ x2="16.756172"
+ y2="17.486193"
+ gradientUnits="userSpaceOnUse"
+ gradientTransform="matrix(0.9286251,0,0,0.7501518,0.5353111,0.8827007)" />
+ </defs>
+ <sodipodi:namedview
+ id="base"
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1.0"
+ inkscape:pageopacity="0.0"
+ inkscape:pageshadow="2"
+ inkscape:zoom="9.1602182"
+ inkscape:cx="8.2075705"
+ inkscape:cy="7.1837483"
+ inkscape:document-units="px"
+ inkscape:current-layer="layer1"
+ showgrid="true"
+ inkscape:snap-global="true"
+ inkscape:snap-bbox="false"
+ gridtolerance="1"
+ inkscape:window-width="1280"
+ inkscape:window-height="929"
+ inkscape:window-x="0"
+ inkscape:window-y="25">
+ <inkscape:grid
+ type="xygrid"
+ id="grid2382"
+ visible="true"
+ enabled="true"
+ empspacing="10"
+ dotted="false" />
+ </sodipodi:namedview>
+ <metadata
+ id="metadata6">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ inkscape:label="Vrstva 1"
+ inkscape:groupmode="layer"
+ id="layer1">
+ <rect
+ style="fill:#eeeeec;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect3162"
+ width="13.529866"
+ height="9.0450354"
+ x="0.54753393"
+ y="5.3747969"
+ ry="4.5225177"
+ rx="0" />
+ <rect
+ style="fill:none;fill-opacity:1;stroke:#555753;stroke-width:1.00256108999999993;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.90378004"
+ id="rect2384"
+ width="13.997439"
+ height="12.997438"
+ x="0.50128055"
+ y="1.4903065"
+ ry="6.4987192"
+ rx="0" />
+ <path
+ style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 4.5047369,4.965026 L 4.5047369,14.5"
+ id="path3158" />
+ <rect
+ rx="0"
+ ry="1.9995952"
+ y="1.4894309"
+ x="0.50040525"
+ height="3.9991903"
+ width="13.99919"
+ id="rect3160"
+ style="fill:#8ae234;fill-opacity:1;stroke:#555753;stroke-width:1.00080978999999992;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ <path
+ style="fill:#888a85;fill-opacity:1;stroke:none;stroke-width:0.03926042;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="M 5.7745618,7.4750866 L 5.7745618,6.9858691 L 9.4445317,6.9858691 L 13.114502,6.9858691 L 13.114502,7.4750866 L 13.114502,7.964304 L 9.4445317,7.964304 L 5.7745618,7.964304 L 5.7745618,7.4750866 z"
+ id="path3166" />
+ <path
+ id="path3168"
+ d="M 5.7745618,9.4758086 L 5.7745618,8.9865911 L 9.4445317,8.9865911 L 13.114502,8.9865911 L 13.114502,9.4758086 L 13.114502,9.965026 L 9.4445317,9.965026 L 5.7745618,9.965026 L 5.7745618,9.4758086 z"
+ style="fill:#babdb6;fill-opacity:1;stroke:none;stroke-width:0.03926042;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ <path
+ style="fill:#888a85;fill-opacity:1;stroke:none;stroke-width:0.03926042000000000;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ d="M 5.7745618,11.475809 L 5.7745618,10.986591 L 9.4445317,10.986591 L 13.114502,10.986591 L 13.114502,11.475809 L 13.114502,11.965026 L 9.4445317,11.965026 L 5.7745618,11.965026 L 5.7745618,11.475809 z"
+ id="path3170" />
+ <path
+ id="path3172"
+ d="M 1.6150281,7.4750866 L 1.6150281,6.9858691 L 2.4870618,6.9858691 L 3.3590957,6.9858691 L 3.3590957,7.4750866 L 3.3590957,7.964304 L 2.4870618,7.964304 L 1.6150281,7.964304 L 1.6150281,7.4750866 z"
+ style="fill:#888a85;fill-opacity:1;stroke:none;stroke-width:0.03926042;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+ <rect
+ style="fill:url(#linearGradient3186);fill-opacity:1;stroke:none;stroke-width:1.00080978999999992;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+ id="rect3176"
+ width="13"
+ height="3"
+ x="1"
+ y="2"
+ ry="1.5"
+ rx="0" />
+ <rect
+ rx="0"
+ ry="5.5799131"
+ y="2.3846147"
+ x="1.4005071"
+ height="11.159826"
+ width="12.203903"
+ id="rect3198"
+ style="fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:0.80707127;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.41237111" />
+ </g>
+</svg>
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 4a5d7f4..660df3f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -42,6 +42,11 @@ MainWindow::MainWindow()
setupUi();
newModel();
+ QIcon icon;
+ icon.addFile(":/icons/16x16/item-table.png", QSize(32, 32));
+ icon.addFile(":/icons/32x32/item-table.png", QSize(32, 32));
+ setWindowIcon(icon);
+
updateRecentFileActions();
restoreWindowState();
@@ -187,12 +192,12 @@ MainWindow::setupActions()
m_actionSwitchMode[1] = new QAction(this);
m_actionSwitchMode[1]->setText(tr("Add new table"));
- m_actionSwitchMode[1]->setIcon(QIcon(":/icons/cr16-action-table_newobj.png"));
+ m_actionSwitchMode[1]->setIcon(QIcon(":/icons/16x16/item-table.png"));
m_actionSwitchMode[1]->setCheckable(true);
m_actionSwitchMode[2] = new QAction(this);
m_actionSwitchMode[2]->setText(tr("Add new relation"));
- m_actionSwitchMode[2]->setIcon(QIcon(":/icons/cr16-action-relation_newobj.png"));
+ m_actionSwitchMode[2]->setIcon(QIcon(":/icons/16x16/item-relationship.png"));
m_actionSwitchMode[2]->setCheckable(true);
m_actionUndo = m_undoGroup->createUndoAction(this, tr("&Undo"));