sshfs-mapper qasim-gui: renamed all files (part2).
git-svn-id: https://websvn.glenux.net/svn/Upoc/sshfs-mapper/trunk@1690 eaee96b3-f302-0410-b096-c6cfd47f7835
Before Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 570 B |
Before Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 997 B |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.8 KiB |
|
@ -1,82 +0,0 @@
|
||||||
#!/usr/bin/ruby
|
|
||||||
|
|
||||||
require 'Qt4'
|
|
||||||
|
|
||||||
# QaSiM // Qt Sshfs Mapper
|
|
||||||
|
|
||||||
VERSION="0.1"
|
|
||||||
|
|
||||||
def _ str
|
|
||||||
Qt::Object.tr(str)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
def build_app
|
|
||||||
|
|
||||||
app = Qt::Application.new(ARGV)
|
|
||||||
si = Qt::SystemTrayIcon.new
|
|
||||||
|
|
||||||
std_icon = Qt::Icon.new('qtsshfsmapper.svg')
|
|
||||||
alt_icon = Qt::Icon.new
|
|
||||||
blinking = false
|
|
||||||
|
|
||||||
si.icon = std_icon
|
|
||||||
si.show
|
|
||||||
si.setToolTip("Qasim v%s" % VERSION);
|
|
||||||
|
|
||||||
Qt::Timer.new(app) do |timer|
|
|
||||||
timer.connect(SIGNAL('timeout()')) do
|
|
||||||
si.icon = (si.icon.isNull ? std_icon : alt_icon) if blinking
|
|
||||||
end
|
|
||||||
timer.start(500)
|
|
||||||
end
|
|
||||||
|
|
||||||
menu = Qt::Menu.new
|
|
||||||
|
|
||||||
['Diades', 'Daneel', 'Dolos'].each do |name|
|
|
||||||
itemx = Qt::Action.new(name, menu)
|
|
||||||
itemx.setCheckable true;
|
|
||||||
itemx.connect(SIGNAL(:triggered)) do
|
|
||||||
puts "%s => %s" % [name, itemx.checked ]
|
|
||||||
end
|
|
||||||
menu.addAction itemx;
|
|
||||||
end
|
|
||||||
|
|
||||||
menu.addSeparator
|
|
||||||
|
|
||||||
act_pref = Qt::Action.new _('&Preferences'), menu
|
|
||||||
act_pref.setIcon( Qt::Icon::fromTheme("configure") )
|
|
||||||
act_pref.setIconVisibleInMenu true
|
|
||||||
menu.addAction act_pref;
|
|
||||||
|
|
||||||
act_about = Qt::Action.new '&About', menu
|
|
||||||
act_about.setIcon( Qt::Icon::fromTheme("help-about") )
|
|
||||||
act_about.setIconVisibleInMenu true
|
|
||||||
menu.addAction act_about;
|
|
||||||
|
|
||||||
menu.addSeparator
|
|
||||||
|
|
||||||
act_quit = Qt::Action.new _('Quit'), menu
|
|
||||||
act_quit.setIcon( Qt::Icon::fromTheme("application-exit") )
|
|
||||||
act_quit.setIconVisibleInMenu true
|
|
||||||
act_quit.connect(SIGNAL(:triggered)) { app.quit }
|
|
||||||
menu.addAction act_quit
|
|
||||||
|
|
||||||
si.contextMenu = menu
|
|
||||||
|
|
||||||
si.connect(SIGNAL('activated(QSystemTrayIcon::ActivationReason)')) do |reason|
|
|
||||||
case reason
|
|
||||||
when Qt::SystemTrayIcon::Trigger
|
|
||||||
blinking = !blinking
|
|
||||||
si.icon = blinking ? alt_icon : std_icon
|
|
||||||
when Qt::SystemTrayIcon::MiddleClick: puts 'Middle Click'
|
|
||||||
when Qt::SystemTrayIcon::Context: puts 'Right Click'
|
|
||||||
when Qt::SystemTrayIcon::DoubleClick: puts 'Double Click'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
app.exec
|
|
||||||
end
|
|
||||||
|
|
||||||
build_app
|
|
||||||
|
|
|
@ -1,192 +0,0 @@
|
||||||
<?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="48"
|
|
||||||
height="48"
|
|
||||||
id="svg2"
|
|
||||||
version="1.1"
|
|
||||||
inkscape:version="0.48.1 r9760"
|
|
||||||
sodipodi:docname="qtsshfsmapper.svg"
|
|
||||||
inkscape:export-filename="/home/glenux/src/sshfs-mapper/qt-mapper/qtsshfsmapper.16.png"
|
|
||||||
inkscape:export-xdpi="30"
|
|
||||||
inkscape:export-ydpi="30">
|
|
||||||
<defs
|
|
||||||
id="defs4">
|
|
||||||
<linearGradient
|
|
||||||
id="linearGradient3770">
|
|
||||||
<stop
|
|
||||||
style="stop-color:#ffffff;stop-opacity:1;"
|
|
||||||
offset="0"
|
|
||||||
id="stop3772" />
|
|
||||||
<stop
|
|
||||||
style="stop-color:#ffffff;stop-opacity:0;"
|
|
||||||
offset="1"
|
|
||||||
id="stop3774" />
|
|
||||||
</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="perspective10" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective2826"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective2848"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective2870"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective2894"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective2917"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<linearGradient
|
|
||||||
inkscape:collect="always"
|
|
||||||
xlink:href="#linearGradient3770"
|
|
||||||
id="linearGradient3776"
|
|
||||||
x1="266.68027"
|
|
||||||
y1="435.22842"
|
|
||||||
x2="250.51782"
|
|
||||||
y2="-59.746334"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
gradientTransform="matrix(0.07952263,0,0,0.07952263,161.81757,655.75307)" />
|
|
||||||
<linearGradient
|
|
||||||
inkscape:collect="always"
|
|
||||||
xlink:href="#linearGradient3770"
|
|
||||||
id="linearGradient3785"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
gradientTransform="matrix(0.07952263,0,0,0.07952263,161.81757,655.75307)"
|
|
||||||
x1="266.68027"
|
|
||||||
y1="435.22842"
|
|
||||||
x2="250.51782"
|
|
||||||
y2="-59.746334" />
|
|
||||||
<filter
|
|
||||||
inkscape:collect="always"
|
|
||||||
id="filter3825">
|
|
||||||
<feGaussianBlur
|
|
||||||
inkscape:collect="always"
|
|
||||||
stdDeviation="0.91071434"
|
|
||||||
id="feGaussianBlur3827" />
|
|
||||||
</filter>
|
|
||||||
</defs>
|
|
||||||
<sodipodi:namedview
|
|
||||||
id="base"
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1.0"
|
|
||||||
inkscape:pageopacity="0.0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:zoom="5.6"
|
|
||||||
inkscape:cx="32.286846"
|
|
||||||
inkscape:cy="39.236702"
|
|
||||||
inkscape:document-units="px"
|
|
||||||
inkscape:current-layer="layer1"
|
|
||||||
showgrid="false"
|
|
||||||
showguides="true"
|
|
||||||
inkscape:guide-bbox="true"
|
|
||||||
inkscape:window-width="981"
|
|
||||||
inkscape:window-height="820"
|
|
||||||
inkscape:window-x="598"
|
|
||||||
inkscape:window-y="222"
|
|
||||||
inkscape:window-maximized="0"
|
|
||||||
fit-margin-top="10"
|
|
||||||
fit-margin-left="0"
|
|
||||||
fit-margin-right="0"
|
|
||||||
fit-margin-bottom="0">
|
|
||||||
<sodipodi:guide
|
|
||||||
orientation="1,0"
|
|
||||||
position="-246.80725,489.71807"
|
|
||||||
id="guide2933" />
|
|
||||||
</sodipodi:namedview>
|
|
||||||
<metadata
|
|
||||||
id="metadata7">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title></dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<g
|
|
||||||
inkscape:label="Calque 1"
|
|
||||||
inkscape:groupmode="layer"
|
|
||||||
id="layer1"
|
|
||||||
transform="translate(-158.66427,-655.92621)">
|
|
||||||
<rect
|
|
||||||
style="opacity:0.5;fill:#000000;fill-opacity:1;stroke:none;filter:url(#filter3825)"
|
|
||||||
id="rect3795"
|
|
||||||
width="36.428574"
|
|
||||||
height="36.428574"
|
|
||||||
x="165.44998"
|
|
||||||
y="664.1405" />
|
|
||||||
<g
|
|
||||||
id="g3779"
|
|
||||||
transform="translate(-1.0714285,3.4285714)">
|
|
||||||
<path
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
id="path2931"
|
|
||||||
d="m 177.387,677.26057 c 2.82837,-0.002 5.07785,-1.03697 5.07798,-1.03199 2.4e-4,0.009 0.71756,-7.78654 7.53257,-9.43018 3.31124,-0.7986 6.99546,0.14142 10.13184,1.93378 l 0,-9.8425 -32.13158,0 c -1.58659,4.94435 -1.13008,11.68243 2.52693,15.5281 2.11354,2.22256 4.66242,2.84445 6.86226,2.84279 z"
|
|
||||||
style="fill:#000080;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
|
||||||
<path
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
id="path2816-2-0"
|
|
||||||
d="m 200.12939,693.88576 0,-25.19698 c -3.13374,-1.78785 -6.8104,-2.72412 -10.11737,-1.92655 -6.81501,1.64364 -7.53204,9.43924 -7.53981,9.43501 -0.008,-0.004 6.3845,4.51479 4.40043,11.23857 -0.74757,2.53344 -2.51357,4.73885 -4.72353,6.44995 l 17.98028,0 z"
|
|
||||||
style="fill:#aa0000;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
|
||||||
<path
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
id="path2816-2-0-5"
|
|
||||||
d="m 182.21662,693.88576 c 2.19083,-1.70659 3.93959,-3.90081 4.68254,-6.4186 1.98407,-6.72379 -4.41039,-11.24361 -4.40284,-11.24822 0.008,-0.005 -7.10206,3.27416 -11.933,-1.80599 -3.65593,-3.84453 -4.11185,-10.57932 -2.52693,-15.52327 l -2.90308,0 0,34.99608 17.08331,0 z"
|
|
||||||
style="fill:#ffff00;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
|
|
||||||
<path
|
|
||||||
sodipodi:nodetypes="ccccc"
|
|
||||||
inkscape:connector-curvature="0"
|
|
||||||
id="rect3768"
|
|
||||||
d="m 166.09311,659.35621 32.95266,0 0,7.19498 c -17.59731,-7.4251 -15.13188,11.8225 -32.95266,2.38568 z"
|
|
||||||
style="opacity:0.69662924;fill:url(#linearGradient3785);fill-opacity:1;stroke:none" />
|
|
||||||
</g>
|
|
||||||
<rect
|
|
||||||
style="opacity:0.64044949;fill:none;stroke:#ffffff;stroke-width:1.88954365;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
|
||||||
id="rect3829"
|
|
||||||
width="31.131716"
|
|
||||||
height="31.555824"
|
|
||||||
x="165.95694"
|
|
||||||
y="663.78564" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 7.1 KiB |