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:
22
edisplayconf/Makefile
Executable file
22
edisplayconf/Makefile
Executable file
@@ -0,0 +1,22 @@
|
||||
|
||||
CPPFILES = edisplayconf.cpp conf.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp ../edelib2/Run.cpp ../edelib2/process.cpp ../edelib2/pty.cpp
|
||||
TARGET = edisplayconf
|
||||
|
||||
POFILES = locale/ru.po\
|
||||
locale/sr.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
|
||||
|
130
edisplayconf/conf.cpp
Executable file
130
edisplayconf/conf.cpp
Executable file
@@ -0,0 +1,130 @@
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* X server properties
|
||||
* 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 "edisplayconf.h"
|
||||
#include "conf.h"
|
||||
#include "exset.h"
|
||||
#include "../edelib2/Config.h" //#include <efltk/Fl_Config.h>
|
||||
// if I move Config.h above exset.h, I get "'Font' does not name a type" in Xlib.h
|
||||
|
||||
using namespace edelib;
|
||||
|
||||
|
||||
extern edisplayconf *app;
|
||||
Config config(Config::find_file("ede.conf",1));
|
||||
Exset xset;
|
||||
|
||||
int get_value(const char *key, int def_value)
|
||||
{
|
||||
static int val;
|
||||
config.read(key, val, def_value);
|
||||
return val;
|
||||
}
|
||||
|
||||
void do_xset()
|
||||
{
|
||||
xset.set_mouse((int)app->slider_accel->value(),(int)app->slider_thresh->value());
|
||||
xset.set_bell((int)app->slider_volume->value(),(int)app->slider_pitch->value(),(int)app->slider_duration->value());
|
||||
xset.set_keybd((int)app->check_autorepeat->value(), (int)app->slider_click->value());
|
||||
xset.set_pattern((int)app->slider_delay->value(), (int)app->slider_pattern->value());
|
||||
xset.set_check_blank((int)app->check_blanking->value());
|
||||
xset.set_blank((int)app->radio_blank->value());
|
||||
|
||||
}
|
||||
|
||||
|
||||
void read_disp_configuration()
|
||||
{
|
||||
config.set_section("Mouse");
|
||||
app->slider_accel->value(get_value("Accel",4)); // Default 4
|
||||
app->slider_thresh->value(get_value("Thresh",4)); // Default 4
|
||||
config.set_section("Bell");
|
||||
app->slider_volume->value(get_value("Volume",50)); // default 50
|
||||
app->slider_pitch->value(get_value("Pitch",440)); // Default 440
|
||||
app->slider_duration->value(get_value("Duration",200)); // Default 200
|
||||
config.set_section("Keyboard");
|
||||
app->check_autorepeat->value(get_value("Repeat",1)); // Default 1
|
||||
app->slider_click->value(get_value("ClickVolume",50)); // Default 50
|
||||
app->slider_delay->value(get_value("Delay",15)); // Default 15
|
||||
config.set_section("Screen");
|
||||
app->check_blanking->value(get_value("CheckBlank",1)); // Default 1
|
||||
app->slider_pattern->value(get_value("Pattern",2)); // Default = 2
|
||||
|
||||
int pattern = get_value("RadioPattern",0);
|
||||
int blank = get_value("RadioBlank",1);
|
||||
app->radio_blank->value(blank); // Default 1
|
||||
app->radio_pattern->value(pattern); // Default 1
|
||||
|
||||
|
||||
if( pattern )
|
||||
app->slider_pattern->activate();
|
||||
else
|
||||
app->slider_pattern->deactivate();
|
||||
}
|
||||
|
||||
void write_configuration()
|
||||
{
|
||||
config.set_section(config.create_section("Mouse"));
|
||||
config.write("Accel",(int)app->slider_accel->value());
|
||||
config.write("Thresh",(int)app->slider_thresh->value());
|
||||
|
||||
config.set_section(config.create_section("Bell"));
|
||||
config.write("Volume",(int)app->slider_volume->value());
|
||||
config.write("Pitch",(int)app->slider_pitch->value());
|
||||
config.write("Duration",(int)app->slider_duration->value());
|
||||
|
||||
config.set_section(config.create_section("Keyboard"));
|
||||
config.write("Repeat",(int)app->check_autorepeat->value());
|
||||
config.write("ClickVolume",(int)app->slider_click->value());
|
||||
|
||||
config.set_section(config.create_section("Screen"));
|
||||
config.write("Delay",(int)app->slider_delay->value());
|
||||
config.write("Pattern",(int)app->slider_pattern->value());
|
||||
config.write("CheckBlank",(int)app->check_blanking->value());
|
||||
config.write("RadioBlank", (int)app->radio_blank->value());
|
||||
config.write("RadioPattern",(int) app->radio_pattern->value());
|
||||
|
||||
config.flush();
|
||||
do_xset();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void cancelCB()
|
||||
{
|
||||
app->_finish = true;
|
||||
}
|
||||
|
||||
void testbellCB()
|
||||
{
|
||||
xset.test_bell();
|
||||
}
|
||||
|
||||
void TestBlankCB()
|
||||
{
|
||||
xset.test_blank();
|
||||
}
|
||||
|
||||
|
||||
void applyCB()
|
||||
{
|
||||
write_configuration();
|
||||
}
|
||||
|
||||
void okCB()
|
||||
{
|
||||
|
||||
write_configuration();
|
||||
app->_finish = true;
|
||||
}
|
||||
|
11
edisplayconf/conf.h
Executable file
11
edisplayconf/conf.h
Executable file
@@ -0,0 +1,11 @@
|
||||
#ifndef conf_h
|
||||
#define conf_h
|
||||
|
||||
void cancelCB();
|
||||
void testbellCB();
|
||||
void TestBlankCB();
|
||||
void applyCB();
|
||||
void okCB();
|
||||
void read_disp_configuration();
|
||||
|
||||
#endif
|
243
edisplayconf/edisplayconf.cpp
Executable file
243
edisplayconf/edisplayconf.cpp
Executable file
@@ -0,0 +1,243 @@
|
||||
// generated by Fast Light User Interface Designer (fluid) version 2.0100
|
||||
|
||||
#include "edisplayconf.h"
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
* X server properties
|
||||
* 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 <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "conf.h"
|
||||
#include "../edelib2/NLS.h"
|
||||
//#include <efltk/Fl_Util.h>
|
||||
#include <fltk/run.h>
|
||||
|
||||
inline void edisplayconf::cb_win_i(fltk::Window*, void*) {
|
||||
_finish = true;
|
||||
}
|
||||
void edisplayconf::cb_win(fltk::Window* o, void* v) {
|
||||
((edisplayconf*)(o->user_data()))->cb_win_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_Test_i(fltk::Button*, void*) {
|
||||
testbellCB();
|
||||
}
|
||||
void edisplayconf::cb_Test(fltk::Button* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->parent()->parent()->user_data()))->cb_Test_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_but_activate_i(fltk::Button*, void*) {
|
||||
TestBlankCB();
|
||||
}
|
||||
void edisplayconf::cb_but_activate(fltk::Button* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->parent()->parent()->user_data()))->cb_but_activate_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_radio_blank_i(fltk::RadioButton*, void*) {
|
||||
radioCB();
|
||||
}
|
||||
void edisplayconf::cb_radio_blank(fltk::RadioButton* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_radio_blank_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_radio_pattern_i(fltk::RadioButton*, void*) {
|
||||
radioCB();
|
||||
}
|
||||
void edisplayconf::cb_radio_pattern(fltk::RadioButton* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->parent()->parent()->parent()->user_data()))->cb_radio_pattern_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_Cancel_i(fltk::Button*, void*) {
|
||||
cancelCB();
|
||||
}
|
||||
void edisplayconf::cb_Cancel(fltk::Button* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->user_data()))->cb_Cancel_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_but_kbd_apply_i(fltk::Button*, void*) {
|
||||
applyCB();
|
||||
}
|
||||
void edisplayconf::cb_but_kbd_apply(fltk::Button* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->user_data()))->cb_but_kbd_apply_i(o,v);
|
||||
}
|
||||
|
||||
inline void edisplayconf::cb_OK_i(fltk::ReturnButton*, void*) {
|
||||
okCB();
|
||||
}
|
||||
void edisplayconf::cb_OK(fltk::ReturnButton* o, void* v) {
|
||||
((edisplayconf*)(o->parent()->user_data()))->cb_OK_i(o,v);
|
||||
}
|
||||
|
||||
edisplayconf::edisplayconf() {
|
||||
fltk::Window* w;
|
||||
{fltk::Window* o = win = new fltk::Window(265, 335, "Display configuration");
|
||||
w = o;
|
||||
o->set_vertical();
|
||||
o->callback((fltk::Callback*)cb_win, (void*)(this));
|
||||
o->begin();
|
||||
{fltk::TabGroup* o = new fltk::TabGroup(5, 5, 260, 285);
|
||||
o->set_vertical();
|
||||
o->begin();
|
||||
{fltk::Group* o = group_mouse = new fltk::Group(0, 24, 255, 260, "Mouse");
|
||||
o->set_vertical();
|
||||
o->align(fltk::ALIGN_LEFT);
|
||||
o->begin();
|
||||
{fltk::ValueSlider* o = slider_accel = new fltk::ValueSlider(20, 30, 220, 18, "Acceleration");
|
||||
o->maximum(10);
|
||||
o->step(1);
|
||||
o->value(2);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
{fltk::ValueSlider* o = slider_thresh = new fltk::ValueSlider(20, 75, 220, 18, "Threshold (pixels)");
|
||||
o->maximum(20);
|
||||
o->step(1);
|
||||
o->value(4);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
{fltk::Group* o = group_bell = new fltk::Group(0, 25, 255, 259, "Bell");
|
||||
o->set_vertical();
|
||||
o->hide();
|
||||
o->begin();
|
||||
{fltk::ValueSlider* o = slider_volume = new fltk::ValueSlider(20, 30, 220, 18, "Volume in %");
|
||||
o->maximum(100);
|
||||
o->step(1);
|
||||
o->value(50);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
{fltk::ValueSlider* o = slider_pitch = new fltk::ValueSlider(20, 75, 220, 18, "Pitch in Hz");
|
||||
o->minimum(100);
|
||||
o->maximum(1000);
|
||||
o->step(1);
|
||||
o->value(440);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
{fltk::ValueSlider* o = slider_duration = new fltk::ValueSlider(20, 120, 220, 18, "Duration in ms");
|
||||
o->maximum(1000);
|
||||
o->step(1);
|
||||
o->value(200);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
{fltk::Button* o = new fltk::Button(175, 170, 60, 25, "Test");
|
||||
o->callback((fltk::Callback*)cb_Test);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
{fltk::Group* o = group_keyboard = new fltk::Group(0, 25, 255, 259, "Keyboard");
|
||||
o->set_vertical();
|
||||
o->align(fltk::ALIGN_TOP|fltk::ALIGN_LEFT);
|
||||
o->hide();
|
||||
o->begin();
|
||||
{fltk::CheckButton* o = check_autorepeat = new fltk::CheckButton(24, 20, 221, 20, " Repeat key activated");
|
||||
o->selection_color((fltk::Color)2);
|
||||
o->set_flag(fltk::VALUE);
|
||||
}
|
||||
{fltk::ValueSlider* o = slider_click = new fltk::ValueSlider(25, 67, 220, 18, "Click volume %");
|
||||
o->maximum(100);
|
||||
o->step(1);
|
||||
o->value(50);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
{fltk::Group* o = group_screen = new fltk::Group(0, 25, 255, 259, "Screen");
|
||||
o->set_vertical();
|
||||
o->hide();
|
||||
o->begin();
|
||||
{fltk::Button* o = but_activate = new fltk::Button(167, 190, 80, 25, "&Test");
|
||||
o->callback((fltk::Callback*)cb_but_activate);
|
||||
}
|
||||
new fltk::InvisibleBox(10, 0, 234, 55);
|
||||
{fltk::ValueSlider* o = slider_delay = new fltk::ValueSlider(27, 71, 210, 18, "Activation delay (min)");
|
||||
o->minimum(5);
|
||||
o->maximum(120);
|
||||
o->step(1);
|
||||
o->value(15);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
}
|
||||
{fltk::CheckButton* o = check_blanking = new fltk::CheckButton(15, 20, 222, 20, " Screen blanker activated");
|
||||
o->selection_color((fltk::Color)2);
|
||||
o->set_flag(fltk::VALUE);
|
||||
}
|
||||
new fltk::InvisibleBox(10, 99, 234, 37);
|
||||
{fltk::ValueSlider* o = slider_pattern = new fltk::ValueSlider(27, 155, 210, 18, "Pattern change delay (min)");
|
||||
o->minimum(1);
|
||||
o->maximum(5);
|
||||
o->step(0);
|
||||
o->value(2);
|
||||
o->align(fltk::ALIGN_TOP);
|
||||
o->deactivate();
|
||||
}
|
||||
{fltk::Group* o = new fltk::Group(35, 108, 210, 27);
|
||||
o->begin();
|
||||
{fltk::RadioButton* o = radio_blank = new fltk::RadioButton(0, 0, 105, 20, "Blank");
|
||||
o->selection_color((fltk::Color)1);
|
||||
o->set_flag(fltk::VALUE);
|
||||
o->callback((fltk::Callback*)cb_radio_blank);
|
||||
}
|
||||
{fltk::RadioButton* o = radio_pattern = new fltk::RadioButton(107, 5, 95, 20, "Pattern");
|
||||
o->selection_color((fltk::Color)1);
|
||||
o->callback((fltk::Callback*)cb_radio_pattern);
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
o->end();
|
||||
}
|
||||
{fltk::Button* o = new fltk::Button(190, 300, 70, 25, "&Cancel");
|
||||
o->callback((fltk::Callback*)cb_Cancel);
|
||||
o->align(fltk::ALIGN_CENTER);
|
||||
}
|
||||
{fltk::Button* o = but_kbd_apply = new fltk::Button(115, 300, 70, 25, "&Apply");
|
||||
o->callback((fltk::Callback*)cb_but_kbd_apply);
|
||||
}
|
||||
{fltk::ReturnButton* o = new fltk::ReturnButton(40, 300, 70, 25, "OK");
|
||||
o->shortcut(0xd);
|
||||
o->callback((fltk::Callback*)cb_OK);
|
||||
}
|
||||
o->end();
|
||||
o->resizable(o);
|
||||
}
|
||||
}
|
||||
|
||||
edisplayconf::~edisplayconf() {
|
||||
}
|
||||
|
||||
void edisplayconf::Run() {
|
||||
_finish = false;
|
||||
win->show();
|
||||
while (!_finish) fltk::wait();
|
||||
win->hide();
|
||||
}
|
||||
|
||||
void edisplayconf::make_window() {
|
||||
}
|
||||
|
||||
void edisplayconf::radioCB() {
|
||||
int l_blank;
|
||||
|
||||
l_blank = (int)radio_blank->value();
|
||||
if (l_blank)
|
||||
slider_pattern->deactivate();
|
||||
else
|
||||
slider_pattern->activate();
|
||||
}
|
||||
|
||||
int main(int ac,char **av) {
|
||||
//fl_init_locale_support("edisplayconf", PREFIX"/share/locale");
|
||||
app = new edisplayconf();
|
||||
read_disp_configuration();
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;
|
||||
}
|
||||
edisplayconf *app;
|
188
edisplayconf/edisplayconf.fl
Executable file
188
edisplayconf/edisplayconf.fl
Executable file
@@ -0,0 +1,188 @@
|
||||
# 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 {/*
|
||||
* $Id$
|
||||
*
|
||||
* X server properties
|
||||
* 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.
|
||||
*/} {}
|
||||
|
||||
decl {\#include <stdio.h>} {}
|
||||
|
||||
decl {\#include <stdlib.h>} {}
|
||||
|
||||
decl {\#include "conf.h"} {}
|
||||
|
||||
decl {\#include "../edelib2/NLS.h"} {}
|
||||
|
||||
decl {//\#include <efltk/Fl_Util.h>} {}
|
||||
|
||||
decl {\#include <fltk/run.h>} {}
|
||||
|
||||
class edisplayconf {open
|
||||
} {
|
||||
decl {bool _finish;} {public
|
||||
}
|
||||
Function {edisplayconf()} {open
|
||||
} {
|
||||
{fltk::Window} win {
|
||||
label {Display configuration}
|
||||
callback {_finish = true;} open
|
||||
private xywh {386 200 265 335} resizable visible
|
||||
} {
|
||||
{fltk::TabGroup} {} {open
|
||||
xywh {5 5 260 285}
|
||||
} {
|
||||
{fltk::Group} group_mouse {
|
||||
label Mouse open selected
|
||||
private xywh {0 24 255 260} align 4
|
||||
} {
|
||||
{fltk::ValueSlider} slider_accel {
|
||||
label Acceleration
|
||||
xywh {20 30 220 18} align 1 maximum 10 step 1 value 2
|
||||
}
|
||||
{fltk::ValueSlider} slider_thresh {
|
||||
label {Threshold (pixels)}
|
||||
xywh {20 75 220 18} align 1 maximum 20 step 1 value 4
|
||||
}
|
||||
}
|
||||
{fltk::Group} group_bell {
|
||||
label Bell open
|
||||
private xywh {0 25 255 259} hide
|
||||
} {
|
||||
{fltk::ValueSlider} slider_volume {
|
||||
label {Volume in %}
|
||||
xywh {20 30 220 18} align 1 maximum 100 step 1 value 50
|
||||
}
|
||||
{fltk::ValueSlider} slider_pitch {
|
||||
label {Pitch in Hz}
|
||||
xywh {20 75 220 18} align 1 minimum 100 maximum 1000 step 1 value 440
|
||||
}
|
||||
{fltk::ValueSlider} slider_duration {
|
||||
label {Duration in ms}
|
||||
xywh {20 120 220 18} align 1 maximum 1000 step 1 value 200
|
||||
}
|
||||
{fltk::Button} {} {
|
||||
label Test
|
||||
callback {testbellCB();}
|
||||
xywh {175 170 60 25}
|
||||
}
|
||||
}
|
||||
{fltk::Group} group_keyboard {
|
||||
label Keyboard open
|
||||
private xywh {0 25 255 259} align 5 hide
|
||||
} {
|
||||
{fltk::CheckButton} check_autorepeat {
|
||||
label { Repeat key activated}
|
||||
xywh {24 20 221 20} selection_color 2 value 1
|
||||
}
|
||||
{fltk::ValueSlider} slider_click {
|
||||
label {Click volume %}
|
||||
xywh {25 67 220 18} align 1 maximum 100 step 1 value 50
|
||||
}
|
||||
}
|
||||
{fltk::Group} group_screen {
|
||||
label Screen open
|
||||
xywh {0 25 255 259} hide
|
||||
} {
|
||||
{fltk::Button} but_activate {
|
||||
label {&Test}
|
||||
callback {TestBlankCB();}
|
||||
xywh {167 190 80 25}
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {10 0 234 55}
|
||||
}
|
||||
{fltk::ValueSlider} slider_delay {
|
||||
label {Activation delay (min)}
|
||||
xywh {27 71 210 18} align 1 minimum 5 maximum 120 step 1 value 15
|
||||
}
|
||||
{fltk::CheckButton} check_blanking {
|
||||
label { Screen blanker activated}
|
||||
xywh {15 20 222 20} selection_color 2 value 1
|
||||
}
|
||||
{fltk::InvisibleBox} {} {
|
||||
xywh {10 99 234 37}
|
||||
}
|
||||
{fltk::ValueSlider} slider_pattern {
|
||||
label {Pattern change delay (min)}
|
||||
xywh {27 155 210 18} align 1 deactivate minimum 1 maximum 5 step 0 value 2
|
||||
}
|
||||
{fltk::Group} {} {open
|
||||
xywh {35 108 210 27}
|
||||
} {
|
||||
{fltk::RadioButton} radio_blank {
|
||||
label Blank
|
||||
callback {radioCB();}
|
||||
xywh {0 0 105 20} selection_color 1 value 1
|
||||
}
|
||||
{fltk::RadioButton} radio_pattern {
|
||||
label Pattern
|
||||
callback {radioCB();}
|
||||
xywh {107 5 95 20} selection_color 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
{fltk::Button} {} {
|
||||
label {&Cancel}
|
||||
callback {cancelCB();}
|
||||
xywh {190 300 70 25} align 16
|
||||
}
|
||||
{fltk::Button} but_kbd_apply {
|
||||
label {&Apply}
|
||||
callback {applyCB();}
|
||||
xywh {115 300 70 25}
|
||||
}
|
||||
{fltk::ReturnButton} {} {
|
||||
label OK
|
||||
callback {okCB();}
|
||||
xywh {40 300 70 25} shortcut 0xd
|
||||
}
|
||||
}
|
||||
}
|
||||
Function {~edisplayconf()} {open
|
||||
} {}
|
||||
Function {Run()} {open
|
||||
} {
|
||||
code {_finish = false;
|
||||
win->show();
|
||||
while (!_finish) fltk::wait();
|
||||
win->hide();} {}
|
||||
}
|
||||
Function {make_window()} {} {}
|
||||
Function {radioCB()} {open
|
||||
} {
|
||||
code {int l_blank;
|
||||
|
||||
l_blank = (int)radio_blank->value();
|
||||
if (l_blank)
|
||||
slider_pattern->deactivate();
|
||||
else
|
||||
slider_pattern->activate();} {}
|
||||
}
|
||||
}
|
||||
|
||||
Function {main(int ac,char **av)} {open return_type int
|
||||
} {
|
||||
code {//fl_init_locale_support("edisplayconf", PREFIX"/share/locale");
|
||||
app = new edisplayconf();
|
||||
read_disp_configuration();
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;} {}
|
||||
}
|
||||
|
||||
decl {edisplayconf *app;} {public
|
||||
}
|
174
edisplayconf/edisplayconf.fld
Executable file
174
edisplayconf/edisplayconf.fld
Executable file
@@ -0,0 +1,174 @@
|
||||
# data file for the FLTK User Interface Designer (FLUID)
|
||||
version 2,0003
|
||||
images_dir ./
|
||||
i18n
|
||||
header_name {.h}
|
||||
code_name {.cpp}
|
||||
gridx 5
|
||||
gridy 5
|
||||
snap 3
|
||||
decl {\#include <stdio.h>} {}
|
||||
|
||||
decl {\#include <stdlib.h>} {}
|
||||
|
||||
decl {\#include "conf.h"} {}
|
||||
|
||||
decl {\#include <efltk/Fl_Locale.h>} {}
|
||||
|
||||
decl {\#include <efltk/Fl_Util.h>} {}
|
||||
|
||||
class edisplayconf {open
|
||||
} {
|
||||
decl {bool _finish;} {public
|
||||
}
|
||||
Function {edisplayconf()} {open
|
||||
} {
|
||||
Fl_Window win {
|
||||
label {Display configuration}
|
||||
callback {_finish = true;} open
|
||||
private xywh {211 112 265 335} hide
|
||||
} {
|
||||
Fl_Tabs {} {open
|
||||
xywh {5 5 255 285}
|
||||
} {
|
||||
Fl_Group group_mouse {
|
||||
label Mouse open
|
||||
private xywh {0 20 255 265} align 4
|
||||
} {
|
||||
Fl_Value_Slider slider_accel {
|
||||
label Acceleration
|
||||
xywh {25 25 220 18} type HORIZONTAL align 1 maximum 10 step 1 value 2
|
||||
}
|
||||
Fl_Value_Slider slider_thresh {
|
||||
label {Threshold (pixels)}
|
||||
xywh {25 65 220 18} type HORIZONTAL align 1 maximum 20 step 1 value 4
|
||||
}
|
||||
}
|
||||
Fl_Group group_bell {
|
||||
label Bell open
|
||||
private xywh {0 20 255 265} hide
|
||||
} {
|
||||
Fl_Value_Slider slider_volume {
|
||||
label {Volume in %}
|
||||
xywh {25 25 220 18} type HORIZONTAL align 1 maximum 100 step 1 value 50
|
||||
}
|
||||
Fl_Value_Slider slider_pitch {
|
||||
label {Pitch in Hz}
|
||||
xywh {25 70 220 18} type HORIZONTAL align 1 minimum 100 maximum 1000 step 1 value 440
|
||||
}
|
||||
Fl_Value_Slider slider_duration {
|
||||
label {Duration in ms}
|
||||
xywh {25 115 220 18} type HORIZONTAL align 1 maximum 1000 step 1 value 200
|
||||
}
|
||||
Fl_Button {} {
|
||||
label Test
|
||||
callback {testbellCB();}
|
||||
xywh {180 165 60 25}
|
||||
}
|
||||
}
|
||||
Fl_Group group_keyboard {
|
||||
label Keyboard open
|
||||
private xywh {0 20 255 265} align 5 hide
|
||||
} {
|
||||
Fl_Check_Button check_autorepeat {
|
||||
label { Repeat key activated}
|
||||
xywh {24 25 221 20} selection_color 2 value 1
|
||||
}
|
||||
Fl_Value_Slider slider_click {
|
||||
label {Click volume %}
|
||||
xywh {25 65 220 18} type HORIZONTAL align 1 maximum 100 step 1 value 50
|
||||
}
|
||||
}
|
||||
Fl_Group group_screen {
|
||||
label Screen open selected
|
||||
xywh {0 20 255 265} hide
|
||||
} {
|
||||
Fl_Button but_activate {
|
||||
label {&Test}
|
||||
callback {TestBlankCB();}
|
||||
xywh {165 187 80 25}
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {10 1 234 55}
|
||||
}
|
||||
Fl_Value_Slider slider_delay {
|
||||
label {Activation delay (min)}
|
||||
xywh {25 77 220 18} type HORIZONTAL align 1 minimum 5 maximum 120 step 1 value 15
|
||||
}
|
||||
Fl_Check_Button check_blanking {
|
||||
label { Screen blanker activated}
|
||||
xywh {23 25 222 20} selection_color 2 value 1
|
||||
}
|
||||
Fl_Box {} {
|
||||
xywh {10 100 234 37}
|
||||
}
|
||||
Fl_Value_Slider slider_pattern {
|
||||
label {Pattern change delay (min)}
|
||||
xywh {25 152 220 18} type HORIZONTAL align 1 deactivate minimum 1 maximum 5 step 0 value 2
|
||||
}
|
||||
Fl_Group {} {open
|
||||
xywh {30 105 210 25}
|
||||
} {
|
||||
Fl_Round_Button radio_blank {
|
||||
label Blank
|
||||
callback {radioCB();}
|
||||
xywh {0 5 105 20} type RADIO selection_color 1 value 1
|
||||
}
|
||||
Fl_Round_Button radio_pattern {
|
||||
label Pattern
|
||||
callback {radioCB();}
|
||||
xywh {115 5 95 20} type RADIO selection_color 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Fl_Button {} {
|
||||
label {&Cancel}
|
||||
callback {cancelCB();}
|
||||
xywh {190 300 70 25} align 16
|
||||
}
|
||||
Fl_Button but_kbd_apply {
|
||||
label {&Apply}
|
||||
callback {applyCB();}
|
||||
xywh {115 300 70 25}
|
||||
}
|
||||
Fl_Return_Button {} {
|
||||
label OK
|
||||
callback {okCB();}
|
||||
xywh {40 300 70 25} shortcut 0xd
|
||||
}
|
||||
}
|
||||
}
|
||||
Function {~edisplayconf()} {} {}
|
||||
Function {Run()} {open
|
||||
} {
|
||||
code {_finish = false;
|
||||
win->show();
|
||||
while (!_finish) Fl::wait();
|
||||
win->hide();} {}
|
||||
}
|
||||
Function {make_window()} {} {}
|
||||
Function {radioCB()} {open
|
||||
} {
|
||||
code {int l_blank;
|
||||
|
||||
l_blank = (int)radio_blank->value();
|
||||
if (l_blank)
|
||||
slider_pattern->deactivate();
|
||||
else
|
||||
slider_pattern->activate();} {}
|
||||
}
|
||||
}
|
||||
|
||||
Function {main(int ac,char **av)} {open return_type int
|
||||
} {
|
||||
code {fl_init_locale_support("edisplayconf", PREFIX"/share/locale");
|
||||
app = new edisplayconf();
|
||||
read_disp_configuration();
|
||||
app->Run();
|
||||
delete app;
|
||||
return 0;} {}
|
||||
}
|
||||
|
||||
decl {edisplayconf *app;} {public
|
||||
}
|
75
edisplayconf/edisplayconf.h
Executable file
75
edisplayconf/edisplayconf.h
Executable file
@@ -0,0 +1,75 @@
|
||||
// generated by Fast Light User Interface Designer (fluid) version 2.0100
|
||||
|
||||
#ifndef edisplayconf_h
|
||||
#define edisplayconf_h
|
||||
#include <fltk/Window.h>
|
||||
#include <fltk/TabGroup.h>
|
||||
#include <fltk/Group.h>
|
||||
#include <fltk/ValueSlider.h>
|
||||
#include <fltk/Button.h>
|
||||
#include <fltk/CheckButton.h>
|
||||
#include <fltk/InvisibleBox.h>
|
||||
#include <fltk/RadioButton.h>
|
||||
#include <fltk/ReturnButton.h>
|
||||
|
||||
class edisplayconf {
|
||||
public:
|
||||
bool _finish;
|
||||
edisplayconf();
|
||||
private:
|
||||
fltk::Window *win;
|
||||
inline void cb_win_i(fltk::Window*, void*);
|
||||
static void cb_win(fltk::Window*, void*);
|
||||
fltk::Group *group_mouse;
|
||||
public:
|
||||
fltk::ValueSlider *slider_accel;
|
||||
fltk::ValueSlider *slider_thresh;
|
||||
private:
|
||||
fltk::Group *group_bell;
|
||||
public:
|
||||
fltk::ValueSlider *slider_volume;
|
||||
fltk::ValueSlider *slider_pitch;
|
||||
fltk::ValueSlider *slider_duration;
|
||||
private:
|
||||
inline void cb_Test_i(fltk::Button*, void*);
|
||||
static void cb_Test(fltk::Button*, void*);
|
||||
fltk::Group *group_keyboard;
|
||||
public:
|
||||
fltk::CheckButton *check_autorepeat;
|
||||
fltk::ValueSlider *slider_click;
|
||||
fltk::Group *group_screen;
|
||||
fltk::Button *but_activate;
|
||||
private:
|
||||
inline void cb_but_activate_i(fltk::Button*, void*);
|
||||
static void cb_but_activate(fltk::Button*, void*);
|
||||
public:
|
||||
fltk::ValueSlider *slider_delay;
|
||||
fltk::CheckButton *check_blanking;
|
||||
fltk::ValueSlider *slider_pattern;
|
||||
fltk::RadioButton *radio_blank;
|
||||
private:
|
||||
inline void cb_radio_blank_i(fltk::RadioButton*, void*);
|
||||
static void cb_radio_blank(fltk::RadioButton*, void*);
|
||||
public:
|
||||
fltk::RadioButton *radio_pattern;
|
||||
private:
|
||||
inline void cb_radio_pattern_i(fltk::RadioButton*, void*);
|
||||
static void cb_radio_pattern(fltk::RadioButton*, void*);
|
||||
inline void cb_Cancel_i(fltk::Button*, void*);
|
||||
static void cb_Cancel(fltk::Button*, void*);
|
||||
public:
|
||||
fltk::Button *but_kbd_apply;
|
||||
private:
|
||||
inline void cb_but_kbd_apply_i(fltk::Button*, void*);
|
||||
static void cb_but_kbd_apply(fltk::Button*, void*);
|
||||
inline void cb_OK_i(fltk::ReturnButton*, void*);
|
||||
static void cb_OK(fltk::ReturnButton*, void*);
|
||||
public:
|
||||
~edisplayconf();
|
||||
void Run();
|
||||
void make_window();
|
||||
void radioCB();
|
||||
};
|
||||
int main(int ac,char **av);
|
||||
extern edisplayconf *app;
|
||||
#endif
|
76
edisplayconf/exset.h
Executable file
76
edisplayconf/exset.h
Executable file
@@ -0,0 +1,76 @@
|
||||
#ifndef exset_h
|
||||
#define exset_h
|
||||
|
||||
#include <fltk/x.h> //#include <efltk/x.h>
|
||||
#include "../edelib2/Run.h" //#include <efltk/Fl_Util.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
using namespace edelib;
|
||||
|
||||
class Exset {
|
||||
|
||||
public:
|
||||
Exset(void) {}
|
||||
~Exset() {}
|
||||
|
||||
char str[80];
|
||||
|
||||
void set_pattern(int delay, int pattern = -1){
|
||||
if( pattern != -1 ){
|
||||
sprintf(str,"xset s %d %d",delay*60,pattern*60);
|
||||
run_program(str);
|
||||
}else{
|
||||
sprintf(str,"xset s %d",delay*60);
|
||||
run_program(str);
|
||||
}
|
||||
}
|
||||
void set_check_blank(int blank){
|
||||
sprintf(str,"xset s %s",blank ? "on" : "off");
|
||||
run_program(str);
|
||||
}
|
||||
void set_blank(int blank){
|
||||
sprintf(str,"xset s %s",blank ? "blank" : "noblank");
|
||||
run_program(str);
|
||||
}
|
||||
|
||||
void test_blank() { run_program("xset s activate"); }
|
||||
void test_bell() { run_program("xkbbell"); }
|
||||
|
||||
void set_mouse(int accel, int thresh){
|
||||
XChangePointerControl(fltk::xdisplay, true, true, accel,
|
||||
1, thresh);
|
||||
}
|
||||
|
||||
|
||||
void set_bell(int volume, int pitch, int duration, int sound = 0){
|
||||
XKeyboardControl _ctrl;
|
||||
unsigned long mask = KBBellPercent | KBBellPitch | KBBellDuration;
|
||||
|
||||
_ctrl.bell_percent = volume;
|
||||
_ctrl.bell_pitch = pitch;
|
||||
_ctrl.bell_duration = duration;
|
||||
|
||||
set_xset(&_ctrl,mask);
|
||||
}
|
||||
|
||||
void set_keybd( int repeat, int clicks) {
|
||||
XKeyboardControl _ctrl;
|
||||
unsigned long mask = KBKeyClickPercent | KBAutoRepeatMode;
|
||||
|
||||
_ctrl.key_click_percent = clicks;
|
||||
_ctrl.auto_repeat_mode = (repeat ? AutoRepeatModeOn : AutoRepeatModeOff);
|
||||
|
||||
set_xset(&_ctrl,mask);
|
||||
}
|
||||
|
||||
void set_xset(XKeyboardControl * ctrl, unsigned long mask){
|
||||
XChangeKeyboardControl(fltk::xdisplay, mask, ctrl);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
99
edisplayconf/locale/hu.po
Executable file
99
edisplayconf/locale/hu.po
Executable file
@@ -0,0 +1,99 @@
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: \n"
|
||||
"PO-Revision-Date: 2005-02-09 11:21+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"
|
||||
|
||||
#: edisplayconf.cpp:70
|
||||
msgid "Display configuration"
|
||||
msgstr "Felület beállításai"
|
||||
|
||||
#: edisplayconf.cpp:74
|
||||
msgid "Mouse"
|
||||
msgstr "Egér"
|
||||
|
||||
#: edisplayconf.cpp:76
|
||||
msgid "Acceleration"
|
||||
msgstr "Gyorsulás"
|
||||
|
||||
#: edisplayconf.cpp:83
|
||||
msgid "Threshold (pixels)"
|
||||
msgstr "Határérték (képpont)"
|
||||
|
||||
#: edisplayconf.cpp:92
|
||||
msgid "Bell"
|
||||
msgstr "Csengő"
|
||||
|
||||
#: edisplayconf.cpp:94
|
||||
msgid "Volume in %"
|
||||
msgstr "Hangerő %"
|
||||
|
||||
#: edisplayconf.cpp:101
|
||||
msgid "Pitch in Hz"
|
||||
msgstr "Frekvencia"
|
||||
|
||||
#: edisplayconf.cpp:109
|
||||
msgid "Duration in ms"
|
||||
msgstr "Időtartam (ms)"
|
||||
|
||||
#: edisplayconf.cpp:116
|
||||
msgid "Test"
|
||||
msgstr "Próba"
|
||||
|
||||
#: edisplayconf.cpp:121
|
||||
msgid "Keyboard"
|
||||
msgstr "Billentyűzet"
|
||||
|
||||
#: edisplayconf.cpp:124
|
||||
msgid " Repeat key activated"
|
||||
msgstr "Billentyűzet ismétlés"
|
||||
|
||||
#: edisplayconf.cpp:128
|
||||
msgid "Click volume %"
|
||||
msgstr "Hangerő %"
|
||||
|
||||
#: edisplayconf.cpp:137
|
||||
msgid "Screen"
|
||||
msgstr "Képernyő"
|
||||
|
||||
#: edisplayconf.cpp:139
|
||||
msgid "&Test"
|
||||
msgstr "Pró&ba"
|
||||
|
||||
#: edisplayconf.cpp:143
|
||||
msgid "Activation delay (min)"
|
||||
msgstr "Aktiválás kezdete (perc)"
|
||||
|
||||
#: edisplayconf.cpp:151
|
||||
msgid " Screen blanker activated"
|
||||
msgstr "Képernyő sötétítés"
|
||||
|
||||
#: edisplayconf.cpp:156
|
||||
msgid "Pattern change delay (min)"
|
||||
msgstr "Embléma változás (perc)"
|
||||
|
||||
#: edisplayconf.cpp:166
|
||||
msgid "Blank"
|
||||
msgstr "Sötétítés"
|
||||
|
||||
#: edisplayconf.cpp:172
|
||||
msgid "Pattern"
|
||||
msgstr "Embléma"
|
||||
|
||||
#: edisplayconf.cpp:183
|
||||
msgid "&Cancel"
|
||||
msgstr "Mégs&em"
|
||||
|
||||
#: edisplayconf.cpp:187
|
||||
msgid "&Apply"
|
||||
msgstr "&Alkalmaz"
|
||||
|
||||
#: edisplayconf.cpp:190
|
||||
msgid "OK"
|
||||
msgstr "OK"
|
||||
|
104
edisplayconf/locale/id.po
Executable file
104
edisplayconf/locale/id.po
Executable file
@@ -0,0 +1,104 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: edisplayconf 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2005-02-04 12:31+0100\n"
|
||||
"PO-Revision-Date: 202-11-29 14:29+0700\n"
|
||||
"Last-Translator: Bambang Purnomosidi D. P. <i-am-the-boss@bpdp.org>\n"
|
||||
"Language-Team: id <i-am-the-boss@bpdp.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=iso-8859-2\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: edisplayconf.cpp:70
|
||||
msgid "Display configuration"
|
||||
msgstr "Konfigurasi tampilan"
|
||||
|
||||
#: edisplayconf.cpp:74
|
||||
msgid "Mouse"
|
||||
msgstr "Mouse"
|
||||
|
||||
#: edisplayconf.cpp:76
|
||||
msgid "Acceleration"
|
||||
msgstr "Akselerasi"
|
||||
|
||||
#: edisplayconf.cpp:83
|
||||
msgid "Threshold (pixels)"
|
||||
msgstr "Threshold (pixel)"
|
||||
|
||||
#: edisplayconf.cpp:92
|
||||
msgid "Bell"
|
||||
msgstr "Bel"
|
||||
|
||||
#: edisplayconf.cpp:94
|
||||
msgid "Volume in %"
|
||||
msgstr "Volumen dalam %"
|
||||
|
||||
#: edisplayconf.cpp:101
|
||||
msgid "Pitch in Hz"
|
||||
msgstr "Pitch dalam Hz"
|
||||
|
||||
#: edisplayconf.cpp:109
|
||||
msgid "Duration in ms"
|
||||
msgstr "Durasi dalam milidetik"
|
||||
|
||||
#: edisplayconf.cpp:116
|
||||
#, fuzzy
|
||||
msgid "Test"
|
||||
msgstr "&Tes"
|
||||
|
||||
#: edisplayconf.cpp:121
|
||||
msgid "Keyboard"
|
||||
msgstr "Keyboard"
|
||||
|
||||
#: edisplayconf.cpp:124
|
||||
msgid " Repeat key activated"
|
||||
msgstr " tombol Repeat diaktifkan"
|
||||
|
||||
#: edisplayconf.cpp:128
|
||||
msgid "Click volume %"
|
||||
msgstr "Klik volumen %"
|
||||
|
||||
#: edisplayconf.cpp:137
|
||||
msgid "Screen"
|
||||
msgstr "Layar"
|
||||
|
||||
#: edisplayconf.cpp:139
|
||||
msgid "&Test"
|
||||
msgstr "&Tes"
|
||||
|
||||
#: edisplayconf.cpp:143
|
||||
msgid "Activation delay (min)"
|
||||
msgstr "Waktu tunda aktivasi (menit)"
|
||||
|
||||
#: edisplayconf.cpp:151
|
||||
msgid " Screen blanker activated"
|
||||
msgstr " Pengosong layar diaktifkan"
|
||||
|
||||
#: edisplayconf.cpp:156
|
||||
msgid "Pattern change delay (min)"
|
||||
msgstr "Waktu tunda perubahan pola (menit)"
|
||||
|
||||
#: edisplayconf.cpp:166
|
||||
msgid "Blank"
|
||||
msgstr "Kosong"
|
||||
|
||||
#: edisplayconf.cpp:172
|
||||
msgid "Pattern"
|
||||
msgstr "Pola"
|
||||
|
||||
#: edisplayconf.cpp:183
|
||||
msgid "&Cancel"
|
||||
msgstr "&Batal"
|
||||
|
||||
#: edisplayconf.cpp:187
|
||||
msgid "&Apply"
|
||||
msgstr "&Aktifkan"
|
||||
|
||||
#: edisplayconf.cpp:190
|
||||
msgid "OK"
|
||||
msgstr ""
|
105
edisplayconf/locale/messages.pot
Executable file
105
edisplayconf/locale/messages.pot
Executable file
@@ -0,0 +1,105 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2005-02-04 12:31+0100\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"
|
||||
|
||||
#: edisplayconf.cpp:70
|
||||
msgid "Display configuration"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:74
|
||||
msgid "Mouse"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:76
|
||||
msgid "Acceleration"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:83
|
||||
msgid "Threshold (pixels)"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:92
|
||||
msgid "Bell"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:94
|
||||
msgid "Volume in %"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:101
|
||||
msgid "Pitch in Hz"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:109
|
||||
msgid "Duration in ms"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:116
|
||||
msgid "Test"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:121
|
||||
msgid "Keyboard"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:124
|
||||
msgid " Repeat key activated"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:128
|
||||
msgid "Click volume %"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:137
|
||||
msgid "Screen"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:139
|
||||
msgid "&Test"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:143
|
||||
msgid "Activation delay (min)"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:151
|
||||
msgid " Screen blanker activated"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:156
|
||||
msgid "Pattern change delay (min)"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:166
|
||||
msgid "Blank"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:172
|
||||
msgid "Pattern"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:183
|
||||
msgid "&Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:187
|
||||
msgid "&Apply"
|
||||
msgstr ""
|
||||
|
||||
#: edisplayconf.cpp:190
|
||||
msgid "OK"
|
||||
msgstr ""
|
104
edisplayconf/locale/ru.po
Executable file
104
edisplayconf/locale/ru.po
Executable file
@@ -0,0 +1,104 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2005-02-04 12:31+0100\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"
|
||||
|
||||
#: edisplayconf.cpp:70
|
||||
msgid "Display configuration"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:74
|
||||
msgid "Mouse"
|
||||
msgstr "<22><><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:76
|
||||
msgid "Acceleration"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:83
|
||||
msgid "Threshold (pixels)"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:92
|
||||
msgid "Bell"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:94
|
||||
msgid "Volume in %"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, %"
|
||||
|
||||
#: edisplayconf.cpp:101
|
||||
msgid "Pitch in Hz"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>"
|
||||
|
||||
#: edisplayconf.cpp:109
|
||||
msgid "Duration in ms"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>"
|
||||
|
||||
#: edisplayconf.cpp:116
|
||||
msgid "Test"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:121
|
||||
msgid "Keyboard"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:124
|
||||
msgid " Repeat key activated"
|
||||
msgstr " <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ޣ<EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:128
|
||||
msgid "Click volume %"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, %"
|
||||
|
||||
#: edisplayconf.cpp:137
|
||||
msgid "Screen"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:139
|
||||
msgid "&Test"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:143
|
||||
msgid "Activation delay (min)"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:151
|
||||
msgid " Screen blanker activated"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ޣ<EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:156
|
||||
msgid "Pattern change delay (min)"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:166
|
||||
msgid "Blank"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:172
|
||||
msgid "Pattern"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:183
|
||||
msgid "&Cancel"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:187
|
||||
msgid "&Apply"
|
||||
msgstr "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
|
||||
#: edisplayconf.cpp:190
|
||||
msgid "OK"
|
||||
msgstr ""
|
104
edisplayconf/locale/sk.po
Executable file
104
edisplayconf/locale/sk.po
Executable file
@@ -0,0 +1,104 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: edisplayconf 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2005-02-04 12:31+0100\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"
|
||||
|
||||
#: edisplayconf.cpp:70
|
||||
msgid "Display configuration"
|
||||
msgstr "Nastavenie obrazovky"
|
||||
|
||||
#: edisplayconf.cpp:74
|
||||
msgid "Mouse"
|
||||
msgstr "Myš"
|
||||
|
||||
#: edisplayconf.cpp:76
|
||||
msgid "Acceleration"
|
||||
msgstr "Zrýchlenie"
|
||||
|
||||
#: edisplayconf.cpp:83
|
||||
msgid "Threshold (pixels)"
|
||||
msgstr "Threshold (v pixeloch)"
|
||||
|
||||
#: edisplayconf.cpp:92
|
||||
msgid "Bell"
|
||||
msgstr "Zvonček"
|
||||
|
||||
#: edisplayconf.cpp:94
|
||||
msgid "Volume in %"
|
||||
msgstr "Hlasitosť v %"
|
||||
|
||||
#: edisplayconf.cpp:101
|
||||
msgid "Pitch in Hz"
|
||||
msgstr "Pitch v Hz"
|
||||
|
||||
#: edisplayconf.cpp:109
|
||||
msgid "Duration in ms"
|
||||
msgstr "Trvanie v ms"
|
||||
|
||||
#: edisplayconf.cpp:116
|
||||
#, fuzzy
|
||||
msgid "Test"
|
||||
msgstr "&Test"
|
||||
|
||||
#: edisplayconf.cpp:121
|
||||
msgid "Keyboard"
|
||||
msgstr "Klávesnica"
|
||||
|
||||
#: edisplayconf.cpp:124
|
||||
msgid " Repeat key activated"
|
||||
msgstr " Aktivované opakovanie kláves"
|
||||
|
||||
#: edisplayconf.cpp:128
|
||||
msgid "Click volume %"
|
||||
msgstr "Hlasitosť kliknutia %"
|
||||
|
||||
#: edisplayconf.cpp:137
|
||||
msgid "Screen"
|
||||
msgstr "Obrazovka"
|
||||
|
||||
#: edisplayconf.cpp:139
|
||||
msgid "&Test"
|
||||
msgstr "&Test"
|
||||
|
||||
#: edisplayconf.cpp:143
|
||||
msgid "Activation delay (min)"
|
||||
msgstr "Čas aktivatácie (min)"
|
||||
|
||||
#: edisplayconf.cpp:151
|
||||
msgid " Screen blanker activated"
|
||||
msgstr " Aktivovaný šetrič obrazovky"
|
||||
|
||||
#: edisplayconf.cpp:156
|
||||
msgid "Pattern change delay (min)"
|
||||
msgstr "Čas zmeny vzoru (min)"
|
||||
|
||||
#: edisplayconf.cpp:166
|
||||
msgid "Blank"
|
||||
msgstr "Žiadny"
|
||||
|
||||
#: edisplayconf.cpp:172
|
||||
msgid "Pattern"
|
||||
msgstr "Vzor"
|
||||
|
||||
#: edisplayconf.cpp:183
|
||||
msgid "&Cancel"
|
||||
msgstr "&Zrušiť"
|
||||
|
||||
#: edisplayconf.cpp:187
|
||||
msgid "&Apply"
|
||||
msgstr "&Použiť"
|
||||
|
||||
#: edisplayconf.cpp:190
|
||||
msgid "OK"
|
||||
msgstr ""
|
104
edisplayconf/locale/sr.po
Executable file
104
edisplayconf/locale/sr.po
Executable file
@@ -0,0 +1,104 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR Free Software Foundation, Inc.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: EDISPLAYCONF 1.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2005-02-04 12:31+0100\n"
|
||||
"PO-Revision-Date: 2002-11-27 04:46+0100\n"
|
||||
"Last-Translator: Dejan Lekic <dejan@nu6.org>\n"
|
||||
"Language-Team: LINUKS.org T.T. <i18n@linuks.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=utf-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: edisplayconf.cpp:70
|
||||
msgid "Display configuration"
|
||||
msgstr "Прикажи конфигурацију"
|
||||
|
||||
#: edisplayconf.cpp:74
|
||||
msgid "Mouse"
|
||||
msgstr "Миш"
|
||||
|
||||
#: edisplayconf.cpp:76
|
||||
msgid "Acceleration"
|
||||
msgstr "Акцелерација"
|
||||
|
||||
#: edisplayconf.cpp:83
|
||||
msgid "Threshold (pixels)"
|
||||
msgstr "Праг (у пикселима)"
|
||||
|
||||
#: edisplayconf.cpp:92
|
||||
msgid "Bell"
|
||||
msgstr "Звоно"
|
||||
|
||||
#: edisplayconf.cpp:94
|
||||
msgid "Volume in %"
|
||||
msgstr "Јачина у %"
|
||||
|
||||
#: edisplayconf.cpp:101
|
||||
msgid "Pitch in Hz"
|
||||
msgstr "Ниво у Hz"
|
||||
|
||||
#: edisplayconf.cpp:109
|
||||
msgid "Duration in ms"
|
||||
msgstr "Трајање у ms"
|
||||
|
||||
#: edisplayconf.cpp:116
|
||||
#, fuzzy
|
||||
msgid "Test"
|
||||
msgstr "&Тест"
|
||||
|
||||
#: edisplayconf.cpp:121
|
||||
msgid "Keyboard"
|
||||
msgstr "Тастатура"
|
||||
|
||||
#: edisplayconf.cpp:124
|
||||
msgid " Repeat key activated"
|
||||
msgstr " Активиран тастер за понављање"
|
||||
|
||||
#: edisplayconf.cpp:128
|
||||
msgid "Click volume %"
|
||||
msgstr "Јачина клика %"
|
||||
|
||||
#: edisplayconf.cpp:137
|
||||
msgid "Screen"
|
||||
msgstr "Скрин"
|
||||
|
||||
#: edisplayconf.cpp:139
|
||||
msgid "&Test"
|
||||
msgstr "&Тест"
|
||||
|
||||
#: edisplayconf.cpp:143
|
||||
msgid "Activation delay (min)"
|
||||
msgstr "Пауза за активирање (мин)"
|
||||
|
||||
#: edisplayconf.cpp:151
|
||||
msgid " Screen blanker activated"
|
||||
msgstr "Скрин бланкер активиран"
|
||||
|
||||
#: edisplayconf.cpp:156
|
||||
msgid "Pattern change delay (min)"
|
||||
msgstr "Мењање шаблона након (мин)"
|
||||
|
||||
#: edisplayconf.cpp:166
|
||||
msgid "Blank"
|
||||
msgstr "Бланк"
|
||||
|
||||
#: edisplayconf.cpp:172
|
||||
msgid "Pattern"
|
||||
msgstr "Шаблон"
|
||||
|
||||
#: edisplayconf.cpp:183
|
||||
msgid "&Cancel"
|
||||
msgstr "&Одустани"
|
||||
|
||||
#: edisplayconf.cpp:187
|
||||
msgid "&Apply"
|
||||
msgstr "&Примени"
|
||||
|
||||
#: edisplayconf.cpp:190
|
||||
msgid "OK"
|
||||
msgstr ""
|
Reference in New Issue
Block a user