mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Importing EDE2 code to svn... NOTE: It doesn't compile! Stuff thats broken: edewm, eworkpanel, eiconman,
emenueditor
This commit is contained in:
21
esvrconf/Makefile
Executable file
21
esvrconf/Makefile
Executable file
@@ -0,0 +1,21 @@
|
||||
|
||||
CPPFILES = escreensaver.cpp escrsaverconf.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp
|
||||
TARGET = esvrconf
|
||||
|
||||
POFILES = locale/ru.po\
|
||||
locale/sk.po\
|
||||
locale/hu.po\
|
||||
|
||||
include ../makeinclude
|
||||
|
||||
install:
|
||||
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
|
||||
$(INSTALL_LOCALE)
|
||||
|
||||
uninstall:
|
||||
$(RM) $(bindir)/$(TARGET)
|
||||
|
||||
clean:
|
||||
$(RM) $(TARGET)
|
||||
$(RM) *.o
|
||||
|
||||
207
esvrconf/ehacklist.h
Executable file
207
esvrconf/ehacklist.h
Executable file
@@ -0,0 +1,207 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Screensaver configuration
|
||||
* Part of Equinox Desktop Environment (EDE).
|
||||
* Copyright (c) 2000-2006 EDE Authors.
|
||||
*
|
||||
* This program is licenced under terms of the
|
||||
* GNU General Public Licence version 2 or newer.
|
||||
* See COPYING for details.
|
||||
*/
|
||||
|
||||
|
||||
// This is from xscreensaver 4.0 XScreenSaver.ad
|
||||
|
||||
char hacks[] = " \
|
||||
\"Qix (solid)\" qix -root -solid -segments 100 \n\
|
||||
\"Qix (transparent)\" qix -root -count 4 -solid -transparent \n\
|
||||
\"Qix (linear)\" qix -root -count 5 -solid -transparent \
|
||||
-linear -segments 250 -size 100 \n\
|
||||
- mono: \"Qix (xor)\" qix -root -linear -count 5 -size 200 \
|
||||
-spread 30 -segments 75 -solid -xor \n\
|
||||
\
|
||||
\"Attraction (balls)\" attraction -root -mode balls \n\
|
||||
\"Attraction (lines)\" attraction -root -mode lines -points 3\
|
||||
-segments 200 \n\
|
||||
- \"Attraction (poly)\" attraction -root -mode polygons \n\
|
||||
\"Attraction (splines)\" attraction -root -mode splines -segments \
|
||||
300 \n\
|
||||
\"Attraction (orbital)\" attraction -root -mode lines -radius 300 \
|
||||
-orbit -vmult 0.5 \n\
|
||||
\
|
||||
pyro -root \n\
|
||||
rocks -root \n\
|
||||
helix -root \n\
|
||||
pedal -root \n\
|
||||
rorschach -root -offset 7 \n\
|
||||
hopalong -root \n\
|
||||
greynetic -root \n\
|
||||
imsmap -root \n\
|
||||
slidescreen -root \n\
|
||||
decayscreen -root \n\
|
||||
jigsaw -root \n\
|
||||
blitspin -root -grab \n\
|
||||
slip -root \n\
|
||||
distort -root \n\
|
||||
spotlight -root \n\
|
||||
\"Ripples (oily)\" ripples -root -oily -light 2 \n\
|
||||
\"Ripples (stir)\" ripples -root -oily -light 2 -stir \n\
|
||||
\"Ripples (desktop)\" ripples -root -water -light 6 \n\
|
||||
hypercube -root \n\
|
||||
hyperball -root \n\
|
||||
halo -root \n\
|
||||
maze -root \n\
|
||||
noseguy -root \n\
|
||||
flame -root \n\
|
||||
lmorph -root \n\
|
||||
deco -root \n\
|
||||
moire -root \n\
|
||||
moire2 -root \n\
|
||||
lightning -root \n\
|
||||
strange -root \n\
|
||||
spiral -root \n\
|
||||
laser -root \n\
|
||||
grav -root \n\
|
||||
\"Grav (trails)\" grav -root -trail -decay \n\
|
||||
drift -root \n\
|
||||
ifs -root \n\
|
||||
julia -root \n\
|
||||
penrose -root \n\
|
||||
sierpinski -root \n\
|
||||
braid -root \n\
|
||||
galaxy -root \n\
|
||||
bouboule -root \n\
|
||||
swirl -root \n\
|
||||
flag -root \n\
|
||||
sphere -root \n\
|
||||
forest -root \n\
|
||||
lisa -root \n\
|
||||
lissie -root \n\
|
||||
goop -root -max-velocity 0.5 -elasticity \
|
||||
0.9 \n\
|
||||
starfish -root \n\
|
||||
\"Starfish (blob)\" starfish -root -blob \n\
|
||||
munch -root \n\
|
||||
fadeplot -root \n\
|
||||
coral -root -delay 0 \n\
|
||||
mountain -root \n\
|
||||
triangle -root -delay 1 \n\
|
||||
worm -root \n\
|
||||
rotor -root \n\
|
||||
ant -root \n\
|
||||
demon -root \n\
|
||||
loop -root \n\
|
||||
vines -root \n\
|
||||
kaleidescope -root \n\
|
||||
xjack -root \n\
|
||||
xlyap -root -randomize \n\
|
||||
cynosure -root \n\
|
||||
flow -root \n\
|
||||
epicycle -root \n\
|
||||
interference -root \n\
|
||||
truchet -root -randomize \n\
|
||||
bsod -root \n\
|
||||
crystal -root \n\
|
||||
discrete -root \n\
|
||||
kumppa -root \n\
|
||||
rd-bomb -root \n\
|
||||
\"RD-Bomb (mobile)\" rd-bomb -root -speed 1 -size 0.1 \n\
|
||||
sonar -root \n\
|
||||
t3d -root \n\
|
||||
penetrate -root \n\
|
||||
deluxe -root \n\
|
||||
compass -root \n\
|
||||
squiral -root \n\
|
||||
xflame -root \n\
|
||||
wander -root \n\
|
||||
\"Wander (spots)\" wander -root -advance 0 -size 10 -circles \
|
||||
-length 10000 -reset 100000 \n\
|
||||
critical -root \n\
|
||||
phosphor -root \n\
|
||||
xmatrix -root \n\
|
||||
petri -root -size 2 -count 20 \n\
|
||||
\"Petri 2\" petri -root -minlifespeed 0.02 \
|
||||
-maxlifespeed 0.03 -minlifespan 1 \
|
||||
-maxlifespan 1 -instantdeathchan 0 \
|
||||
-minorchan 0 -anychan 0.3 \n\
|
||||
shadebobs -root \n\
|
||||
ccurve -root \n\
|
||||
blaster -root \n\
|
||||
bumps -root \n\
|
||||
xteevee -root \n\
|
||||
xspirograph -root \n\
|
||||
nerverot -root \n\
|
||||
- \"NerveRot (dense)\" nerverot -root -count 1000 \n\
|
||||
- \"NerveRot (thick)\" nerverot -root -count 100 -line-width 4 \
|
||||
-max-nerve-radius 0.8 -nervousness 0.5 -db \n\
|
||||
xrayswarm -root \n\
|
||||
- \"Zoom (Fatbits)\" zoom -root \n\
|
||||
\"Zoom (Lenses)\" zoom -root -lenses \n\
|
||||
rotzoomer -root \n\
|
||||
- \"RotZoomer (mobile)\" rotzoomer -root -move \n\
|
||||
- \"RotZoomer (sweep)\" rotzoomer -root -sweep \n\
|
||||
whirlwindwarp -root \n\
|
||||
\"WhirlyGig\" whirlygig -root \n\
|
||||
\"SpeedMine\" speedmine -root \n\
|
||||
\"SpeedWorm\" speedmine -root -worm \n\
|
||||
vermiculate -root \n\
|
||||
color: bubbles -root \n\
|
||||
default-n: webcollage -root \n\
|
||||
default-n: \"WebCollage (whacked)\" \
|
||||
webcollage -root -filter \
|
||||
'vidwhacker -stdin -stdout' \n\
|
||||
- default-n: vidwhacker -root \n\
|
||||
\
|
||||
GL: gears -root \n\
|
||||
GL: \"Gears (planetary)\" gears -root -planetary \n\
|
||||
GL: superquadrics -root \n\
|
||||
GL: morph3d -root \n\
|
||||
GL: cage -root \n\
|
||||
GL: moebius -root \n\
|
||||
GL: stairs -root \n\
|
||||
GL: pipes -root \n\
|
||||
GL: sproingies -root \n\
|
||||
GL: rubik -root \n\
|
||||
GL: atlantis -root \n\
|
||||
GL: lament -root \n\
|
||||
GL: bubble3d -root \n\
|
||||
GL: glplanet -root \n\
|
||||
GL: pulsar -root \n\
|
||||
- GL: \"Pulsar (textures)\" \
|
||||
pulsar -root -texture -mipmap \
|
||||
-texture_quality -light -fog \n\
|
||||
- GL: extrusion -root \n\
|
||||
GL: sierpinski3d -root \n\
|
||||
GL: menger -root \n\
|
||||
GL: \"GFlux\" gflux -root \n\
|
||||
GL: \"GFlux (grab)\" gflux -root -mode grab \n\
|
||||
GL: stonerview -root \n\
|
||||
GL: starwars -root \n\
|
||||
GL: gltext -root \n\
|
||||
GL: \"GLText (clock)\" gltext -text \"%A%n%d %b %Y%n%r\" -root \n\
|
||||
GL: \"Molecule\" molecule -root \n\
|
||||
GL: \"Molecule (lumpy)\" molecule -root -no-bonds -no-labels \n\
|
||||
GL: dangerball -root \n\
|
||||
GL: circuit -root \n\
|
||||
GL: engine -root \n\
|
||||
GL: flipscreen3d -root \n\
|
||||
\
|
||||
- xdaliclock -root -builtin3 -cycle \n\
|
||||
- default-n: xearth -nofork -nostars -ncolors 50 \
|
||||
-night 3 -wait 0 -timewarp 400.0 -pos \
|
||||
sunrel/38/-30 \n\
|
||||
- xplanetbg -xscreensaver -moonside \
|
||||
-markerfile earth -wait 1 -timewarp 400 \n\
|
||||
- ssystem -fullscreen :32 \n\
|
||||
- xmountains -b -M -Z 0 -r 1 \n\
|
||||
- \"XMountains (top)\" xmountains -b -M -Z 0 -r 1 -m \n\
|
||||
- xaos -fullscreen -autopilot \
|
||||
-incoloring -1 -outcoloring -1 \n\
|
||||
- xfishtank -d -s \n\
|
||||
- xsnow \n\
|
||||
- goban -root \n\
|
||||
- electricsheep \n\
|
||||
- cosmos -root \n\
|
||||
- GL: sphereEversion --root \n";
|
||||
|
||||
514
esvrconf/escreensaver.cpp
Executable file
514
esvrconf/escreensaver.cpp
Executable file
@@ -0,0 +1,514 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Screensaver configuration
|
||||
* Part of Equinox Desktop Environment (EDE).
|
||||
* Copyright (c) 2000-2006 EDE Authors.
|
||||
*
|
||||
* This program is licenced under terms of the
|
||||
* GNU General Public Licence version 2 or newer.
|
||||
* See COPYING for details.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../edeconf.h"
|
||||
// blah
|
||||
|
||||
/*#include <efltk/fl_ask.h>
|
||||
#include <efltk/Fl_Util.h>
|
||||
#include <efltk/Fl_Input_Browser.h>
|
||||
#include <efltk/Fl_Config.h>*/
|
||||
|
||||
#include <fltk/ask.h>
|
||||
//#include <efltk/Fl_Util.h>
|
||||
#include <fltk/InputBrowser.h>
|
||||
#include <fltk/Window.h>
|
||||
#include <fltk/x.h>
|
||||
#include "../edelib2/Config.h"
|
||||
|
||||
#include "escreensaver.h"
|
||||
#include "escrsaverconf.h"
|
||||
#include "ehacklist.h"
|
||||
|
||||
|
||||
using namespace fltk;
|
||||
using namespace edelib;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
int running_saver = 0;
|
||||
pid_t running_preview_pid = 0;
|
||||
int default_saver = 0;
|
||||
|
||||
typedef struct screenhack screenhack;
|
||||
struct screenhack
|
||||
{
|
||||
bool enabled_p;
|
||||
char *visual;
|
||||
char *name;
|
||||
char *command;
|
||||
};
|
||||
|
||||
struct saver_preferences
|
||||
{
|
||||
screenhack **screenhacks; /* the scrsavers to run */
|
||||
int screenhacks_count;
|
||||
};
|
||||
|
||||
char* format_command(const char *cmd, bool wrap_p);
|
||||
|
||||
/* Returns a new string describing the shell command.
|
||||
This may be just the name of the program, capitalized.
|
||||
It also may be something from the resource database (gotten
|
||||
by looking for "hacks.XYZ.name", where XYZ is the program.)
|
||||
*/
|
||||
char* make_hack_name(const char *shell_command)
|
||||
{
|
||||
char *s = strdup (shell_command);
|
||||
char *s2;
|
||||
|
||||
for (s2 = s; *s2; s2++) /* truncate at first whitespace */
|
||||
if (isspace (*s2))
|
||||
{
|
||||
*s2 = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
s2 = strrchr (s, '/'); /* if pathname, take last component */
|
||||
if (s2)
|
||||
{
|
||||
s2 = strdup (s2+1);
|
||||
free (s);
|
||||
s = s2;
|
||||
}
|
||||
|
||||
if (strlen (s) > 50) /* 51 is hereby defined as "unreasonable" */
|
||||
s[50] = 0;
|
||||
|
||||
for (s2 = s; *s2; s2++) /* if it has any capitals, return it */
|
||||
if (*s2 >= 'A' && *s2 <= 'Z')
|
||||
return s;
|
||||
|
||||
/* else cap it */
|
||||
if (s[0] >= 'a' && s[0] <= 'z')
|
||||
s[0] -= 'a'-'A';
|
||||
/* (magic leading X) */
|
||||
if (s[0] == 'X' && s[1] >= 'a' && s[1] <= 'z')
|
||||
s[1] -= 'a'-'A';
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
//Parsing scrsavers
|
||||
|
||||
screenhack* parse_screenhack(const char *line)
|
||||
{
|
||||
screenhack *h = (screenhack *) calloc (1, sizeof(*h));
|
||||
const char *s;
|
||||
|
||||
h->enabled_p = true;
|
||||
|
||||
/* skip whitespace */
|
||||
while (isspace(*line)) line++;
|
||||
if (*line == '-') /* handle "-" */
|
||||
{
|
||||
h->enabled_p = false;
|
||||
line++;
|
||||
/* skip whitespace */
|
||||
while (isspace(*line)) line++;
|
||||
}
|
||||
|
||||
s = line; /* handle "visual:" */
|
||||
while (*line && *line != ':' && *line != '"' && !isspace(*line))
|
||||
line++;
|
||||
if (*line != ':')
|
||||
line = s;
|
||||
else
|
||||
{
|
||||
h->visual = (char *) malloc (line-s+1);
|
||||
strncpy (h->visual, s, line-s);
|
||||
h->visual[line-s] = 0;
|
||||
if (*line == ':') line++;/* skip ":" */
|
||||
/* skip whitespace */
|
||||
while (isspace(*line)) line++;
|
||||
}
|
||||
|
||||
if (*line == '"') /* handle "name" */
|
||||
{
|
||||
line++;
|
||||
s = line;
|
||||
while (*line && *line != '"')
|
||||
line++;
|
||||
h->name = (char *) malloc (line-s+1);
|
||||
strncpy(h->name, s, line-s);
|
||||
h->name[line-s] = 0;
|
||||
if (*line == '"') line++;/* skip "\"" */
|
||||
/* skip whitespace */
|
||||
while (isspace(*line)) line++;
|
||||
}
|
||||
|
||||
/* handle command */
|
||||
h->command = format_command(line, false);
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
char* format_command(const char *cmd, bool wrap_p)
|
||||
{
|
||||
int tab = 30;
|
||||
int col = tab;
|
||||
char *cmd2 = (char *) calloc (1, 2 * (strlen (cmd) + 1));
|
||||
const char *in = cmd;
|
||||
char *out = cmd2;
|
||||
while (*in)
|
||||
{
|
||||
/* shrink all whitespace to one space, for the benefit of the "demo"
|
||||
mode display. We only do this when we can easily tell that the
|
||||
whitespace is not significant (no shell metachars).
|
||||
*/
|
||||
switch (*in)
|
||||
{
|
||||
case '\'': case '"': case '`': case '\\':
|
||||
/* Metachars are scary. Copy the rest of the line unchanged. */
|
||||
while (*in)
|
||||
*out++ = *in++, col++;
|
||||
break;
|
||||
|
||||
case ' ': case '\t':
|
||||
/* Squeeze all other whitespace down to one space. */
|
||||
while (*in == ' ' || *in == '\t')
|
||||
in++;
|
||||
*out++ = ' ', col++;
|
||||
break;
|
||||
|
||||
default:
|
||||
/* Copy other chars unchanged. */
|
||||
*out++ = *in++, col++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
*out = 0;
|
||||
|
||||
/* Strip trailing whitespace */
|
||||
while (out > cmd2 && isspace (out[-1]))
|
||||
*(--out) = 0;
|
||||
|
||||
return cmd2;
|
||||
}
|
||||
|
||||
|
||||
static struct saver_preferences p;
|
||||
|
||||
void getScreenhacks()
|
||||
{
|
||||
int i, j;
|
||||
int start = 0;
|
||||
int end = 0;
|
||||
int size;
|
||||
char *d = hacks;
|
||||
|
||||
p.screenhacks = 0;
|
||||
p.screenhacks_count = 0;
|
||||
|
||||
if (!d || !*d)
|
||||
return;
|
||||
|
||||
size = strlen (d);
|
||||
|
||||
/* Count up the number of newlines (which will be equal to or larger than
|
||||
one less than the number of hacks.)
|
||||
*/
|
||||
|
||||
for (i = j = 0; d[i]; i++)
|
||||
{
|
||||
if (d[i] == '\n') j++;
|
||||
}
|
||||
|
||||
j++;
|
||||
|
||||
p.screenhacks = (screenhack **) calloc (j + 1, sizeof (screenhack *));
|
||||
|
||||
/* Iterate over the lines in `d' (the string with newlines)
|
||||
and make new strings to stuff into the `screenhacks' array.
|
||||
*/
|
||||
p.screenhacks_count = 0;
|
||||
while (start < size)
|
||||
{
|
||||
// skip forward over whitespace.
|
||||
while (d[start] == ' ' || d[start] == '\t' || d[start] == '\n')
|
||||
start++;
|
||||
|
||||
// skip forward to newline or end of string.
|
||||
end = start;
|
||||
while (d[end] != 0 && d[end] != '\n')
|
||||
end++;
|
||||
|
||||
// null terminate
|
||||
d[end] = '\0';
|
||||
|
||||
p.screenhacks[p.screenhacks_count++] = parse_screenhack (d + start);
|
||||
if (p.screenhacks_count >= i)
|
||||
abort();
|
||||
|
||||
start = end+1;
|
||||
}
|
||||
|
||||
if (p.screenhacks_count == 0)
|
||||
{
|
||||
free(p.screenhacks);
|
||||
p.screenhacks = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void free_screenhack(screenhack *hack)
|
||||
{
|
||||
if (hack->visual) free (hack->visual);
|
||||
if (hack->name) free (hack->name);
|
||||
free(hack->command);
|
||||
memset(hack, 0, sizeof(*hack));
|
||||
free (hack);
|
||||
}
|
||||
|
||||
static void free_screenhack_list(screenhack **list, int count)
|
||||
{
|
||||
int i;
|
||||
if (!list) return;
|
||||
for (i = 0; i < count; i++)
|
||||
if (list[i]) free_screenhack (list[i]);
|
||||
free (list);
|
||||
}
|
||||
|
||||
Config config("EDE Team", "escrsaver");
|
||||
|
||||
void readConfiguration()
|
||||
{
|
||||
int cdefserver = 0;
|
||||
config.get("Saver", "Active", cdefserver);
|
||||
|
||||
if (!config.error())
|
||||
{
|
||||
default_saver = cdefserver;
|
||||
saversList->text(saversList->child(default_saver)->label());
|
||||
}
|
||||
|
||||
int ctimeout = 0;
|
||||
config.get("Saver", "Timeout", ctimeout, 1);
|
||||
if (!config.error()) timeoutSlider->value(ctimeout);
|
||||
|
||||
int cdpmsOn = 0;
|
||||
config.get("DPMS", "On", cdpmsOn);
|
||||
if (!config.error()) {enableDPMSCheck->value(cdpmsOn); enableDPMSCheck->do_callback();}
|
||||
|
||||
int cdpmsStandby = 0; config.get("DPMS", "Standby", cdpmsStandby);
|
||||
if (!config.error()) standbySlider->value(cdpmsStandby);
|
||||
|
||||
int cdpmsSuspend = 0;
|
||||
config.get("DPMS", "Suspend", cdpmsSuspend);
|
||||
if (!config.error()) suspendSlider->value(cdpmsSuspend);
|
||||
|
||||
int cdpmsOff = 0;
|
||||
config.get("DPMS", "Off", cdpmsOff);
|
||||
if (!config.error()) offSlider->value(cdpmsOff);
|
||||
}
|
||||
|
||||
|
||||
void writeConfiguration()
|
||||
{
|
||||
// FLE_Config config(fle_find_config_file("apps/escrsaver.conf", 1));
|
||||
config.create_section("Saver");
|
||||
config.set_section("Saver");
|
||||
|
||||
config.write("Active", saversList->item() ? (int)saversList->item()->user_data() : default_saver);
|
||||
|
||||
config.write("Timeout", timeoutSlider->value());
|
||||
config.create_section("DPMS");
|
||||
config.set_section("DPMS");
|
||||
config.write("On", enableDPMSCheck->value());
|
||||
config.write("Standby", standbySlider->value());
|
||||
config.write("Suspend", suspendSlider->value());
|
||||
config.write("Off", offSlider->value());
|
||||
|
||||
writeConfigurationSaver();
|
||||
}
|
||||
|
||||
|
||||
void writeConfigurationSaver()
|
||||
{
|
||||
char *home = getenv("HOME");
|
||||
char *path = (char*)malloc(200);
|
||||
snprintf(path,200,"%s/.xscreensaver", home);
|
||||
delete [] home;
|
||||
|
||||
FILE *config = fopen(path, "w+");
|
||||
|
||||
delete [] path;
|
||||
|
||||
fprintf(config, "timeout: 0:%d:00\n", (int) timeoutSlider->value());
|
||||
fprintf(config, "dpmsEnabled: %s\n", enableDPMSCheck->value() ? "True" : "False");
|
||||
|
||||
fprintf(config, "dpmsStandby: 0:%d:00\n", (int) standbySlider->value());
|
||||
fprintf(config, "dpmsSuspend: 0:%d:00\n", (int) suspendSlider->value());
|
||||
fprintf(config, "dpmsOff: 0:%d:00\n", (int) offSlider->value());
|
||||
|
||||
fprintf(config, "mode: one\n");
|
||||
|
||||
|
||||
fprintf(config, "selected: %d\n", 0);
|
||||
|
||||
fprintf(config, "programs: \"%s\" %s\n", saversList->item() ?
|
||||
(char*)p.screenhacks[(int)saversList->item()->user_data()]->name :
|
||||
(char*)p.screenhacks[default_saver]->name,
|
||||
saversList->item() ?
|
||||
(char*)p.screenhacks[(int)saversList->item()->user_data()]->command :
|
||||
(char*)p.screenhacks[default_saver]->command
|
||||
);
|
||||
|
||||
fclose(config);
|
||||
|
||||
}
|
||||
|
||||
|
||||
void clearOnExit()
|
||||
{
|
||||
free_screenhack_list(p.screenhacks, p.screenhacks_count);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
||||
static void killPreviewSubproc()
|
||||
{
|
||||
if (running_preview_pid)
|
||||
{
|
||||
kill(running_preview_pid, SIGTERM);
|
||||
running_preview_pid = 0;
|
||||
}
|
||||
running_saver = 0;
|
||||
}
|
||||
|
||||
|
||||
void launchPreviewSubprocess(char *new_cmd)
|
||||
{
|
||||
extern char **environ;
|
||||
pid_t forked;
|
||||
|
||||
if (running_preview_pid)
|
||||
{
|
||||
killPreviewSubproc();
|
||||
}
|
||||
|
||||
switch ((int) (forked = fork ()))
|
||||
{
|
||||
case -1:
|
||||
{
|
||||
alert(_("Couldn't fork screensaver subprocess."));
|
||||
return;
|
||||
}
|
||||
case 0:
|
||||
{
|
||||
usleep(250000);
|
||||
char *argv[4];
|
||||
argv[0] = "sh";
|
||||
argv[1] = "-c";
|
||||
argv[2] = new_cmd;
|
||||
argv[3] = NULL;
|
||||
if (execve("/bin/sh", argv, environ) == -1)
|
||||
alert(_("Couldn't fork shell subprocess."));
|
||||
exit(1);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
running_preview_pid = forked;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// fill combo box with scrsavers names
|
||||
// TODO: read screensavers actually installed on the system
|
||||
void fillSaversList(InputBrowser *browser)
|
||||
{
|
||||
for (int i = 0; i < p.screenhacks_count; i++)
|
||||
{
|
||||
browser->begin();
|
||||
Item *item = 0;
|
||||
if (!(p.screenhacks[i]->name)) // if scrsaver do not have the name
|
||||
{
|
||||
item = new Item(make_hack_name(p.screenhacks[i]->command));
|
||||
}
|
||||
else item = new Item(p.screenhacks[i]->name);
|
||||
|
||||
item->user_data((void*) i);
|
||||
item->activate(p.screenhacks[i]->enabled_p);
|
||||
browser->end();
|
||||
}
|
||||
browser->text(browser->child(0)->label());
|
||||
}
|
||||
|
||||
// preview
|
||||
void startSaverPreview()
|
||||
{
|
||||
static XWindow id;
|
||||
static int wid = 0;
|
||||
static bool warned = false;
|
||||
|
||||
if (!wid)
|
||||
{
|
||||
id = xid(saverWindow);
|
||||
wid=1;
|
||||
}
|
||||
saverWindow->show();
|
||||
|
||||
if (id==0)
|
||||
return;
|
||||
killPreviewSubproc();
|
||||
|
||||
char *location = 0;
|
||||
if (access(PREFIX"/X11R6/lib/xscreensaver/", F_OK)==0)
|
||||
location = PREFIX"/X11R6/lib/xscreensaver/";
|
||||
else if (access(PREFIX"/lib/xscreensaver/", F_OK)==0)
|
||||
location = PREFIX"/lib/xscreensaver/";
|
||||
else if (access("/usr/X11R6/lib/xscreensaver/", F_OK)==0)
|
||||
location = "/usr/X11R6/lib/xscreensaver/";
|
||||
else if (access("/lib/xscreensaver/",F_OK)==0)
|
||||
location = "/lib/xscreensaver/";
|
||||
else {
|
||||
location = "";
|
||||
if (!warned) {
|
||||
alert(_("xscreensaver wasn't found on your system.\n\nEquinox Desktop Environment uses xscreensaver to display screen savers. Please install this package if you wish to use graphical screen savers."));
|
||||
warned=true;
|
||||
}
|
||||
}
|
||||
|
||||
// no need to continue now...
|
||||
if (strlen(location)<1) return;
|
||||
|
||||
|
||||
char cmd[4096] = {0};
|
||||
char* savercmd;
|
||||
// all sorts of stuff can be undefined (zero), so we need to check thoroughly
|
||||
if (saversList->item()) {
|
||||
int saverno = (int)saversList->item()->user_data();
|
||||
fprintf (stderr, " ++ screenhack %d\n", saverno);
|
||||
if (p.screenhacks && p.screenhacks[saverno] && p.screenhacks[saverno]->command) {
|
||||
savercmd = (char*)p.screenhacks[(int)saversList->item()->user_data()]->command;
|
||||
} else {
|
||||
// no preview
|
||||
return;
|
||||
}
|
||||
} else
|
||||
savercmd = (char*)p.screenhacks[default_saver]->command;
|
||||
snprintf(cmd, 4096, "%s%s -window-id 0x%X", location, savercmd, (int)id);
|
||||
launchPreviewSubprocess(cmd);
|
||||
}
|
||||
41
esvrconf/escreensaver.h
Executable file
41
esvrconf/escreensaver.h
Executable file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Screensaver configuration
|
||||
* Part of Equinox Desktop Environment (EDE).
|
||||
* Copyright (c) 2000-2006 EDE Authors.
|
||||
*
|
||||
* This program is licenced under terms of the
|
||||
* GNU General Public Licence version 2 or newer.
|
||||
* See COPYING for details.
|
||||
*/
|
||||
|
||||
#ifndef escreensaver_h
|
||||
#define escreensaver_h
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/*#include <efltk/Fl_Window.h>
|
||||
#include <efltk/Fl_Item.h>
|
||||
#include <efltk/x.h>
|
||||
#include <efltk/Fl_Input_Browser.h>
|
||||
#include <efltk/Fl_Locale.h>*/
|
||||
|
||||
#include <fltk/Window.h>
|
||||
#include <fltk/Item.h>
|
||||
#include <fltk/InputBrowser.h>
|
||||
#include "../edelib2/NLS.h"
|
||||
|
||||
void fillSaversList(fltk::InputBrowser *);
|
||||
void startSaverPreview();
|
||||
void readConfiguration();
|
||||
void writeConfiguration();
|
||||
void writeConfigurationSaver();
|
||||
void getScreenhacks();
|
||||
void clearOnExit();
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
176
esvrconf/escrsaverconf.cpp
Executable file
176
esvrconf/escrsaverconf.cpp
Executable file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Screensaver configuration
|
||||
* Part of Equinox Desktop Environment (EDE).
|
||||
* Copyright (c) 2000-2006 EDE Authors.
|
||||
*
|
||||
* This program is licenced under terms of the
|
||||
* GNU General Public Licence version 2 or newer.
|
||||
* See COPYING for details.
|
||||
*/
|
||||
|
||||
#include "escrsaverconf.h"
|
||||
#include "escreensaver.h"
|
||||
#include "../edelib2/NLS.h"
|
||||
|
||||
#include <fltk/Symbol.h>
|
||||
#include <fltk/xpmImage.h>
|
||||
#include <fltk/run.h>
|
||||
#include "icons/energy.xpm"
|
||||
|
||||
fltk::Window* mainWindow;
|
||||
|
||||
static void cb_mainWindow(fltk::Window*, void*) {
|
||||
clearOnExit();
|
||||
}
|
||||
|
||||
fltk::InputBrowser* saversList;
|
||||
|
||||
static void cb_saversList(fltk::InputBrowser*, void*) {
|
||||
startSaverPreview();
|
||||
}
|
||||
|
||||
fltk::ValueInput* timeoutSlider;
|
||||
|
||||
static void cb_OK(fltk::Button*, void*) {
|
||||
writeConfiguration(); clearOnExit();
|
||||
}
|
||||
|
||||
static void cb_Cancel(fltk::Button*, void*) {
|
||||
clearOnExit();
|
||||
}
|
||||
|
||||
fltk::Group* dpmsGroup;
|
||||
fltk::ValueInput* standbySlider;
|
||||
fltk::ValueInput* suspendSlider;
|
||||
fltk::ValueInput* offSlider;
|
||||
fltk::CheckButton* enableDPMSCheck;
|
||||
|
||||
static void cb_enableDPMSCheck(fltk::CheckButton*, void*) {
|
||||
if (enableDPMSCheck->value()) dpmsGroup->activate(); else dpmsGroup->deactivate();
|
||||
enableDPMSCheck->redraw();
|
||||
}
|
||||
|
||||
|
||||
static void cb_Apply(fltk::Button*, void*) {
|
||||
writeConfiguration();
|
||||
}
|
||||
|
||||
fltk::Window* saverWindow;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
fltk::Window* w;
|
||||
//fl_init_locale_support("escrsaverconf", PREFIX"/share/locale");
|
||||
{fltk::Window* o = mainWindow = new fltk::Window(300, 420, _("Screensaver settings"));
|
||||
w = o;
|
||||
o->set_vertical();
|
||||
o->callback((fltk::Callback*)cb_mainWindow);
|
||||
o->begin();
|
||||
{fltk::Group* o = new fltk::Group(10, 185, 280, 45, "Screensaver");
|
||||
o->box(fltk::ENGRAVED_BOX);
|
||||
o->align(fltk::ALIGN_TOP|fltk::ALIGN_LEFT);
|
||||
o->begin();
|
||||
{fltk::InputBrowser* o = saversList = new fltk::InputBrowser(10, 10, 155, 25);
|
||||
o->callback((fltk::Callback*)cb_saversList);
|
||||
o->align(fltk::ALIGN_TOP|fltk::ALIGN_LEFT);
|
||||
//o->type(1);
|
||||
getScreenhacks();
|
||||
fillSaversList(o);
|
||||
}
|
||||
{fltk::Group* o = new fltk::Group(165, 5, 105, 35);
|
||||
o->begin();
|
||||
{fltk::ValueInput* o = timeoutSlider = new fltk::ValueInput(65, 5, 40, 25, "Timeout:");
|
||||
o->maximum(60);
|
||||
o->step(1);
|
||||
o->value(1);
|
||||
o->align(fltk::ALIGN_LEFT|fltk::ALIGN_CLIP|fltk::ALIGN_WRAP);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
{fltk::Group* o = new fltk::Group(10, 255, 280, 115, "DPMS");
|
||||
o->box(fltk::ENGRAVED_BOX);
|
||||
o->align(fltk::ALIGN_TOP|fltk::ALIGN_LEFT);
|
||||
o->begin();
|
||||
{fltk::Group* o = dpmsGroup = new fltk::Group(70, 0, 205, 108);
|
||||
o->deactivate();
|
||||
o->begin();
|
||||
{fltk::ValueInput* o = standbySlider = new fltk::ValueInput(160, 10, 40, 25, "Standby:");
|
||||
o->maximum(60);
|
||||
o->step(1);
|
||||
o->value(10);
|
||||
o->align(fltk::ALIGN_LEFT|fltk::ALIGN_WRAP);
|
||||
}
|
||||
{fltk::ValueInput* o = suspendSlider = new fltk::ValueInput(160, 45, 40, 25, "Suspend:");
|
||||
o->maximum(60);
|
||||
o->step(1);
|
||||
o->value(15);
|
||||
o->align(fltk::ALIGN_LEFT|fltk::ALIGN_WRAP);
|
||||
}
|
||||
{fltk::ValueInput* o = offSlider = new fltk::ValueInput(160, 80, 40, 25, "Off:");
|
||||
o->maximum(60);
|
||||
o->step(1);
|
||||
o->value(20);
|
||||
o->align(fltk::ALIGN_LEFT|fltk::ALIGN_WRAP);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
{fltk::CheckButton* o = enableDPMSCheck = new fltk::CheckButton(10, 45, 145, 25, "Enabled");
|
||||
o->callback((fltk::Callback*)cb_enableDPMSCheck);
|
||||
o->align(fltk::ALIGN_LEFT|fltk::ALIGN_INSIDE|fltk::ALIGN_WRAP);
|
||||
}
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(10, 10, 55, 35);
|
||||
fltk::xpmImage *img = new fltk::xpmImage((const char**)energy_xpm);
|
||||
o->image(img);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
// {fltk::Button* o = new fltk::Button(0, 380, 90, 25, "&OK");
|
||||
// o->callback((fltk::Callback*)cb_OK);
|
||||
// }
|
||||
{fltk::Button* o = new fltk::Button(100, 380, 90, 25, "&Apply");
|
||||
o->callback((fltk::Callback*)cb_Apply);
|
||||
}
|
||||
{fltk::Button* o = new fltk::Button(200, 380, 90, 25, "&Close");
|
||||
o->callback((fltk::Callback*)cb_Cancel);
|
||||
}
|
||||
{fltk::Group* o = new fltk::Group(45, 5, 200, 165);
|
||||
o->begin();
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(10, 6, 180, 131);
|
||||
o->box(fltk::UP_BOX);
|
||||
}
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(20, 15, 160, 110);
|
||||
o->box(fltk::DOWN_BOX);
|
||||
}
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(70, 137, 59, 3);
|
||||
o->box(fltk::THIN_UP_BOX);
|
||||
}
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(52, 140, 95, 12);
|
||||
o->box(fltk::UP_BOX);
|
||||
}
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(164, 127, 15, 6);
|
||||
o->box(fltk::THIN_UP_BOX);
|
||||
}
|
||||
{fltk::InvisibleBox* o = new fltk::InvisibleBox(157, 128, 2, 4);
|
||||
o->set_vertical();
|
||||
o->box(fltk::FLAT_BOX);
|
||||
o->color(fltk::GREEN);
|
||||
}
|
||||
{fltk::Window* o = saverWindow = new fltk::Window(22, 17, 156, 106);
|
||||
o->box(fltk::FLAT_BOX);
|
||||
o->color(fltk::BLACK);
|
||||
o->end();
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
readConfiguration();
|
||||
cb_enableDPMSCheck(enableDPMSCheck, 0); //deactivate controls if it's off
|
||||
mainWindow->end();
|
||||
mainWindow->show();
|
||||
startSaverPreview(); //preview active saver
|
||||
return fltk::run();
|
||||
}
|
||||
117
esvrconf/escrsaverconf.fl
Executable file
117
esvrconf/escrsaverconf.fl
Executable file
@@ -0,0 +1,117 @@
|
||||
# data file for the FLTK User Interface Designer (FLUID)
|
||||
version 2.0100
|
||||
images_dir ./
|
||||
header_name {.h}
|
||||
code_name {.cpp}
|
||||
gridx 5
|
||||
gridy 5
|
||||
snap 3
|
||||
decl {\#include "escreensaver.h"} {}
|
||||
|
||||
Function {main(int argc, char **argv)} {open return_type int
|
||||
} {
|
||||
code {//fl_init_locale_support("escrsaverconf", PREFIX"/share/locale");} {}
|
||||
{fltk::Window} mainWindow {
|
||||
label {Screensaver settings}
|
||||
callback {clearOnExit();} open
|
||||
xywh {401 74 300 420} visible
|
||||
} {
|
||||
{fltk::Group} {} {
|
||||
label Screensaver open
|
||||
xywh {10 185 280 45} align 5 box ENGRAVED_BOX
|
||||
} {
|
||||
{fltk::Choice} saversList {
|
||||
callback {startSaverPreview();}
|
||||
xywh {10 10 155 25} align 5
|
||||
extra_code {o->type(1); getScreenhacks();
|
||||
fillSaversList(o);}
|
||||
class {fltk::InputBrowser}
|
||||
} {}
|
||||
{fltk::Group} {} {open
|
||||
xywh {165 5 105 35}
|
||||
} {
|
||||
{fltk::ValueInput} timeoutSlider {
|
||||
label {Timeout:}
|
||||
xywh {65 5 40 25} align 196 maximum 60 step 1 value 1
|
||||
}
|
||||
}
|
||||
}
|
||||
{fltk::Button} {} {
|
||||
label {&OK}
|
||||
callback {writeConfiguration(); clearOnExit();}
|
||||
xywh {0 380 90 25}
|
||||
}
|
||||
{fltk::Button} {} {
|
||||
label {&Cancel}
|
||||
callback {clearOnExit();}
|
||||
xywh {200 380 90 25}
|
||||
}
|
||||
{fltk::Group} {} {
|
||||
label DPMS open
|
||||
xywh {10 255 280 115} align 5 box ENGRAVED_BOX
|
||||
} {
|
||||
{fltk::Group} dpmsGroup {open
|
||||
xywh {70 0 205 108} deactivate
|
||||
} {
|
||||
{fltk::ValueInput} standbySlider {
|
||||
label {Standby:}
|
||||
xywh {160 10 40 25} align 132 maximum 60 step 1 value 10
|
||||
}
|
||||
{fltk::ValueInput} suspendSlider {
|
||||
label {Suspend:}
|
||||
xywh {160 45 40 25} align 132 maximum 60 step 1 value 15
|
||||
}
|
||||
{fltk::ValueInput} offSlider {
|
||||
label {Off:}
|
||||
xywh {160 80 40 25} align 132 maximum 60 step 1 value 20
|
||||
}
|
||||
}
|
||||
{fltk::CheckButton} enableDPMSCheck {
|
||||
label Enabled
|
||||
callback {if (enableDPMSCheck->value()) dpmsGroup->activate(); else dpmsGroup->deactivate();}
|
||||
xywh {10 45 145 25} align 148
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {10 10 55 35} image {icons/energy.xpm}
|
||||
}
|
||||
}
|
||||
{fltk::Button} {} {
|
||||
label {&Apply}
|
||||
callback {writeConfiguration();}
|
||||
xywh {100 380 90 25}
|
||||
}
|
||||
{fltk::Group} {} {open
|
||||
xywh {45 5 200 165}
|
||||
} {
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {10 6 180 131} box UP_BOX
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {20 15 160 110} box DOWN_BOX
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {70 137 59 3} box THIN_UP_BOX
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {52 140 95 12} box UP_BOX
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {164 127 15 6} box THIN_UP_BOX
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {157 128 2 4} box FLAT_BOX color 2
|
||||
}
|
||||
{fltk::InvisibleBox} saverWindow {
|
||||
xywh {22 17 156 106} box FLAT_BOX color 32
|
||||
extra_code {o->end();}
|
||||
class Fl_Window
|
||||
}
|
||||
}
|
||||
}
|
||||
code {readConfiguration();
|
||||
mainWindow->end();
|
||||
mainWindow->show();
|
||||
startSaverPreview(); //preview active saver
|
||||
//return fltk::run();} {selected
|
||||
}
|
||||
}
|
||||
128
esvrconf/escrsaverconf.fld
Executable file
128
esvrconf/escrsaverconf.fld
Executable file
@@ -0,0 +1,128 @@
|
||||
# data file for the FLTK User Interface Designer (FLUID)
|
||||
version 2.0030
|
||||
images_dir ./
|
||||
header_name {.h}
|
||||
code_name {.cpp}
|
||||
gridx 5
|
||||
gridy 5
|
||||
snap 3
|
||||
decl {\#include "escreensaver.h"} {}
|
||||
|
||||
Function {main(int argc, char **argv)} {open return_type int
|
||||
} {
|
||||
code {fl_init_locale_support("escrsaverconf", PREFIX"/share/locale");} {}
|
||||
Fl_Window mainWindow {
|
||||
label {Screensaver settings}
|
||||
callback {clearOnExit();} open
|
||||
xywh {329 68 285 374} hide
|
||||
extra_code {o->label(_(o->label()));}
|
||||
} {
|
||||
Fl_Group {} {
|
||||
label Screensaver open
|
||||
xywh {5 185 275 55} align 5 box ENGRAVED_BOX
|
||||
extra_code {o->label(_(o->label()));}
|
||||
} {
|
||||
Fl_Choice saversList {
|
||||
callback {startSaverPreview();} open
|
||||
xywh {7 15 158 23} align 5
|
||||
extra_code {\#include <efltk/Fl_Input_Browser.h>
|
||||
o->type(1); getScreenhacks();
|
||||
fillSaversList(o);}
|
||||
class Fl_Input_Browser
|
||||
} {}
|
||||
Fl_Group {} {open
|
||||
xywh {175 5 95 45}
|
||||
} {
|
||||
Fl_Value_Input timeoutSlider {
|
||||
label {Timeout:}
|
||||
xywh {55 9 40 25} align 196 maximum 60 step 1 value 1
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {&OK}
|
||||
callback {writeConfiguration(); clearOnExit();}
|
||||
xywh {30 345 80 25}
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {&Cancel}
|
||||
callback {clearOnExit();} selected
|
||||
xywh {200 345 80 25}
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
Fl_Group {} {
|
||||
label DPMS open
|
||||
xywh {5 260 275 80} align 5 box ENGRAVED_BOX
|
||||
extra_code {o->label(_(o->label()));}
|
||||
} {
|
||||
Fl_Group dpmsGroup {open
|
||||
xywh {130 2 140 74} deactivate
|
||||
} {
|
||||
Fl_Value_Input standbySlider {
|
||||
label {Standby:}
|
||||
xywh {100 2 40 20} align 132 maximum 60 step 1 value 10
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
Fl_Value_Input suspendSlider {
|
||||
label {Suspend:}
|
||||
xywh {100 27 40 20} align 132 maximum 60 step 1 value 15
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
Fl_Value_Input offSlider {
|
||||
label {Off:}
|
||||
xywh {100 52 40 20} align 132 maximum 60 step 1 value 20
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
}
|
||||
Fl_Check_Button enableDPMSCheck {
|
||||
label Enabled
|
||||
callback {if (enableDPMSCheck->value()) dpmsGroup->activate(); else dpmsGroup->deactivate();}
|
||||
xywh {60 25 105 25} align 148
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {5 15 55 35} image {icons/energy.xpm}
|
||||
}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {&Apply}
|
||||
callback {writeConfiguration();}
|
||||
xywh {115 345 80 25}
|
||||
extra_code {o->label(_(o->label()));}
|
||||
}
|
||||
Fl_Group {} {open
|
||||
xywh {40 5 205 165}
|
||||
} {
|
||||
Fl_Box {} {
|
||||
xywh {10 6 180 131} box UP_BOX
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {20 15 160 110} box DOWN_BOX
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {70 137 59 3} box THIN_UP_BOX
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {52 140 95 12} box UP_BOX
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {164 127 15 6} box THIN_UP_BOX
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {157 128 2 4} box FLAT_BOX color 2
|
||||
}
|
||||
Fl_Box saverWindow {
|
||||
xywh {22 17 156 106} box FLAT_BOX color 32
|
||||
extra_code {o->end();}
|
||||
class Fl_Window
|
||||
}
|
||||
}
|
||||
}
|
||||
code {readConfiguration();
|
||||
mainWindow->end();
|
||||
mainWindow->show();
|
||||
startSaverPreview(); //preview active saver
|
||||
return Fl::run();} {}
|
||||
}
|
||||
33
esvrconf/escrsaverconf.h
Executable file
33
esvrconf/escrsaverconf.h
Executable file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* Screensaver configuration
|
||||
* Part of Equinox Desktop Environment (EDE).
|
||||
* Copyright (c) 2000-2006 EDE Authors.
|
||||
*
|
||||
* This program is licenced under terms of the
|
||||
* GNU General Public Licence version 2 or newer.
|
||||
* See COPYING for details.
|
||||
*/
|
||||
|
||||
#ifndef escrsaverconf_h
|
||||
#define escrsaverconf_h
|
||||
#include <fltk/Menu.h>
|
||||
#include <fltk/Window.h>
|
||||
extern fltk::Window* mainWindow;
|
||||
#include <fltk/Group.h>
|
||||
#include <fltk/InputBrowser.h>
|
||||
extern fltk::InputBrowser* saversList;
|
||||
#include <fltk/ValueInput.h>
|
||||
extern fltk::ValueInput* timeoutSlider;
|
||||
#include <fltk/Button.h>
|
||||
extern fltk::Group* dpmsGroup;
|
||||
extern fltk::ValueInput* standbySlider;
|
||||
extern fltk::ValueInput* suspendSlider;
|
||||
extern fltk::ValueInput* offSlider;
|
||||
#include <fltk/CheckButton.h>
|
||||
extern fltk::CheckButton* enableDPMSCheck;
|
||||
#include <fltk/InvisibleBox.h>
|
||||
extern fltk::Window* saverWindow;
|
||||
int main(int argc, char **argv);
|
||||
#endif
|
||||
307
esvrconf/icons/energy.xpm
Executable file
307
esvrconf/icons/energy.xpm
Executable file
@@ -0,0 +1,307 @@
|
||||
/* XPM */
|
||||
static char * energy_xpm[] = {
|
||||
"48 48 256 2",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"+ c #4271D0",
|
||||
"@ c #4777D0",
|
||||
"# c #4D81BE",
|
||||
"$ c #3C6FB7",
|
||||
"% c #4977D8",
|
||||
"& c #5CA24B",
|
||||
"* c #5A9A7E",
|
||||
"= c #61AC4A",
|
||||
"- c #65B33B",
|
||||
"; c #4E86A9",
|
||||
"> c #4579C2",
|
||||
", c #3966C4",
|
||||
"' c #4170DC",
|
||||
") c #5BA52C",
|
||||
"! c #549C48",
|
||||
"~ c #65BC0E",
|
||||
"{ c #67BF00",
|
||||
"] c #559953",
|
||||
"^ c #3A63E4",
|
||||
"/ c #58A723",
|
||||
"( c #55A42B",
|
||||
"_ c #56A71A",
|
||||
": c #64B713",
|
||||
"< c #3F7695",
|
||||
"[ c #5EAB26",
|
||||
"} c #519362",
|
||||
"| c #58A63A",
|
||||
"1 c #4A6FB3",
|
||||
"2 c #55A226",
|
||||
"3 c #539D3D",
|
||||
"4 c #559D33",
|
||||
"5 c #4B8B5E",
|
||||
"6 c #519533",
|
||||
"7 c #498A75",
|
||||
"8 c #3559F9",
|
||||
"9 c #529E27",
|
||||
"0 c #40A01E",
|
||||
"a c #57A823",
|
||||
"b c #599F3A",
|
||||
"c c #35699B",
|
||||
"d c #3B6CAB",
|
||||
"e c #53954A",
|
||||
"f c #3F77A5",
|
||||
"g c #3C6AA6",
|
||||
"h c #4E914F",
|
||||
"i c #539A43",
|
||||
"j c #2E8947",
|
||||
"k c #9CB232",
|
||||
"l c #74AF1B",
|
||||
"m c #35718B",
|
||||
"n c #458760",
|
||||
"o c #2F5DBB",
|
||||
"p c #3864B4",
|
||||
"q c #4D9347",
|
||||
"r c #509739",
|
||||
"s c #4D9847",
|
||||
"t c #4B8C49",
|
||||
"u c #448F4C",
|
||||
"v c #2B8336",
|
||||
"w c #FFFE5D",
|
||||
"x c #BBB859",
|
||||
"y c #2B60AB",
|
||||
"z c #4D923A",
|
||||
"A c #498F42",
|
||||
"B c #497870",
|
||||
"C c #2850B7",
|
||||
"D c #2F6094",
|
||||
"E c #46895A",
|
||||
"F c #448546",
|
||||
"G c #326C73",
|
||||
"H c #498F3D",
|
||||
"I c #91AF4F",
|
||||
"J c #FFFF68",
|
||||
"K c #F8D645",
|
||||
"L c #257433",
|
||||
"M c #3B727C",
|
||||
"N c #3260AC",
|
||||
"O c #325DA6",
|
||||
"P c #2E5AA5",
|
||||
"Q c #42874F",
|
||||
"R c #33795E",
|
||||
"S c #2A52C4",
|
||||
"T c #448954",
|
||||
"U c #487F56",
|
||||
"V c #488950",
|
||||
"W c #4B8A52",
|
||||
"X c #196C58",
|
||||
"Y c #FFF253",
|
||||
"Z c #6E6C32",
|
||||
"` c #E2D957",
|
||||
" . c #6B9142",
|
||||
".. c #236C8B",
|
||||
"+. c #3D7B5C",
|
||||
"@. c #3164A7",
|
||||
"#. c #325DAA",
|
||||
"$. c #2B7A5B",
|
||||
"%. c #206B5F",
|
||||
"&. c #FFF43E",
|
||||
"*. c #003A2E",
|
||||
"=. c #AEC865",
|
||||
"-. c #DAC32C",
|
||||
";. c #012592",
|
||||
">. c #073CCA",
|
||||
",. c #0E4BC2",
|
||||
"'. c #104BB7",
|
||||
"). c #2E58A7",
|
||||
"!. c #1241B3",
|
||||
"~. c #2F6E5F",
|
||||
"{. c #2B55B4",
|
||||
"]. c #2D57AF",
|
||||
"^. c #31765A",
|
||||
"/. c #5F8D4E",
|
||||
"(. c #7A916B",
|
||||
"_. c #91A480",
|
||||
":. c #FFFF44",
|
||||
"<. c #AE9B4E",
|
||||
"[. c #004778",
|
||||
"}. c #FFFF4E",
|
||||
"|. c #C1BC6B",
|
||||
"1. c #89968A",
|
||||
"2. c #708287",
|
||||
"3. c #4A5F88",
|
||||
"4. c #395F9C",
|
||||
"5. c #2A51A2",
|
||||
"6. c #0032B2",
|
||||
"7. c #4163AB",
|
||||
"8. c #25686B",
|
||||
"9. c #2B4D9B",
|
||||
"0. c #2B599B",
|
||||
"a. c #234BA7",
|
||||
"b. c #2E5DA2",
|
||||
"c. c #337765",
|
||||
"d. c #136168",
|
||||
"e. c #FEED65",
|
||||
"f. c #D0BB4D",
|
||||
"g. c #F5D457",
|
||||
"h. c #EACC4D",
|
||||
"i. c #AEA94B",
|
||||
"j. c #022686",
|
||||
"k. c #558C3C",
|
||||
"l. c #E3D160",
|
||||
"m. c #FEE336",
|
||||
"n. c #FDE85B",
|
||||
"o. c #91894A",
|
||||
"p. c #24499B",
|
||||
"q. c #002BB5",
|
||||
"r. c #F8D52B",
|
||||
"s. c #3C7C53",
|
||||
"t. c #175687",
|
||||
"u. c #0637A7",
|
||||
"v. c #022CBF",
|
||||
"w. c #08438D",
|
||||
"x. c #095460",
|
||||
"y. c #013162",
|
||||
"z. c #163E97",
|
||||
"A. c #0006C2",
|
||||
"B. c #61746F",
|
||||
"C. c #CDB22B",
|
||||
"D. c #586A55",
|
||||
"E. c #0023B4",
|
||||
"F. c #013991",
|
||||
"G. c #00239C",
|
||||
"H. c #977D1A",
|
||||
"I. c #0023A3",
|
||||
"J. c #3C5CA7",
|
||||
"K. c #E8CB38",
|
||||
"L. c #000C90",
|
||||
"M. c #D4C853",
|
||||
"N. c #07296E",
|
||||
"O. c #185876",
|
||||
"P. c #FEE24A",
|
||||
"Q. c #08329E",
|
||||
"R. c #68788A",
|
||||
"S. c #ADAD7E",
|
||||
"T. c #305E56",
|
||||
"U. c #787850",
|
||||
"V. c #2C4887",
|
||||
"W. c #024C6E",
|
||||
"X. c #556D96",
|
||||
"Y. c #0011AA",
|
||||
"Z. c #24479E",
|
||||
"`. c #1B45A3",
|
||||
" + c #1D449C",
|
||||
".+ c #0018A8",
|
||||
"++ c #1D387A",
|
||||
"@+ c #000F6F",
|
||||
"#+ c #FFFD37",
|
||||
"$+ c #A99935",
|
||||
"%+ c #FFFE55",
|
||||
"&+ c #FFFF76",
|
||||
"*+ c #4A514C",
|
||||
"=+ c #EDD74C",
|
||||
"-+ c #948C30",
|
||||
";+ c #1439A2",
|
||||
">+ c #294B95",
|
||||
",+ c #003897",
|
||||
"'+ c #FFFE27",
|
||||
")+ c #232E47",
|
||||
"!+ c #013485",
|
||||
"~+ c #204692",
|
||||
"{+ c #0C3598",
|
||||
"]+ c #0026A8",
|
||||
"^+ c #0007B4",
|
||||
"/+ c #929768",
|
||||
"(+ c #000397",
|
||||
"_+ c #000B59",
|
||||
":+ c #0F2F8E",
|
||||
"<+ c #E8E45D",
|
||||
"[+ c #C9C662",
|
||||
"}+ c #1F4292",
|
||||
"|+ c #EECF1F",
|
||||
"1+ c #0006AB",
|
||||
"2+ c #617CA2",
|
||||
"3+ c #0014A4",
|
||||
"4+ c #001AB5",
|
||||
"5+ c #3D5789",
|
||||
"6+ c #001CA5",
|
||||
"7+ c #264E80",
|
||||
"8+ c #19409B",
|
||||
"9+ c #0F3B98",
|
||||
"0+ c #0D2E93",
|
||||
"a+ c #385170",
|
||||
"b+ c #012CAB",
|
||||
"c+ c #012AA4",
|
||||
"d+ c #DEC21D",
|
||||
"e+ c #0000B3",
|
||||
"f+ c #1B4A86",
|
||||
"g+ c #163A9C",
|
||||
"h+ c #183C9F",
|
||||
"i+ c #193D97",
|
||||
"j+ c #143A98",
|
||||
"k+ c #0D349D",
|
||||
"l+ c #000EBD",
|
||||
"m+ c #163793",
|
||||
"n+ c #103198",
|
||||
"o+ c #163696",
|
||||
"p+ c #123A9A",
|
||||
"q+ c #11349B",
|
||||
"r+ c #153E90",
|
||||
"s+ c #102E9E",
|
||||
"t+ c #00158D",
|
||||
"u+ c #062E98",
|
||||
"v+ c #123796",
|
||||
"w+ c #113A9D",
|
||||
"x+ c #00169B",
|
||||
"y+ c #022A97",
|
||||
"z+ c #0E3491",
|
||||
"A+ c #0D3294",
|
||||
"B+ c #113091",
|
||||
"C+ c #0E3191",
|
||||
"D+ c #113295",
|
||||
"E+ c #113592",
|
||||
"F+ c #12358D",
|
||||
"G+ c #344F9F",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" . . . . . . ",
|
||||
" . . . . . + @ # # # $ . . . . . ",
|
||||
" . . $ + % & * = - ; > # # # # @ % > . . ",
|
||||
" . , > ' * ) ! ~ { { @ ' @ @ ' @ ] & > @ , . ",
|
||||
" . . ^ ; / ( _ : , & { < ^ [ & ; } ~ : : ~ [ | 1 . . ",
|
||||
" . 2 ) 3 _ / 4 5 6 7 5 $ 8 ] 9 2 _ _ 4 4 | 4 ) 0 _ a b . ",
|
||||
" . c d e ) 3 ( < f a g ^ $ 3 h 5 3 b ! 3 3 i | j k l m < n . ",
|
||||
" . d o p ( q i e r _ 9 m o , n _ 4 s t s q e s u v w x v h < o . ",
|
||||
" . 1 y o h z t q 6 A B C , p p z D E F G H q t t j I J K L s M N p . ",
|
||||
" . O P o c z Q A H R S S p O N o T U D c B t V V W X Y Z ` ...+.O N P . ",
|
||||
" . N @.o c H n M G S N @.#.N o M A V t T $.$.%.%.X X &.*.=.-.;.>.,.'.'.. ",
|
||||
" . P ).O ).!.%.~.{.S {.#.).P ].).F +.R R ^./.(.I (._.:.<.[.X }.|.1.1.2.3.4.. ",
|
||||
" . 5.).P 6.7.1.8.M 9.0.C 5.).a.b.Q c.d.d.~.&.e.f.g.h.i.j.+ k.(.l.m.f.n.J o.. ",
|
||||
" . p.5.9.q._.r.f.o.q.+.s.t.6.a.u.v.w.x.` e.y.x.y.i.z.A.B.Y C.D.E.F.A.G.:.H.I.a.. ",
|
||||
" . a.5.!.J.K.L.M.N.0.%.O.U P.Q.R.:.3.S.r.C.I n.T.J U.x i.V.G.t.G W.X.:.U.Y.C Z.. ",
|
||||
" . `. +p..+f.++}.@+S.#+$+@+%+r.$+&+*+e.K &+f.f.Z =+%+-+++E.;+a.>+,+(.'+)+!+0.Z.~+p.. ",
|
||||
" . {+]+^+2.#+i.N./+J K.U.(.w -+:.=+(+1.m.n._+B C.w *+^+'+:+a.u.`.E.S.i.;.9. + + + +. ",
|
||||
" . |.<+[+w *+!+n.C.%+L.i.o.-+D.j.j.v.}+#+U..+O.n.|+1+2+K.3+4+5+Q.6+B P.[.7+`.8+8+9+. ",
|
||||
" . 9.0+B.a+h./+=+*+Q.a+b+6+!+N.F.!.u.c+=+d+++4+M.$+o.A.|.U.e+|.'+:.a+L.&.y.f+g+h+i+j+. ",
|
||||
" . 1 ;.b+q.G.*+G.E.k+b+8+h+7+7+;+i+I.2.r.$+1+X.o.x ++l+M.U.w '+_+3.:./+M.Z q.h+f+8+{+7.. ",
|
||||
" . Z.0+m+m+n+b+n+o+p+o+o+q+f+r+s+m+G.3.f.j.^+/+m.$+1+;.w #+D.(+E.3+t+f.w l.L.r+r+q+0+ +. ",
|
||||
" . u+p+v+w+{+v+w+n+w+v+{+w+z.r+n+q+z.c+x+u.6+R.C.(+b+V.r.@+^+;+o+z.]+e+(.-.G.k+s+j+y+J.. ",
|
||||
" . :+z+0+:+A+0+B+A+B+z+0+B+0+A+z+C+C+:+D+B+:+y+3+D+E+u+(+c+F+E+0+:+E+D+x+x+D+z+C+B+j.G+. ",
|
||||
" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
||||
63
esvrconf/locale/hu.po
Executable file
63
esvrconf/locale/hu.po
Executable file
@@ -0,0 +1,63 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: 2005-02-10 14:54+0100\n"
|
||||
"Last-Translator: Nemeth Otto <otto_nemeth@freemail.hu>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: escreensaver.cpp:385
|
||||
msgid "Couldn't fork screensaver subprocess."
|
||||
msgstr ""
|
||||
|
||||
#: escreensaver.cpp:397
|
||||
msgid "Couldn't fork shell subprocess."
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:377
|
||||
msgid "Screensaver settings"
|
||||
msgstr "Képernyőkímélő beállítások"
|
||||
|
||||
#: escrsaverconf.cpp:382
|
||||
msgid "Screensaver"
|
||||
msgstr "Képernyőkímélő"
|
||||
|
||||
#: escrsaverconf.cpp:399
|
||||
msgid "Timeout:"
|
||||
msgstr "Idö:"
|
||||
|
||||
#: escrsaverconf.cpp:412
|
||||
msgid "&OK"
|
||||
msgstr "&OK"
|
||||
|
||||
#: escrsaverconf.cpp:418
|
||||
msgid "&Cancel"
|
||||
msgstr "Mégs&em"
|
||||
|
||||
#: escrsaverconf.cpp:424
|
||||
msgid "DPMS"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:433
|
||||
msgid "Standby:"
|
||||
msgstr "Készenlét:"
|
||||
|
||||
#: escrsaverconf.cpp:441
|
||||
msgid "Suspend:"
|
||||
msgstr "Pihen:"
|
||||
|
||||
#: escrsaverconf.cpp:449
|
||||
msgid "Off:"
|
||||
msgstr "Kikapcsol:"
|
||||
|
||||
#: escrsaverconf.cpp:459
|
||||
msgid "Enabled"
|
||||
msgstr "Engedélyez"
|
||||
|
||||
#: escrsaverconf.cpp:474
|
||||
msgid "&Apply"
|
||||
msgstr "&Alkalmaz"
|
||||
|
||||
67
esvrconf/locale/messages.pot
Executable file
67
esvrconf/locale/messages.pot
Executable file
@@ -0,0 +1,67 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2002-04-21 14:09+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: escreensaver.cpp:385
|
||||
msgid "Couldn't fork screensaver subprocess."
|
||||
msgstr ""
|
||||
|
||||
#: escreensaver.cpp:397
|
||||
msgid "Couldn't fork shell subprocess."
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:377
|
||||
msgid "Screensaver settings"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:382
|
||||
msgid "Screensaver"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:399
|
||||
msgid "Timeout:"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:412
|
||||
msgid "&OK"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:418
|
||||
msgid "&Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:424
|
||||
msgid "DPMS"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:433
|
||||
msgid "Standby:"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:441
|
||||
msgid "Suspend:"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:449
|
||||
msgid "Off:"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:459
|
||||
msgid "Enabled"
|
||||
msgstr ""
|
||||
|
||||
#: escrsaverconf.cpp:474
|
||||
msgid "&Apply"
|
||||
msgstr ""
|
||||
67
esvrconf/locale/ru.po
Executable file
67
esvrconf/locale/ru.po
Executable file
@@ -0,0 +1,67 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"POT-Creation-Date: 2002-04-21 14:09+0200\n"
|
||||
"PO-Revision-Date: 2002-11-28 HO:MI+ZONE\n"
|
||||
"Last-Translator: aabbvv <null@list.ru>\n"
|
||||
"Language-Team: RUSSIAN <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=koi8-r\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: escreensaver.cpp:385
|
||||
msgid "Couldn't fork screensaver subprocess."
|
||||
msgstr "<22><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: escreensaver.cpp:397
|
||||
msgid "Couldn't fork shell subprocess."
|
||||
msgstr "<22><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: escrsaverconf.cpp:377
|
||||
msgid "Screensaver settings"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: escrsaverconf.cpp:382
|
||||
msgid "Screensaver"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: escrsaverconf.cpp:399
|
||||
msgid "Timeout:"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD>:"
|
||||
|
||||
#: escrsaverconf.cpp:412
|
||||
msgid "&OK"
|
||||
msgstr "&OK"
|
||||
|
||||
#: escrsaverconf.cpp:418
|
||||
msgid "&Cancel"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: escrsaverconf.cpp:424
|
||||
msgid "DPMS"
|
||||
msgstr "DMPS"
|
||||
|
||||
#: escrsaverconf.cpp:433
|
||||
msgid "Standby:"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
||||
|
||||
#: escrsaverconf.cpp:441
|
||||
msgid "Suspend:"
|
||||
msgstr "<22><><EFBFBD>:"
|
||||
|
||||
#: escrsaverconf.cpp:449
|
||||
msgid "Off:"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:"
|
||||
|
||||
#: escrsaverconf.cpp:459
|
||||
msgid "Enabled"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: escrsaverconf.cpp:474
|
||||
msgid "&Apply"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
66
esvrconf/locale/sk.po
Executable file
66
esvrconf/locale/sk.po
Executable file
@@ -0,0 +1,66 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: esvrconf 1.0\n"
|
||||
"POT-Creation-Date: 2002-04-21 14:09+0200\n"
|
||||
"PO-Revision-Date: 2002-04-21 14:50+0200\n"
|
||||
"Last-Translator: Martin Pekar <cortex@nextra.sk>\n"
|
||||
"Language-Team: Slovak <LL@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: escreensaver.cpp:385
|
||||
msgid "Couldn't fork screensaver subprocess."
|
||||
msgstr "Nemôžem spustiť podproces šetriča obrazovky"
|
||||
|
||||
#: escreensaver.cpp:397
|
||||
msgid "Couldn't fork shell subprocess."
|
||||
msgstr "Nemôžem spustiť podproces shelu."
|
||||
|
||||
#: escrsaverconf.cpp:377
|
||||
msgid "Screensaver settings"
|
||||
msgstr "Nastavenie šetriča obrazovky"
|
||||
|
||||
#: escrsaverconf.cpp:382
|
||||
msgid "Screensaver"
|
||||
msgstr "Šetrič obrazovky"
|
||||
|
||||
#: escrsaverconf.cpp:399
|
||||
msgid "Timeout:"
|
||||
msgstr "Čas:"
|
||||
|
||||
#: escrsaverconf.cpp:412
|
||||
msgid "&OK"
|
||||
msgstr "&OK"
|
||||
|
||||
#: escrsaverconf.cpp:418
|
||||
msgid "&Cancel"
|
||||
msgstr "&Zrušiť"
|
||||
|
||||
#: escrsaverconf.cpp:424
|
||||
msgid "DPMS"
|
||||
msgstr "DPMS"
|
||||
|
||||
#: escrsaverconf.cpp:433
|
||||
msgid "Standby:"
|
||||
msgstr "Standby:"
|
||||
|
||||
#: escrsaverconf.cpp:441
|
||||
msgid "Suspend:"
|
||||
msgstr "Suspend:"
|
||||
|
||||
#: escrsaverconf.cpp:449
|
||||
msgid "Off:"
|
||||
msgstr "Off:"
|
||||
|
||||
#: escrsaverconf.cpp:459
|
||||
msgid "Enabled"
|
||||
msgstr "Povolené"
|
||||
|
||||
#: escrsaverconf.cpp:474
|
||||
msgid "&Apply"
|
||||
msgstr "&Použiť"
|
||||
Reference in New Issue
Block a user