SourceForge: daremanager/seregin_rough: changeset 56:f2f6ea57e96f
Any black_boxes
authorSergeyGegshkovich@gmail.com
Sat Oct 31 23:28:57 2009 +0300 (8 weeks ago)
branchblack_boxes
changeset 56f2f6ea57e96f
parent 55 ef2e9b3b8210
child 57 79a82a667b2c
Any
images/DaReManager.svg
src/ui/DrmUiApplication.cpp
src/ui/DrmUiMainWindow.cpp
src/ui/DrmUiMainWindow.h
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/images/DaReManager.svg	Sat Oct 31 23:28:57 2009 +0300
     1.3 @@ -0,0 +1,214 @@
     1.4 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
     1.5 +<!-- Created with Inkscape (http://www.inkscape.org/) -->
     1.6 +<svg
     1.7 +   xmlns:dc="http://purl.org/dc/elements/1.1/"
     1.8 +   xmlns:cc="http://creativecommons.org/ns#"
     1.9 +   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    1.10 +   xmlns:svg="http://www.w3.org/2000/svg"
    1.11 +   xmlns="http://www.w3.org/2000/svg"
    1.12 +   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1.13 +   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    1.14 +   width="1052.36"
    1.15 +   height="1052.36"
    1.16 +   id="svg2"
    1.17 +   sodipodi:version="0.32"
    1.18 +   inkscape:version="0.46"
    1.19 +   version="1.0"
    1.20 +   sodipodi:docname="DaReManager.svg"
    1.21 +   inkscape:output_extension="org.inkscape.output.svg.inkscape">
    1.22 +  <defs
    1.23 +     id="defs4">
    1.24 +    <inkscape:perspective
    1.25 +       sodipodi:type="inkscape:persp3d"
    1.26 +       inkscape:vp_x="0 : 526.18109 : 1"
    1.27 +       inkscape:vp_y="0 : 1000 : 0"
    1.28 +       inkscape:vp_z="744.09448 : 526.18109 : 1"
    1.29 +       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
    1.30 +       id="perspective10" />
    1.31 +  </defs>
    1.32 +  <sodipodi:namedview
    1.33 +     id="base"
    1.34 +     pagecolor="#ffffff"
    1.35 +     bordercolor="#666666"
    1.36 +     borderopacity="1.0"
    1.37 +     gridtolerance="10000"
    1.38 +     guidetolerance="10"
    1.39 +     objecttolerance="10"
    1.40 +     inkscape:pageopacity="0.0"
    1.41 +     inkscape:pageshadow="2"
    1.42 +     inkscape:zoom="0.11313708"
    1.43 +     inkscape:cx="-83.560758"
    1.44 +     inkscape:cy="1154.4146"
    1.45 +     inkscape:document-units="px"
    1.46 +     inkscape:current-layer="layer1"
    1.47 +     showgrid="false"
    1.48 +     width="744.09px"
    1.49 +     inkscape:window-width="1024"
    1.50 +     inkscape:window-height="682"
    1.51 +     inkscape:window-x="-4"
    1.52 +     inkscape:window-y="-4" />
    1.53 +  <metadata
    1.54 +     id="metadata7">
    1.55 +    <rdf:RDF>
    1.56 +      <cc:Work
    1.57 +         rdf:about="">
    1.58 +        <dc:format>image/svg+xml</dc:format>
    1.59 +        <dc:type
    1.60 +           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
    1.61 +      </cc:Work>
    1.62 +    </rdf:RDF>
    1.63 +  </metadata>
    1.64 +  <g
    1.65 +     inkscape:label="Layer 1"
    1.66 +     inkscape:groupmode="layer"
    1.67 +     id="layer1">
    1.68 +    <rect
    1.69 +       style="fill:#00222b"
    1.70 +       id="rect2383"
    1.71 +       width="305.71429"
    1.72 +       height="409.37366"
    1.73 +       x="366.86826"
    1.74 +       y="36.292095" />
    1.75 +    <rect
    1.76 +       style="fill:#1c2422"
    1.77 +       id="rect2385"
    1.78 +       width="547.7691"
    1.79 +       height="25.714285"
    1.80 +       x="232.84993"
    1.81 +       y="454.72824" />
    1.82 +    <rect
    1.83 +       style="fill:#4d4d4d"
    1.84 +       id="rect2387"
    1.85 +       width="71.428574"
    1.86 +       height="0"
    1.87 +       x="468.57144"
    1.88 +       y="460.93362" />
    1.89 +    <rect
    1.90 +       style="fill:#1c2422"
    1.91 +       id="rect2389"
    1.92 +       width="32.83606"
    1.93 +       height="145.71428"
    1.94 +       x="605.72815"
    1.95 +       y="495.21933" />
    1.96 +    <rect
    1.97 +       style="fill:#4d4d4d"
    1.98 +       id="rect2391"
    1.99 +       width="473.08035"
   1.100 +       height="25.714285"
   1.101 +       x="276.5553"
   1.102 +       y="660.93359" />
   1.103 +    <rect
   1.104 +       style="fill:#000000"
   1.105 +       id="rect2393"
   1.106 +       width="510.58035"
   1.107 +       height="25.714285"
   1.108 +       x="259.09995"
   1.109 +       y="696.49164" />
   1.110 +    <rect
   1.111 +       style="fill:#4d4d4d"
   1.112 +       id="rect2395"
   1.113 +       width="453.57144"
   1.114 +       height="25.714285"
   1.115 +       x="301.80084"
   1.116 +       y="730.75507" />
   1.117 +    <rect
   1.118 +       style="fill:#000000"
   1.119 +       id="rect2397"
   1.120 +       width="462.41071"
   1.121 +       height="23.392857"
   1.122 +       x="272.3812"
   1.123 +       y="766.04523" />
   1.124 +    <rect
   1.125 +       style="fill:#4d4d4d"
   1.126 +       id="rect2399"
   1.127 +       width="486.65179"
   1.128 +       height="25.714285"
   1.129 +       x="258.56421"
   1.130 +       y="799.2818" />
   1.131 +    <rect
   1.132 +       style="fill:#000000"
   1.133 +       id="rect2401"
   1.134 +       width="455.13394"
   1.135 +       height="22.857143"
   1.136 +       x="276.80084"
   1.137 +       y="834.32648" />
   1.138 +    <rect
   1.139 +       style="fill:#4d4d4d"
   1.140 +       id="rect2403"
   1.141 +       width="439.24106"
   1.142 +       height="22.857143"
   1.143 +       x="294.52405"
   1.144 +       y="866.51398" />
   1.145 +    <rect
   1.146 +       style="fill:#000000"
   1.147 +       id="rect2405"
   1.148 +       width="482.23215"
   1.149 +       height="22.857143"
   1.150 +       x="290.6178"
   1.151 +       y="897.65234" />
   1.152 +    <rect
   1.153 +       style="fill:#f2f2f2"
   1.154 +       id="rect2407"
   1.155 +       width="25.714285"
   1.156 +       height="348.57144"
   1.157 +       x="398.78741"
   1.158 +       y="649.50507" />
   1.159 +    <rect
   1.160 +       style="fill:#f2f2f2"
   1.161 +       id="rect2409"
   1.162 +       width="25.714285"
   1.163 +       height="365.71429"
   1.164 +       x="530.48389"
   1.165 +       y="646.64789" />
   1.166 +    <rect
   1.167 +       style="fill:#f2f2f2"
   1.168 +       id="rect2411"
   1.169 +       width="91.428574"
   1.170 +       height="400"
   1.171 +       x="724.94818"
   1.172 +       y="635.2193" />
   1.173 +    <rect
   1.174 +       style="fill:#f2f2f2"
   1.175 +       id="rect2413"
   1.176 +       width="143.08035"
   1.177 +       height="394.28571"
   1.178 +       x="180.841"
   1.179 +       y="636.51398" />
   1.180 +    <path
   1.181 +       sodipodi:type="arc"
   1.182 +       style="fill:#f2f2f2"
   1.183 +       id="path2415"
   1.184 +       sodipodi:cx="310"
   1.185 +       sodipodi:cy="563.79077"
   1.186 +       sodipodi:rx="52.857143"
   1.187 +       sodipodi:ry="57.142857"
   1.188 +       d="M 362.85714,563.79077 A 52.857143,57.142857 0 1 1 257.14286,563.79077 A 52.857143,57.142857 0 1 1 362.85714,563.79077 z"
   1.189 +       transform="translate(141.42136,0)" />
   1.190 +    <path
   1.191 +       sodipodi:type="arc"
   1.192 +       style="fill:#1c2422"
   1.193 +       id="path2419"
   1.194 +       sodipodi:cx="322.85715"
   1.195 +       sodipodi:cy="563.79077"
   1.196 +       sodipodi:rx="74.285713"
   1.197 +       sodipodi:ry="71.428574"
   1.198 +       d="M 397.14286,563.79077 A 74.285713,71.428574 0 1 1 396.90628,558.09468"
   1.199 +       sodipodi:start="0"
   1.200 +       sodipodi:end="6.2033553"
   1.201 +       sodipodi:open="true"
   1.202 +       transform="translate(127.13564,0)" />
   1.203 +    <path
   1.204 +       sodipodi:type="arc"
   1.205 +       style="fill:#f9f9f9"
   1.206 +       id="path2423"
   1.207 +       sodipodi:cx="322.85715"
   1.208 +       sodipodi:cy="559.50507"
   1.209 +       sodipodi:rx="42.857143"
   1.210 +       sodipodi:ry="38.57143"
   1.211 +       d="M 365.71429,559.50507 A 42.857143,38.57143 0 1 1 365.5778,556.42918"
   1.212 +       sodipodi:start="0"
   1.213 +       sodipodi:end="6.2033553"
   1.214 +       sodipodi:open="true"
   1.215 +       transform="matrix(1.2835792,0,0,1.3437325,36.037466,-188.81547)" />
   1.216 +  </g>
   1.217 +</svg>
     2.1 --- a/src/ui/DrmUiApplication.cpp	Wed Oct 28 22:58:59 2009 +0300
     2.2 +++ b/src/ui/DrmUiApplication.cpp	Sat Oct 31 23:28:57 2009 +0300
     2.3 @@ -74,12 +74,18 @@
     2.4   *
     2.5   */
     2.6  
     2.7 +#include <QtCore>
     2.8 +
     2.9  #include "DrmUiApplication.h"
    2.10  
    2.11  DrmUiApplication::DrmUiApplication(int &argc, char **argv):QApplication(argc, argv)
    2.12  {
    2.13  	FormList=new DrmUiFormList(&MainWindow);
    2.14  
    2.15 +	MainWindow.setWindowIcon(QIcon("images/DaReManager.svg"));
    2.16 +	MainWindow.DirLabel->setText(applicationDirPath());
    2.17 +	MainWindow.DirLabel->setText((new QDir)->currentPath());
    2.18 +
    2.19  	MainWindow.show();
    2.20  }
    2.21  
     3.1 --- a/src/ui/DrmUiMainWindow.cpp	Wed Oct 28 22:58:59 2009 +0300
     3.2 +++ b/src/ui/DrmUiMainWindow.cpp	Sat Oct 31 23:28:57 2009 +0300
     3.3 @@ -74,12 +74,20 @@
     3.4   *
     3.5   */
     3.6  
     3.7 +#include <QDir>
     3.8 +
     3.9  #include "DrmUiMainWindow.h"
    3.10  
    3.11  
    3.12  DrmUiMainWindow::DrmUiMainWindow(QWidget *parent)
    3.13      : QMainWindow(parent)
    3.14  {
    3.15 +	DirLabel = new QLabel();
    3.16 +
    3.17 +
    3.18 +	StatusBar = new QStatusBar;
    3.19 +	StatusBar->addWidget(DirLabel);
    3.20 +	setStatusBar(StatusBar);
    3.21  }
    3.22  
    3.23  DrmUiMainWindow::~DrmUiMainWindow()
     4.1 --- a/src/ui/DrmUiMainWindow.h	Wed Oct 28 22:58:59 2009 +0300
     4.2 +++ b/src/ui/DrmUiMainWindow.h	Sat Oct 31 23:28:57 2009 +0300
     4.3 @@ -78,6 +78,8 @@
     4.4  #define DRMUIMAINWINDOW_H_
     4.5  
     4.6  #include <QtGui/QMainWindow>
     4.7 +#include <QtGui/QLabel>
     4.8 +#include <QtGui/QStatusBar>
     4.9  
    4.10  
    4.11  
    4.12 @@ -89,7 +91,9 @@
    4.13      DrmUiMainWindow(QWidget *parent = 0);
    4.14      virtual ~DrmUiMainWindow();
    4.15  
    4.16 +    QLabel *DirLabel;
    4.17  private:
    4.18 +    QStatusBar *StatusBar;
    4.19  };
    4.20  
    4.21