commit
14286a0eb6
@ -0,0 +1,29 @@
|
||||
Known issues
|
||||
------------
|
||||
1. Error messages are not transmitted from the previous instance of KDocker to
|
||||
the latest instance. So, if you already have KDocker running and you start
|
||||
another instance of KDocker saying "kdocker blah", you wont receive any error
|
||||
message.
|
||||
|
||||
2. Problem with relative paths if new instance of KDocker and old instance of
|
||||
KDocker are started from different directories (the current directory
|
||||
information is not transmitted across instances)
|
||||
|
||||
Reporting Bugs
|
||||
--------------
|
||||
Bugs and wishes to gramakri at uiuc dot edu. Follow the guidelines below , if
|
||||
possible and send it to me at gramakri at uiuc dot edu.
|
||||
|
||||
* Add the following line in kdocker.pro (in fact just uncomment it)
|
||||
DEFINES += ENABLE_TRACING
|
||||
* Now do a "make clean" and "then make".
|
||||
* Launch KDocker. Recreate the problem.
|
||||
- Right Click on the tray icon.
|
||||
- Choose "About KDocker"
|
||||
- You should see a button called "Show Trace". Please note that this button
|
||||
will appear only when compiled with tracing
|
||||
- If you send SIGUSR1 to the KDocker process, it will dump all the trace to
|
||||
~/kdocker.trace. Send that file to me.
|
||||
|
||||
May the force be with you.
|
||||
|
@ -0,0 +1,27 @@
|
||||
KDocker code by Girish Ramakrishnan (gramakri at uiuc dot edu)
|
||||
|
||||
The wonderful KDocker Icon is artwork of Marcel Dierkes (marcel dot dierkes at gmx dot de)
|
||||
|
||||
Translations
|
||||
------------
|
||||
Spanish translations by Edulix (edulix at tumundoweb dot com)
|
||||
French translations by Al (altrash at altern &dot& org)
|
||||
Czech translations by Jiri Hofman (jiri dot hofman # a.t # tut*fi)
|
||||
Russian translations by Aleksey Kirpichnikov (coder *at* paco dot net)
|
||||
Brazilian Portugese by Paulo Ruthes (paulo.ruthes $at$ $uol$ com dot br)
|
||||
German translations by Thomas Runge (thomas dot r3 at gmx dot de)
|
||||
Polish translation by KonMan (dedalus !at o2 dot pl)
|
||||
Indonesian translation by Eko Prasetiyo (e hiphen prast at spymac dot com)
|
||||
Italian translations by Alessio Cassibba (swapon at gmail dot com)
|
||||
Bulgarian translations by Petar Toushkov (peter dot toushkov at mail dot. bg)
|
||||
Japanese translations by Masaaki Kanno (hanoura at gmail dot com)
|
||||
Dutch translations by Jay Kamminga (jay hyphen kamminga at home dot nl)
|
||||
Hungarian translation by Nyitrai Sianis Istvan (siani at gmail dot com)
|
||||
Swedish translation by Daniel Nylander (po at danielnylander dot se)
|
||||
|
||||
Packages (visit website for links)
|
||||
----------------------------------
|
||||
Suse 9.1, 9.2, 9.3, 10.0 - By Toni (oc2pus att arcor dott de)
|
||||
Slackware - By Mr Souissi (zhss att online dott fr)
|
||||
Debian - By Mr Souissi
|
||||
|
@ -0,0 +1,93 @@
|
||||
for version 1.4
|
||||
- Bulgarian translations from Petar Toushkov
|
||||
- Japanese translations from Kanno Masaaki
|
||||
- Hungarian translations from Nyitrai \"Sianis\" István
|
||||
- Dutch translations from Jay Kamminga
|
||||
- Dock when focus lost
|
||||
|
||||
for version 1.3
|
||||
- Fix bug when reading back balloon timeout on session restoration
|
||||
- AutoLaunch enhancement (Request user to provide program name when
|
||||
autodetection failed)
|
||||
- Indonesian translations from Eko Prasetiyo
|
||||
- Italian translations from Alessio Cassibba
|
||||
- Updated Brazilian Portuguese and polish translations
|
||||
|
||||
for version 1.2
|
||||
- Polish translations from KonMan
|
||||
- Check WM_NAME to support programs like LimeWire (for lavacube)
|
||||
- Store entire application path as part of session
|
||||
- Move around command line handling code
|
||||
- Configure balloon timeout using "-p" (for roopesh)
|
||||
|
||||
for version 1.1
|
||||
- German translations from Thomas Runge
|
||||
- Dialog detection bug. I replaced all LOG with TRACE (Thanks to Novoselic
|
||||
who raised a question which helped me notice it)
|
||||
- -v Displays the version
|
||||
- -b Suppress the warning when docking non-normal dialogs
|
||||
(For John Pettigrew)
|
||||
- Fix issue when passing large command line to previous instance
|
||||
(Reported by Arseniy Akopyan)
|
||||
|
||||
for version 1.0 CR1
|
||||
- Russian translations by Aleksey Kirpichnikov
|
||||
- Brazilian Portugese translations by Paulo Ruthes
|
||||
|
||||
for version 1.0
|
||||
- Spanish translations are back in (Thanks Edulix)
|
||||
- Yet another fix for xmms
|
||||
|
||||
for version 1.0 rc2
|
||||
- "make install" support (with QMake)
|
||||
- Multiple desktop awareness (for Sharon)
|
||||
- Icons from Marcel Dierkes
|
||||
- Use XDND type mechanism to pass arguments to previous instance
|
||||
- Spanish translations are out.
|
||||
- Czech translations by Jiri Hofman
|
||||
- Drag and drop support for Antonio C. Censi
|
||||
- Xmms+PlayList fix (for KDE)
|
||||
|
||||
for version 1.0 rc1
|
||||
- Session Management support (XSMP) for KDE and GNOME
|
||||
- AutoLaunch application support that do not support Session Management
|
||||
- Wait until system tray comes up on session restoration (Requested by
|
||||
Normen)
|
||||
- Fix GNOME docked icon resize issue
|
||||
- Track tray label appearance and disappearance handling
|
||||
- Major code refactoring. QTrayLabel is now a very reusable class
|
||||
|
||||
for version 0.9
|
||||
- Support to dock the active window (useful with keyboard shortcuts) -f
|
||||
Was requested by Daniel
|
||||
- Small security fix
|
||||
- ToolTip positioning issue (reported by Alex)
|
||||
- CLI Support to disabling ballooning of title changes. -q (requested by
|
||||
Marcel Dierkes)
|
||||
- French Translations (Thanks to Al)
|
||||
|
||||
for version 0.8
|
||||
- Custom Icons. Accessible through menu or CLI
|
||||
- Fixes for KDE (ObscureEvent, BringToFront, SkippingTaskbar)
|
||||
- Code refactoring
|
||||
- Changes to have only a single instance of KDocker running all the time!
|
||||
|
||||
for version 0.7
|
||||
- Use WM_COMMAND to identify windows
|
||||
- Warn when attemping to dock non-normal windows
|
||||
- Issue with tool tips fixed
|
||||
|
||||
for version 0.6
|
||||
- Start up applications
|
||||
- CLI support
|
||||
- Spanish Translation and i18n support
|
||||
|
||||
for version 0.5
|
||||
- Support to remember the position
|
||||
- Support to close application
|
||||
- Support to remove application from the task bar
|
||||
|
||||
for version 0.4
|
||||
- Add dock on obscure
|
||||
- Add dock on minimise
|
||||
|
@ -0,0 +1,63 @@
|
||||
Words of wisdom
|
||||
|
||||
1. Make sure all changed work on both KDE and Gnome
|
||||
|
||||
2. The System tray protocol specification can be found at
|
||||
http://freedesktop.org/Standards/systemtray-spec/systemtray-spec-0.1.html
|
||||
|
||||
3. The KDE System tray Docking Protocol can be found at
|
||||
http://developer.kde.org/documentation/library/kdeqt/kde3arch/protocols-docking.html
|
||||
|
||||
4. The site i use for Xlib reference
|
||||
http://tronche.com/gui/x/xlib/function-index.html
|
||||
|
||||
5. Qt Documentation at http://doc.trolltech.com
|
||||
|
||||
6. There's do or no do. There's no try.
|
||||
|
||||
KDocker Window Docking Strategy and a little bit of history
|
||||
-----------------------------------------------------------
|
||||
Couple of things that will help you if you are looking through the code.
|
||||
I wanted a single instance of KDocker to be running all the time. So,
|
||||
whenever a new instance of KDocker was created it would ask the previous
|
||||
instance take over.
|
||||
|
||||
Two things to know about
|
||||
1. Mapping from the PID (process id) to WID (window id)
|
||||
2. How to let the previous instance know about app_to_launch
|
||||
|
||||
Lets deal with them one by one.
|
||||
1. PID to WID mapping is easy if people followed rules. Just read _NET_WM_PID
|
||||
for a window. If it matches the one app's PID we just created, that window is
|
||||
the one we want to dock. Its not as simple as that. Programs have "splash"
|
||||
screens. A nice thing is that these "splash" screen have the _WM_TRANSIENT_FOR
|
||||
property set. So, we can skip those windows. There are these bunch of programs
|
||||
(like gaim, xmms) that create windows and dont put this property on them. Arrgh.
|
||||
What we do to counter these applications is to look for interesting windows
|
||||
possibly created by the process until the process dies. Have a look at the code
|
||||
for a better understanding.
|
||||
|
||||
2. Sending ClientMessages to previous instances with the program name and
|
||||
arguments is painful and makes the code more complex. Before 1.0, I used to dump
|
||||
all the program arguments in ~/kdocker.<pid> and send the pid in a
|
||||
ClientMessage. The file is then deleted after processing. As of 1.0, I set a
|
||||
property _KDOCKER_<pid> on the KDocker initial instance's window which holds
|
||||
the program arguments. (The correct way to transfer information is using
|
||||
XSelections)
|
||||
|
||||
TRACING
|
||||
-------
|
||||
Add the following line in kdocker.pro (in fact just uncomment it)
|
||||
DEFINES += ENABLE_TRACING
|
||||
|
||||
Now do a "make clean" and "then make".
|
||||
|
||||
Launch KDocker. Try recreating the problem.
|
||||
- Right Click on the tray icon.
|
||||
- Choose "About KDocker"
|
||||
- You should see a button called "Show Trace". Please note that this button
|
||||
will appear only when compiled with tracing
|
||||
- Try debugging yourself or send it to me
|
||||
- If you send SIGUSR1 to the KDocker process, it will dump all the trace to
|
||||
~/kdocker.trace
|
||||
|
@ -0,0 +1,19 @@
|
||||
Prerequisites
|
||||
1. Make sure you have Qt installed and working. If you dont know what Qt is,
|
||||
you must be out from a cave just now. You will need qmake to compile.
|
||||
|
||||
Building
|
||||
1. edit kdocker.pro as necessary. you should be ready to go with no change.
|
||||
2. qmake
|
||||
3. make
|
||||
4. run "make install" (optional)
|
||||
5. if you did not do a "make install" make sure kdocker is in your $PATH. This
|
||||
is required for session management to work.
|
||||
6. While making shortcuts, use the icons in /usr/local/share/kdocker/icons or
|
||||
the ones in /icons in the tar ball.
|
||||
|
||||
Please see README for tips and general information
|
||||
|
||||
IMPORTANT: Kill all previous instances of KDocker that are running before trying
|
||||
out this version
|
||||
|
@ -0,0 +1,289 @@
|
||||
#############################################################################
|
||||
# Makefile for building: kdocker
|
||||
# Generated by qmake (1.07a) (Qt 3.3.3) on: Fri Jun 17 19:36:22 2005
|
||||
# Project: kdocker.pro
|
||||
# Template: app
|
||||
# Command: $(QMAKE) -o Makefile kdocker.pro
|
||||
#############################################################################
|
||||
|
||||
####### Compiler, tools and options
|
||||
|
||||
CC = gcc
|
||||
CXX = g++
|
||||
LEX = flex
|
||||
YACC = yacc
|
||||
CFLAGS = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DTRANSLATIONS_PATH='"/usr/local/share/kdocker/i18n"' -DICONS_PATH='"/usr/local/share/kdocker/icons"' -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
|
||||
CXXFLAGS = -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -DTRANSLATIONS_PATH='"/usr/local/share/kdocker/i18n"' -DICONS_PATH='"/usr/local/share/kdocker/icons"' -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT
|
||||
LEXFLAGS =
|
||||
YACCFLAGS= -d
|
||||
INCPATH = -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -Isrc -I/usr/X11R6/include/X11 -I/usr/include/X11R6 -I$(QTDIR)/include -Itmp/
|
||||
LINK = g++
|
||||
LFLAGS =
|
||||
LIBS = $(SUBLIBS) -L/usr/X11/lib -L/usr/X11R6/lib -L$(QTDIR)/lib -L/usr/X11R6/lib -lXpm -lXmu -lqt-mt -lXext -lX11 -lm
|
||||
AR = ar cqs
|
||||
RANLIB =
|
||||
MOC = $(QTDIR)/bin/moc
|
||||
UIC = $(QTDIR)/bin/uic
|
||||
QMAKE = qmake
|
||||
TAR = tar -cf
|
||||
GZIP = gzip -9f
|
||||
COPY = cp -f
|
||||
COPY_FILE= $(COPY)
|
||||
COPY_DIR = $(COPY) -r
|
||||
INSTALL_FILE= $(COPY_FILE)
|
||||
INSTALL_DIR = $(COPY_DIR)
|
||||
DEL_FILE = rm -f
|
||||
SYMLINK = ln -sf
|
||||
DEL_DIR = rmdir
|
||||
MOVE = mv -f
|
||||
CHK_DIR_EXISTS= test -d
|
||||
MKDIR = mkdir -p
|
||||
|
||||
####### Output directory
|
||||
|
||||
OBJECTS_DIR = tmp/
|
||||
|
||||
####### Files
|
||||
|
||||
HEADERS = src/customtraylabel.h \
|
||||
src/kdocker.h \
|
||||
src/qtraylabel.h \
|
||||
src/trace.h \
|
||||
src/traylabelmgr.h \
|
||||
src/util.h
|
||||
SOURCES = src/customtraylabel.cpp \
|
||||
src/kdocker.cpp \
|
||||
src/main.cpp \
|
||||
src/qtraylabel.cpp \
|
||||
src/trace.cpp \
|
||||
src/traylabelmgr.cpp \
|
||||
src/util.cpp
|
||||
OBJECTS = tmp/customtraylabel.o \
|
||||
tmp/kdocker.o \
|
||||
tmp/main.o \
|
||||
tmp/qtraylabel.o \
|
||||
tmp/trace.o \
|
||||
tmp/traylabelmgr.o \
|
||||
tmp/util.o
|
||||
FORMS =
|
||||
UICDECLS =
|
||||
UICIMPLS =
|
||||
SRCMOC = tmp/moc_customtraylabel.cpp \
|
||||
tmp/moc_kdocker.cpp \
|
||||
tmp/moc_qtraylabel.cpp \
|
||||
tmp/moc_traylabelmgr.cpp
|
||||
OBJMOC = tmp/moc_customtraylabel.o \
|
||||
tmp/moc_kdocker.o \
|
||||
tmp/moc_qtraylabel.o \
|
||||
tmp/moc_traylabelmgr.o
|
||||
DIST = kdocker.pro
|
||||
QMAKE_TARGET = kdocker
|
||||
DESTDIR =
|
||||
TARGET = kdocker
|
||||
|
||||
first: all
|
||||
####### Implicit rules
|
||||
|
||||
.SUFFIXES: .c .o .cpp .cc .cxx .C
|
||||
|
||||
.cpp.o:
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||||
|
||||
.cc.o:
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||||
|
||||
.cxx.o:
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||||
|
||||
.C.o:
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
|
||||
|
||||
####### Build rules
|
||||
|
||||
all: Makefile $(TARGET)
|
||||
|
||||
$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC)
|
||||
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(OBJCOMP) $(LIBS)
|
||||
|
||||
mocables: $(SRCMOC)
|
||||
uicables: $(UICDECLS) $(UICIMPLS)
|
||||
|
||||
$(MOC):
|
||||
( cd $(QTDIR)/src/moc && $(MAKE) )
|
||||
|
||||
Makefile: kdocker.pro /usr/lib/qt-3.3/mkspecs/default/qmake.conf /usr/lib/qt-3.3/lib/libqt-mt.prl
|
||||
$(QMAKE) -o Makefile kdocker.pro
|
||||
qmake:
|
||||
@$(QMAKE) -o Makefile kdocker.pro
|
||||
|
||||
dist:
|
||||
@mkdir -p tmp/kdocker && $(COPY_FILE) --parents $(SOURCES) $(HEADERS) $(FORMS) $(DIST) tmp/kdocker/ && $(COPY_FILE) --parents i18n/kdocker_en.ts i18n/kdocker_es.ts i18n/kdocker_fr.ts i18n/kdocker_cs.ts i18n/kdocker_ru.ts i18n/kdocker_pt_BR.ts i18n/kdocker_de.ts i18n/kdocker_pl.ts i18n/kdocker_id.ts i18n/kdocker_it.ts i18n/kdocker_bg.ts tmp/kdocker/ && ( cd `dirname tmp/kdocker` && $(TAR) kdocker.tar kdocker && $(GZIP) kdocker.tar ) && $(MOVE) `dirname tmp/kdocker`/kdocker.tar.gz . && $(DEL_FILE) -r tmp/kdocker
|
||||
|
||||
mocclean:
|
||||
-$(DEL_FILE) $(OBJMOC)
|
||||
-$(DEL_FILE) $(SRCMOC)
|
||||
|
||||
uiclean:
|
||||
|
||||
yaccclean:
|
||||
lexclean:
|
||||
clean: mocclean
|
||||
-$(DEL_FILE) $(OBJECTS)
|
||||
-$(DEL_FILE) *~ core *.core
|
||||
|
||||
|
||||
####### Sub-libraries
|
||||
|
||||
distclean: clean
|
||||
-$(DEL_FILE) $(TARGET) $(TARGET)
|
||||
|
||||
|
||||
FORCE:
|
||||
|
||||
####### Compile
|
||||
|
||||
tmp/customtraylabel.o: src/customtraylabel.cpp src/trace.h \
|
||||
src/customtraylabel.h \
|
||||
src/traylabelmgr.h \
|
||||
src/kdocker.h \
|
||||
src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/customtraylabel.o src/customtraylabel.cpp
|
||||
|
||||
tmp/kdocker.o: src/kdocker.cpp src/trace.h \
|
||||
src/traylabelmgr.h \
|
||||
src/kdocker.h \
|
||||
src/customtraylabel.h \
|
||||
src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/kdocker.o src/kdocker.cpp
|
||||
|
||||
tmp/main.o: src/main.cpp src/kdocker.h \
|
||||
src/traylabelmgr.h \
|
||||
src/trace.h \
|
||||
src/customtraylabel.h \
|
||||
src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/main.o src/main.cpp
|
||||
|
||||
tmp/qtraylabel.o: src/qtraylabel.cpp src/trace.h \
|
||||
src/qtraylabel.h \
|
||||
src/util.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/qtraylabel.o src/qtraylabel.cpp
|
||||
|
||||
tmp/trace.o: src/trace.cpp
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/trace.o src/trace.cpp
|
||||
|
||||
tmp/traylabelmgr.o: src/traylabelmgr.cpp src/trace.h \
|
||||
src/traylabelmgr.h \
|
||||
src/util.h \
|
||||
src/customtraylabel.h \
|
||||
src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/traylabelmgr.o src/traylabelmgr.cpp
|
||||
|
||||
tmp/util.o: src/util.cpp src/trace.h \
|
||||
src/util.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/util.o src/util.cpp
|
||||
|
||||
tmp/moc_customtraylabel.o: tmp/moc_customtraylabel.cpp src/customtraylabel.h src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_customtraylabel.o tmp/moc_customtraylabel.cpp
|
||||
|
||||
tmp/moc_kdocker.o: tmp/moc_kdocker.cpp src/kdocker.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_kdocker.o tmp/moc_kdocker.cpp
|
||||
|
||||
tmp/moc_qtraylabel.o: tmp/moc_qtraylabel.cpp src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_qtraylabel.o tmp/moc_qtraylabel.cpp
|
||||
|
||||
tmp/moc_traylabelmgr.o: tmp/moc_traylabelmgr.cpp src/traylabelmgr.h src/customtraylabel.h \
|
||||
src/qtraylabel.h
|
||||
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o tmp/moc_traylabelmgr.o tmp/moc_traylabelmgr.cpp
|
||||
|
||||
tmp/moc_customtraylabel.cpp: $(MOC) src/customtraylabel.h
|
||||
$(MOC) src/customtraylabel.h -o tmp/moc_customtraylabel.cpp
|
||||
|
||||
tmp/moc_kdocker.cpp: $(MOC) src/kdocker.h
|
||||
$(MOC) src/kdocker.h -o tmp/moc_kdocker.cpp
|
||||
|
||||
tmp/moc_qtraylabel.cpp: $(MOC) src/qtraylabel.h
|
||||
$(MOC) src/qtraylabel.h -o tmp/moc_qtraylabel.cpp
|
||||
|
||||
tmp/moc_traylabelmgr.cpp: $(MOC) src/traylabelmgr.h
|
||||
$(MOC) src/traylabelmgr.h -o tmp/moc_traylabelmgr.cpp
|
||||
|
||||
####### Install
|
||||
|
||||
install_target: all
|
||||
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/bin/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/bin/"
|
||||
-$(INSTALL_FILE) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
|
||||
|
||||
uninstall_target:
|
||||
-$(DEL_FILE) "$(INSTALL_ROOT)/usr/local/bin/$(QMAKE_TARGET)"
|
||||
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/bin/"
|
||||
|
||||
|
||||
install_icons: all
|
||||
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"
|
||||
-$(INSTALL_FILE) "icons/kdocker.png" "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"
|
||||
-$(INSTALL_FILE) "icons/question.png" "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"
|
||||
|
||||
|
||||
uninstall_icons:
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/kdocker.png"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/question.png"
|
||||
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/icons/"
|
||||
|
||||
|
||||
install_docs: all
|
||||
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/"
|
||||
-$(INSTALL_FILE) "README" "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/"
|
||||
|
||||
|
||||
uninstall_docs:
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/README"
|
||||
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/docs/"
|
||||
|
||||
|
||||
install_translations: all
|
||||
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/" || $(MKDIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_bg.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_cs.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_de.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_en.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_es.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_fr.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_id.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_it.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_pl.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_pt_BR.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
-$(INSTALL_FILE) "i18n/kdocker_ru.qm" "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
|
||||
|
||||
uninstall_translations:
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_bg.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_cs.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_de.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_en.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_es.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_fr.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_id.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_it.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_pl.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_pt_BR.qm"
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/kdocker_ru.qm"
|
||||
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/local/share/kdocker/i18n/"
|
||||
|
||||
|
||||
install_desktop: all
|
||||
@$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/share/applications/" || $(MKDIR) "$(INSTALL_ROOT)/usr/share/applications/"
|
||||
-$(INSTALL_FILE) "kdocker.desktop" "$(INSTALL_ROOT)/usr/share/applications/"
|
||||
|
||||
|
||||
uninstall_desktop:
|
||||
-$(DEL_FILE) -r "$(INSTALL_ROOT)/usr/share/applications/kdocker.desktop"
|
||||
-$(DEL_DIR) "$(INSTALL_ROOT)/usr/share/applications/"
|
||||
|
||||
|
||||
install: install_target install_icons install_docs install_translations install_desktop
|
||||
|
||||
uninstall: uninstall_target uninstall_icons uninstall_docs uninstall_translations uninstall_desktop
|
||||
|
@ -0,0 +1,120 @@
|
||||
KDocker
|
||||
-------
|
||||
KDocker will help you dock any application in the system tray. This means you
|
||||
can dock openoffice, xmms, firefox, thunderbolt, eclipse, anything! Just point
|
||||
and click. Works for both KDE and GNOME (In fact it should work for most modern
|
||||
window managers that support NET WM Specification. I believe it works for XFCE,
|
||||
for instance)
|
||||
|
||||
All you need to do is start KDocker and select an application using the mouse
|
||||
and lo! the application gets docked into the system tray. The application can
|
||||
also be made to dissappear from the task bar.
|
||||
|
||||
System Tray Support
|
||||
-------------------
|
||||
KDocker supports the KDE System Tray Protocol and the System Tray Protocol from
|
||||
freedesktop.org
|
||||
|
||||
Tips to use KDocker
|
||||
-------------------
|
||||
1. On KDE, right click on K menu and use the menu editor to create a link of
|
||||
KDocker and create a shortcut (Windows key + Z). You could use the kdocker.xpm
|
||||
in the src folder as the icon (its an anchor).
|
||||
Rationale: ^Z on the shell puts processes in the background. On the same lines,
|
||||
Windows+Z will help you put windows app to the background ;) (thanks to Thomas
|
||||
McGuire for this suggestion)
|
||||
2. With KDocker 0.9, there is an option to dock the current active window (-f).
|
||||
As soon as you press WinKey+Z, the window which has the focus will be
|
||||
automatically docked. Thanks to Daniel for this neat feature request.
|
||||
|
||||
Session Management
|
||||
------------------
|
||||
IMPORTANT: Make sure KDocker is in your $PATH for Session Management to work. I
|
||||
created a link in /usr/bin to point to kdocker. KDocker will automatically dock
|
||||
all the programs that you had docked in your previous session when you log on
|
||||
the next time (provided they were all docked when you logged out).
|
||||
|
||||
When using KDocker in startup scripts, be sure to supply the "-d" switch.
|
||||
This will disable session management for that kdocker instance. This will
|
||||
prevent kdocker from docking that application twice (during startup and session
|
||||
restoration). For the same reason, make sure you use the "-d" switch, when you
|
||||
undock an application that is in a startup script and then dock it again.
|
||||
|
||||
Few programs do not support session management. For example, thunderbird may not
|
||||
launch itself automatically after you logout and logon. For such applications
|
||||
use the "-l" switch (also accessible through the menu as "Launch on startup").
|
||||
KDocker will launch thunderbird on session restoration.
|
||||
|
||||
Note that, if you have 4 applications docked using KDocker and you use
|
||||
Ctrl+Alt+Backspace to logout, nothing will be restored when log back in. (The
|
||||
shortcut kills the X server and the session is not saved). Hence, it is a good
|
||||
idea to put the applications that you intend to dock in your starup folder and
|
||||
use the "-d" switch.
|
||||
|
||||
Its a bit confusing, but I cannot find any easy way to satisfy all
|
||||
combinations. They say you design for the common case, but for KDocker I do not
|
||||
know (yet) which will be the common case. I fancy launching stuff from console
|
||||
but I am not so sure about the rest.
|
||||
|
||||
QTrayLabel
|
||||
----------
|
||||
QTrayLabel is meant to be a reusable class which will help you dock any window.
|
||||
Have a look.
|
||||
|
||||
i18n/Translations
|
||||
-----------------
|
||||
If you see the following,
|
||||
"Sorry, your locale is not supported. If you are interested in providing
|
||||
translations for your locale, contact gramakri@uiuc.edu"
|
||||
it means either
|
||||
a) KDocker could not find the translation files
|
||||
b) Translation files for your locale dont exist
|
||||
|
||||
For a), KDocker looks for the translation files in the following paths,
|
||||
- install.path/i18n
|
||||
- app.path/i18n
|
||||
- curdir/i18n
|
||||
|
||||
For b), use linguist to create the translations and provide them to me. Its
|
||||
really easy. Follow following steps,
|
||||
1. edit kdocker.pro. Look for TRANSLATIONS. Add your locale in the end. Say,
|
||||
i18n/kdocker_zz.ts
|
||||
2. from the kdocker source base, execute "lupdate kdocker.pro"
|
||||
3. "cd i18n". you should see kdocker_zz.ts.
|
||||
4. provide the translations - "linguist kdocker_zz.ts"
|
||||
5. from the kdocker source base, execute "lrelease kdocker.pro"
|
||||
6. thats it! Now test it. Make sure $LANG=zz (or appropriate). Run kdocker and
|
||||
make sure all your translations are out there.
|
||||
7. Ship the .ts file to gramakri@uiuc.edu. (I can generate the .qm file from
|
||||
the .ts file)
|
||||
|
||||
Reporting Bugs
|
||||
--------------
|
||||
Bugs and wishes to gramakri at uiuc dot edu. Follow the guidelines below , if
|
||||
possible and send it to me at gramakri at uiuc dot edu.
|
||||
|
||||
* Add the following line in kdocker.pro (in fact just uncomment it)
|
||||
DEFINES += ENABLE_TRACING
|
||||
* Now do a "make clean" and "then make".
|
||||
* Launch KDocker. Recreate the problem.
|
||||
- Right Click on the tray icon.
|
||||
- Choose "About KDocker"
|
||||
- You should see a button called "Show Trace". Please note that this button
|
||||
will appear only when compiled with tracing
|
||||
- Try debugging yourself or send it to me
|
||||
- If you send SIGUSR1 to the KDocker process, it will dump all the trace to
|
||||
~/kdocker.trace
|
||||
|
||||
Send me a postcard!
|
||||
-------------------
|
||||
If you love KDocker and would like to thank me, send me a postcard or some
|
||||
stamps to
|
||||
|
||||
Girish Ramakrishnan
|
||||
G7, Block No.12, R.K.Apartments,
|
||||
Hoysala Nagar,
|
||||
Bangalore,
|
||||
Karnataka, India
|
||||
|
||||
http:://kdocker.sourceforge.net for updates
|
||||
|
@ -0,0 +1,9 @@
|
||||
Bugs and wishes to gramakri at uiuc dot edu
|
||||
|
||||
1. Dock on close (Reparent window/QXEmbed)
|
||||
Status: Doesnt work well with decoration-less windows. Even if I hide the
|
||||
decoration, the user can click "x" on child and exit (Think of xmms).
|
||||
|
||||
2. Tamil translation
|
||||
Status: Still searching for a transliterated tamil input
|
||||
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,276 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Spustit při startu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Balloon title changes</source>
|
||||
<translation type="obsolete">Balónek při změně názvu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Dokovat při překrytí</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Dokovat při minimalizaci</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Nepoužívat panel aplikací</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>O aplikaci KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Volby
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Dokovat jiné okno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Propustit všechna okna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Propustit</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Zavřít</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 není platné okno </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Nastavit ikonu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Dokovat při obnovení sezení</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Ukázat %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Skrýt %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Použití: KDocker [volby] příkaz
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Dokuje jakoukoli aplikaci do systémové části panelu
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>příkaz Příkaz ke spuštění
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Volby</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a Ukáže informace o autorovi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f Dokuje okno, které je právě aktivní</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h Zobrazí tuto nápovědu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i ikona Vlastní ikona doku</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l Spustit při startu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o Dokovat při překrytí</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q Vypne balónek při změně názvu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t Odstraní tuto aplikaci z panelu aplikací</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w wid ID okna aplikace k dokování
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Chyby a přání posílejte na gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Informace o projektu na http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Zachycen signál %1. Čištění.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d Vypne správu sezení</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m Neskrývat aplikaci při dokování</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e Zapne správce sezení</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>Poznámka: Používejte -d pro všechny startovací skripty.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>O aplikaci KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Toto ono je už v doku.
|
||||
Klikněte na ikonu v systémové části panelu k zadokování.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Nepovedlo se forkovat: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>Systémová část panelu je skrytá nebo odstraněná</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Propustit všechna okna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignorovat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Tlačítkem 1 vyberte aplikaci / okno k zadokování.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Zrušte výběr kliknutím na jakékoli jiné tlačítko</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Nepovedlo se spustit [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Chyby a přání posílejte Girishovi Ramakrishnanovi (gramakri@uiuc.edu)
|
||||
Český překlad Jiří Hofman (jiri.hofman#a.t#tut.fi)
|
||||
|
||||
Nové verze na http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>Okno, které se snažíte dokovat, se nezdá býti normálním oknem.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,278 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Andocken, wenn Sitzung wiederhergestellt wird</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Autostart</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Symbol festlegen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Balloon title changes</source>
|
||||
<translation type="obsolete">Zeige Titelveränderungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Andocken wenn verdeckt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Andocken wenn minimiert</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Nicht in Fensterleiste anzeigen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Über KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Einstellungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Docke Weiteres</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Alle Abkoppeln</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Abkoppeln</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Beenden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 ist kein gültiges Symbol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Zeige %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Verstecke %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>Man kann kein Objekt auf einem Systemleisten-Symbol fallen lassen.
|
||||
Lassen Sie es in dem Fenster fallen, welches erscheint, wenn Sie
|
||||
das Objekt über dem Systemleisten-Symbol halten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Verwendung: KDocker [Einstellungen] Befehl
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Dockt ein beliebiges Programm in der Systemleiste an
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>Befehl <byte value="x9"/>Auszuführender Befehl
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Einstellungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a <byte value="x9"/>Zeigt Autor-Informationen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d <byte value="x9"/>Deaktiviert Sitzungsverwaltung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e <byte value="x9"/>Aktiviert Sitzungsverwaltung</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f <byte value="x9"/>Dockt das aktive Fenster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h <byte value="x9"/>Zeigt diese Hilfe</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i icon<byte value="x9"/>Eigenes Dock-Symbol</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l <byte value="x9"/>Autostart</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m <byte value="x9"/>Zeigt das Programmfenster (nicht durch Docken verstecken)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o <byte value="x9"/>Andocken wenn verdeckt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q <byte value="x9"/>Deaktiviert das Anzeigen von Titelveränderungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t <byte value="x9"/>Entfernt Programm aus der Fensterleiste</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w wid <byte value="x9"/>Fenster ID des anzudockenden Programmes
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>Anmerkung: Benutzen Sie -d für alle Startskripte.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Fehler und Wünsche an gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Projektinformationen auf http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Empfing Signal %1. Säubern.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Über KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Fehler/Wünsche an Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Deutsche Übersetzungen von Thomas Runge (try87@gmx.de)
|
||||
|
||||
http://kdocker.sourceforge.net für Aktualisierungen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Wählen Sie das Programm/Fenster, das angedockt werden soll, mit Knopf1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Klicken Sie einen anderen Knopf zum Abbrechen
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>Das Fenster, welches Sie versuchen zu docken, scheint kein normales zu sein.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Dieses Fenster ist schon angedockt.
|
||||
Klicken Sie auf das Systemleisten-Symbol, um den Dockzustand zu verändern.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Fehler beim Ausführen von [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Fehler beim Abspalten: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>Die Systemleiste wurde ausgeblendet oder entfernt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Entkopple Alle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignoriere</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,262 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,270 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Lanzar al arranque </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Balloon title changes</source>
|
||||
<translation type="obsolete">Notificar cambios de título</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Iconificar al ocultar </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Iconificar al minimizar </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>No mostrar en la barra de tareas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Acerca de KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Preferencias</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Iconificar otra ventana</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Liberar todo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Liberar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Cerar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 no es un icono válido</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Cambiar Icono</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Iconificar al restablecer sesión</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Mostrar %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Ocultar %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>No puede soltar un elemento en el icono de la bandeja. Suéltelo sobre la ventana que aparece cuando pasa con el ratón sobre el icono de la bandeja.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Uso: KDocker [opciones] comando</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Iconifica cualquier aplicación en la bandeja del sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Preferencias</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Enviar reportes de errores y suggerencias/deseos a gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Información del proyecto en http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Se recibió la señal %1. Saliendo.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>NOTA: Use -d para todos los scripts de inicio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>comando Comando a ejecutar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a Muestra información del autor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d Deshabilitar el manejo de sesiones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e Activar el manejo de sesiones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f Iconifica la ventana que tenga el foco (ventana activa)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h Muestra ésta ayuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i icon Personaliza el icono a usar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l Lanzar al inicio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m No ocultar la ventana de la aplicación al iconificarla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o Iconificar al ocultar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q Desactivar el informar de cambios de título (silencioso)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t Eliminar esta aplicación de la barra de tareas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w wid Id de la ventana de la aplicación a iconificar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Acerca de KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Ésta ventana ya está iconificada.
|
||||
Pulse el icono de la la bandeja del sistema para iconificar/mostrar.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Fallo al intentar el fork: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>La Bandeja del sistema fue ocultada o eliminada</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Liberar todos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignorar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Seleccione la aplicación/ventana a iconificar con el botón 1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Pulse cualquier otro botón para abortar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Fallo al ejecutar [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Enviar reportes de errores y suggerencias/deseos a gramakri@uiuc.edu
|
||||
Tradución al Español por Eduardo Robles Elvira (edulix@iespana.es)
|
||||
|
||||
http://kdocker.sourceforge.net para actualizaciones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>La ventana que intenta iconificar no parece ser una ventana ordinaria.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,281 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Lancer au démarrage</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Choisir une icône</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Balloon title changes</source>
|
||||
<translation type="obsolete">Actualisation des Info-bulles </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Icônifier si masquée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Icônifier si réduite</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Invisible dans la barre des tâches</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>A propos de KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Icônifier une autre fenêtre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Libérer tout</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Libérer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Fermer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 n'est pas une icône valide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Icônifier au lancement de la session
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Affiche %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Cacher %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>Il est impossible de déposer un élément directement sur l'îcone de la miniature,
|
||||
déposez le dans la fenêtre une fois celle-ci maximisée.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation>Modifier le délai des Info-bulles</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs)</source>
|
||||
<translation type="obsolete">Délai de masquage des Info-bulles (secs)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Usage: KDocker [options] commande
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Permet à n'importe quelle application d'être placée dans la boîte à miniatures
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>commande <byte value="x9"/>commande à executer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a Affiche les informations sur l'auteur</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f <byte value="x9"/>Icônifie la fenêtre active</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h <byte value="x9"/>Affiche cette aide</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i icon<byte value="x9"/>Icône spécifique pour la miniature</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l <byte value="x9"/>Lancer au démarrage</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o <byte value="x9"/>Icônifier si cachée</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q <byte value="x9"/>Désactiver l'actualisation des Infos-bulles (silencieux)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t <byte value="x9"/>Retirer de la barre des tâches</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w wid Identifiant de la fenêtre à icônifier
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Pour tout bogue ou suggestion contacter gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Plus d'informations sur http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Signal %1 intercepté. Nettoyage en cours.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d <byte value="x9"/>Désactiver le gestionnaire de session</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m <byte value="x9"/>Garder l'application visible lors de l'icônification</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e <byte value="x9"/>Activer le gestionnaire de session</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>NOTE: Utiliser -d pour tous les scripts de démarrage.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation>-b <byte value="x9"/>Pas d'avertissement pour les fenêtres non conformes (mode aveugle)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation>-v <byte value="x9"/>Affiche le numéro de version</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation>kdocker: option non valide -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation>-p secs<byte value="x9"/>Fixe le délai des Info-bulles</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>A propos de KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Cette fenêtre est déjà icônifiée.
|
||||
Cliquez sur son icône pour la faire apparaître.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Le fork a échoué: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>La boite à miniatures est cachée ou a été enlevé</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Libérer tout</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignorer</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Sélectionnez l'application/fenêtre à icônifier avec le bouton1 de la souris.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Cliquer sur n'importe quel autre bouton pour annuler
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>L'exécution de [%1] a échoué: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Bogues/suggestions Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Traduction française par Al (altrash@altern.org)
|
||||
|
||||
http://kdocker.sourceforge.net pour les mis-à-jour</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>La fenêtre que vous tentez d'icônifier ne semble pas être une fenêtre classique.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,265 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Indításkor futtatás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Dokk mikor jelentéktelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Dokk mikor minimalizált</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Tálca átugrása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>A KDockerről</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Beállítások</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Másik dokkolása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Mind kidokkolása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Kidokkolás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Bezár</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 nem érvényes ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation type="unfinished">Ikon beállítása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation type="unfinished">Dokk mikor munkamenet visszaáll</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation type="unfinished">Mutat %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation type="unfinished">Rejt %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation type="unfinished">Nem lehet egy elemet a tálcaikonra dobni. Dobja arra az ablakra, amely előtérbe jön, amikor az elemmel a tálcaikon felett áll.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished">Lufi idő</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished">Írja be a lufi időt(mp). 0-val letilthatja.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished">"%1" nem futtatható vagy nem található meg itt: $PATH </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished">Program választás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished">Mégse</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation type="unfinished">Használat: KDocker [opció] parancs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation type="unfinished">Dokkol bármilyen alkalmazást a rendszer tálcára</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation type="unfinished">parancs <byte value="x9"/>Futtatandó parancs</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Beállítások</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation type="unfinished">-a <byte value="x9"/>Szerzö információi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation type="unfinished">-f <byte value="x9"/>Dokkolja a fókuszban lévö ablakot(aktív ablak)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation type="unfinished">-h <byte value="x9"/>Ezen segítség kiírása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation type="unfinished">-i ikon<byte value="x9"/>Egyedi dokk ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation type="unfinished">-l <byte value="x9"/>Indításkor futtatás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation type="unfinished">-o <byte value="x9"/>Dokk mikor jelentéktelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation type="unfinished">-q <byte value="x9"/>Lufi változás letiltása (csendes)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation type="unfinished">-t <byte value="x9"/>Ezen alkalmazás eltávolítása a tálcáról</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation type="unfinished">-w wid <byte value="x9"/>Dokkolnadó alkalmazás ablakának id-e</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation type="unfinished">Hiba és észrevétel: ramakri@uiuc.edu.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation type="unfinished">Projekt információ: http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation type="unfinished">Szignál elkapása %1. Kitisztítás.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation type="unfinished">-d <byte value="x9"/>Munkamenet kezelö letiltása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="unfinished">-m <byte value="x9"/>Alkalmazás ablak megtartása (nincs rejtés a dokkon)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation type="unfinished">-e <byte value="x9"/>Munkamenet kezelö engedélyezése</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation type="unfinished">Megjegyzés: Használjon -d minden induló scripthez.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished">-b <byte value="x9"/>Nincs riasztás nem normál ablakoknál(vak mód)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished">-v <byte value="x9"/>Verzió kiírása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished">kdocker: nem valós opció -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished">-p mp<byte value="x9"/>Lufi idö beállítása (felbukkanási idö)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>A KDockerről</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation type="unfinished">Ez az ablak jelenleg dokkolt. Kattintson a rendszer tálca ikonra, a kidokkoláshoz.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Hiba létrehozáskor: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>A Rendszer tálca rejtett vagy eltávolított</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Mind kidokkolása</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Letiltás</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation type="unfinished">Válassza ki az alkalmazást/ablakot, hogy dokkolja a bal egérgombbal.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Kattintson bármelyik más gombbal a megszakításhoz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation type="unfinished">Hiba a futtatásban [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation type="unfinished">Hibák/Észrevételek: Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Magyar fordítás: Nyitrai István (sianis@gmail.com)
|
||||
Frissítések: http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation type="unfinished">Az ablak amelyet dokkolni akar, úgy néz ki, hogy nem normális ablak.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
||||
|
Binary file not shown.
@ -0,0 +1,275 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Lakukan docking saat sesi dipulihkan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Jalankan saat memulai </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Pilih icon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation>Tentukan waktu tampil petunjuk</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Dock saat jendela dikecilkan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Jangan tampilkan di taskbar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Tentang KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Pilihan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Dock jendela yang lain </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Undock semua jendela</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Undock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Tutup aplikasi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 bukan icon yang benar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs)</source>
|
||||
<translation type="obsolete">Masukkan waktu tampil petunjuk (detik)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Tampilkan %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Sembunyikan %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>Anda tidak dapat meletakkan sebuah item ke tray icon. Letakkan item tersebut ke jendela
|
||||
yang ada di hadapan anda saat anda mengarahkan item tersebut ke tray icon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation>kdocker: kesalahan pilihan --%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Pemakaian: KDocker [pilihan] perintah
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Dock aplikasi apa saja ke system tray
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>perintah <byte value="x9"/> Perintah yang ingin dieksekusi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Pilihan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a Tampilkan informasi pembuat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation>-b Jangan peringatkan tentang jendela yang tidak normal (blind mode)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d Non aktifkan manajemen sesi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e Aktifkan manajemen sesi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f Dock jendela yang mendapatkan fokus ( jendela aktif )</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h Tampilkan bantuan </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i icon Pilih icon sendiri</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l Jalankan saat memulai</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m Tetap memetakan jendela aplikasi ( jangan sembunyikan saat docking)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation>-p detik Tentukan waktu petunjuk (waktu tampil)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q Menonaktifkan petunjuk perubahan titlebar (quiet)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t Hilangkan aplikasi ini dari taskbar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation>-v Tampilkan versi program</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w wid id jendela aplikasi yang di dock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>CATATAN: Gunakan -d untuk semua startup script.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Bug dan masukan ke gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Informasi tentang proyek KDocker di http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Mendapat sinyal %1. Membereskan semua.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Tentang KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Bug dan masukan ke Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Terjemahan Bahasa Inggris oleh Girish (gramakri@uiuc.edu)
|
||||
Terjemahan Bahasa Indonesia oleh Eko Prasetiyo (ekoprasetiyo@gmail.com)
|
||||
|
||||
http://kdocker.sourceforge.net untuk mendapatkan update</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Pilih aplikasi/jendela yang ingin di dock dengan tombol 1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Klik tombol mana saja untuk membatalkan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>Jendela yang ingin Anda dock sepertinya bukan jendela yang normal.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Jendela sepertinya sudah di dock
|
||||
Klik icon di system tray untuk toggle docking.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Gagal mengeksekusi [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Gagal melakukan fork: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>System tray telah disembunyikan atau dihilangkan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Undock semua jendela</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Abaikan</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,278 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation type="unfinished">Includi nel Pannello quando la sessione è ripristinata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation type="unfinished">Lancia all'avvio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation type="unfinished">Imposta Icona</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished">Imposta timeout suggerimenti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation type="unfinished">Includi nel pannello quando oscurato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation type="unfinished">Includi nel pannello quando minimizzato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation type="unfinished">Non mostrare nella barra delle applicazioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation type="unfinished">Informazioni su KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Opzioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation type="unfinished">Includi nel pannello un'altra applicazione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation type="unfinished">Escludi dal pannello tutto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation type="unfinished">Escludi dal pannello</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation type="unfinished">Chiudi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation type="unfinished">KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation type="unfinished">%1 non è un'icona valida</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs)</source>
|
||||
<translation type="obsolete">Inserisci timeout (in secondi) per i suggeirmenti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation type="unfinished">Mostra %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation type="unfinished">Nascondi %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation type="unfinished">Non puoi trascinare un elemento nell'icona del vassoio di sistema.
|
||||
Trascinalo nella finestra che appare passando sopra l'icona di un elemento nel vassoio di sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished">kdocker: opzione invalida -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation type="unfinished">Uso: KDocker [opzioni] commando
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation type="unfinished">Includi ogni applicazione nel vassoio di sistema
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation type="unfinished">comando<byte value="x9"/>Comando da eseguire
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Opzioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation type="unfinished">-a <byte value="x9"/>Mostra le informazioni sull'autore</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished">-b <byte value="x9"/>Non avvisare in caso di finestre anomale (modalità cieca)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation type="unfinished">-d <byte value="x9"/>Disabilita la gestione della sessione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation type="unfinished">-e <byte value="x9"/>Abilita la gestione della sessione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation type="unfinished">-f <byte value="x9"/>Includi la finestra che ha il focus(finestra attiva) nel pannello</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation type="unfinished">-h <byte value="x9"/>Mostra questo aiuto</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation type="unfinished">-i icon<byte value="x9"/>Icona del pannello personalizzata</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation type="unfinished">-l <byte value="x9"/>Lancia all'avvio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="unfinished">-m <byte value="x9"/>Mantieni la finestra dell'applicazione mappata (non nascondere nel pannello)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation type="unfinished">-o <byte value="x9"/>Includi nel pannello quando oscurato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished">-p secs<byte value="x9"/>Imposta timeout dei suggerimenti (durata popup)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation type="unfinished">-q <byte value="x9"/>Disabilita cambio titolo nei suggerimenti (calmo)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation type="unfinished">-t <byte value="x9"/>Rimuovi questa applicazione dalla barra delle applicazioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished">-v <byte value="x9"/>Mostra versione</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation type="unfinished">-w wid<byte value="x9"/>Id della Finestra da includere nel pannello
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation type="unfinished">NOTA: Usa -d per tutti gli script di avvio.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation type="unfinished">Bugs e richieste a gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation type="unfinished">Informazioni sul Progetto su http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation type="unfinished">Ricevuto segnale %1. Pulire.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation type="unfinished">Informazioni su KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation type="unfinished">Bugs/richieste a Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Tradotto in Italiano da Alessio Cassibba (swapon@gmail.com)
|
||||
|
||||
|
||||
http://kdocker.sourceforge.net per aggiornamenti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation type="unfinished">KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation type="unfinished">Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation type="unfinished">Seleziona l'applicazione/finestra da includere nel pannello con il tasto1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation type="unfinished">Clicca un tasto qualsiasi per annullare
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation type="unfinished">La finestra che si sta cercando di includere nel pannello non sembra essere una finestra normale.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation type="unfinished">Questa finestra è già inclusa nel pannello.
|
||||
Clicca sull'icona del pannello per alternare l'inclusione nel pannello. </translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation type="unfinished">Fallito exec: [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation type="unfinished">Fallito fork: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation type="unfinished">Il Vassoio di sistema è stato nascosto o rimosso</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation type="unfinished">Escludi dal pannello</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation type="unfinished">Ignora</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,340 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>隠れた時にドックに入れる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>スタートアップに開始</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>アイコンをセット</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation>バルーン タイムアウト をセット</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>隠れた時にドックに入れる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>最小化時にドックに入れる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>タスクバーに表示しない</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>KDocker について</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>オプション</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>他のもドックに入れる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>全てをドックから出す</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>ドックから出す</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>閉じる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 は有効なアイコンではありません。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation>バルーンタイムアウト(秒)を入力して下さい。0にするとバルーニングは無効になります。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation>"%1" は実行可能でないか又は $PATH に見つかりませんでした。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation>プログラムを選択</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>キャンセル</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>%1 を表示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>%1 を隠す</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>トレイアイコンへ直接 アイテムをドロップする事はできません。
|
||||
トレイアイコン上に アイテムをドラッグすると ウィンドウが表示されますので、表示されたウィンドウに アイテムをドロップして下さい 。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation>kdocker: 無効なオプション -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>使用法: KDocker [オプション] コマンド</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command Command to execute
|
||||
</source>
|
||||
<translation type="obsolete">command 実行するコマンド</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>オプション</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a Show author information</source>
|
||||
<translation type="obsolete">-a 作者情報の表示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="obsolete">-b 非正常なウィンドウについて警告しない (ブラインド モード)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d Disable session management</source>
|
||||
<translation type="obsolete">-d セッション管理を無効にする</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e Enable session management</source>
|
||||
<translation type="obsolete">-e セッション管理を有効にする</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f Dock window that has the focus(active window)</source>
|
||||
<translation type="obsolete">-f フォーカスを持ったウィンドウ(アクティブウィンドウ) をドックに入れる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h Display this help</source>
|
||||
<translation type="obsolete">-h このヘルプを表示する</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i iconCustom dock Icon</source>
|
||||
<translation type="obsolete">-i icon カスタム ドックアイコン</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l Launch on startup</source>
|
||||
<translation type="obsolete">-l スタートアップに開始する</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="obsolete">-m ウィンドウの配置を保つ (ドックに隠さない)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o Dock when obscured</source>
|
||||
<translation type="obsolete">-o 隠れた時にドックに入れる</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secsSet ballooning timeout (popup time)</source>
|
||||
<translation type="obsolete">-p secs バルーニング タイムアウト(ポップアップ タイム) をセット</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q Disable ballooning title changes (quiet)</source>
|
||||
<translation type="obsolete">-q バルーニングタイトルの変更を無効にする</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t Remove this application from the task bar</source>
|
||||
<translation type="obsolete">-t タスクバーからこのアプリケーションを除く</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v Display version</source>
|
||||
<translation type="obsolete">-v バージョンの表示</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid Window id of the application to dock
|
||||
</source>
|
||||
<translation type="obsolete">-w wid ドックに入れるアプリケーションのWindow ID</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>注: 全てのスタートアップ スクリプトの変わりに -d を使いましょう。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>バグや要望は gramakri@uiuc.edu まで</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>プロジェクト情報 http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>KDocker について</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Japanese translation by ka (redline@ma.akari.ne.jp)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation type="obsolete">バグ/要望は、Girish Ramakrishnan (gramakri@uiuc.edu) まで
|
||||
日本語訳 by ka (redline@ma.akari.ne.jp)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>button1 にドッキングするためにアプリケーション/ウィンドウを選択してください。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>あなたがドッキングするのを試みているウィンドウは正常なウィンドウであるように思えません。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>このウィンドウは既にドッキングされています。
|
||||
システムトレイアイコンをクリックして、ドッキングを切り換えてください。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>システムトレイは、隠されたか、または取り外されました。</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>全てをドックから出す</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>無視する</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,271 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Uitvoeren tijdens opstarten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Aankoppelen tijdens verduistering</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Aankoppelen tijdens minimalisering</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Taakbalk overslaan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Info over KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Opties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Andere aankoppelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Alles ontkoppelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Ontkoppelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Afsluiten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 is niet een geldig pictogram</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Pictrogram instellen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Aankoppelen tijdens herstel van de sessie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>%1 tonen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Verberg %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>U kunt geen item laten vallen in het tray pictogram. Laat het vallen op een venster dat
|
||||
naar voren wordt gebracht wanneer u een tijdje boven het tray pictogram blijft hangen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation>Ballon interval instellen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation>Voer ballon interval (sec.) in. 0 om ballonen uit te schakelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation>"%1" is een ongeldig uitvoerbaar bestand of is niet gevonden in uw $PATH</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation>Programma selecteren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>Annuleren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Gebruik: KDocker [opties] commando
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Koppelt elke toepassing aan in het systeem dienblad
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>commando <byte value="x9"/>Commando uit te voeren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Opties</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a <byte value="x9"/>Toon auteur informatie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f <byte value="x9"/>Venster dat focus heeft aankoppelen (actieve venster)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h <byte value="x9"/>Deze hulp tonen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i pictogram <byte value="x9"/>Aangepast pictogram voor aankoppelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l <byte value="x9"/>Uitvoeren tijdens opstarten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o <byte value="x9"/>Aankoppelen tijdens verduisteren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q <byte value="x9"/>Ballonnen van titel wijzigingen uitschakelen (stil)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t <byte value="x9"/>Deze toepassing verwijderen uit het systeem dienblad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w wid <byte value="x9"/>Venster id van de aan te koppelen applicatie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Bugs en wensen naar gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Project informatie op http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Signaal %1 ontvangen. Opruimen.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d <byte value="x9"/>Sessiebeheer uitschakelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m <byte value="x9"/>Toepassingsvenster zichtbaar houden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e <byte value="x9"/>Sessiebeheer inschakelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>OPMERKING: Gebruik -d voor alle opstart scripten.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation>-b <byte value="x9"/>Niet waarschuwen over niet normale vensters (blinde modus)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation>-v <byte value="x9"/>Versie tonen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation>kdocker: ongeldige optie -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation>-p sec. <byte value="x9"/>Ballon interval instellen (popup tijd)</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Info over KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Dit venster is reeds aangekoppeld.
|
||||
Klik op het systeem dienblad pictogram om de aankoppelen aan/uit te zetten.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>Het systeem dienblad was verborgen of verwijderd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Alles Loskoppelen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Negeren</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Programma/venster selecteren om aan te koppelen met knop1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Druk op elk andere knop om te annuleren
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Mislukt [%1] uit te voeren: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Bugs/wensen naar Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Nederlandse vertaling door Jay Kamminga (jay-kamminga@home.nl)
|
||||
|
||||
http://kdocker.sourceforge.net voor updates</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>Het venster dat u probeert aan te koppelen lijkt niet een normaal venster te zijn.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,271 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Uruchamiaj przy starcie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Balloon title changes</source>
|
||||
<translation type="obsolete">Informuj o zmianach tytułu okna</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Dokuj zakryte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Dokuj zminimalizowane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Nie wyświetlaj na pasku zadań</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Informacje o programie KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Opcje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Zadokuj...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Oddokuj wszystko</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Oddokuj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Zamknij</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 nie jest poprawną ikoną</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Ustaw ikonę</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Dokuj po przywróceniu sesji</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Wyświetl %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Ukryj %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>Obiektów nie można upuszczać na ikonie w tacce systemowej. Aby przenieść
|
||||
obiekt, przesuń go nad ikonę w tacce, a następnie upuść w wyświetlonym oknie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation>Określ czas wyświetlania podpowiedzi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation>Określ czas wyświetlania podpowiedzi (w sekundach). Wartość "0" wyłącza podpowiedzi</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation>"%1" nie jest prawidłową aplikacją lub nie znajduje się w zmiennej $PATH</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation>Wybierz program</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>Anuluj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Użycie: KDocker [opcje] polecenie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>KDocker umożliwia zadokowanie dowolnej aplikacji w tacce systemowej</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>polecenie <byte value="x9"/>Polecenie, które ma zostać wykonane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Opcje</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a <byte value="x9"/>Wyświetla informacje o autorze</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f <byte value="x9"/>Dokuje aktywne okno</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h <byte value="x9"/>Wyświetla pomoc</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i <byte value="x9"/>Umożliwia określenie własnej ikony dokowania</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l <byte value="x9"/>Włącza automatyczne uruchamianie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o <byte value="x9"/>Dokuje zakryte</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q <byte value="x9"/>Wyłącza informowanie o zmianach tytułu okna (tryb cichy)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t <byte value="x9"/>Usuwa aplikację z paska zadań</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w <byte value="x9"/>Wyświetla identyfikator okna aplikacji, która ma zostać zadokowana</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Informacje o błędach i życzenia proszę kierować na adres gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Informacje o projekcie: http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Odebrano sygnał %1. Zamykanie.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d <byte value="x9"/>Wyłącza zarządzanie sesją</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m <byte value="x9"/>Umożliwia mapowanie okna aplikacji (okno nie jest ukrywane po zadokowaniu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e <byte value="x9"/>Włącza zarządzanie sesją</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>UWAGA: Proszę używać opcji -d w przypadku skryptów startowych.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation>-b <byte value="x9"/>Wyłącza ostrzegania o nienormalnych oknach (tryb ślepy)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation>-v <byte value="x9"/>Wyświetla informację o wersji programu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation>kdocker: nieprawidłowa opcja -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation>-p sekundy(tab)Określa czas wyświetlania podpowiedzi</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Informacje o programie KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>To okno zostało już zadokowane.
|
||||
Kliknij ikonę w tacce, aby je przywrócić.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Nie można uruchomić: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>Tacka systemowa jest ukryta lub została usunięta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Oddokuj wszystko</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignoruj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Wybierz aplikację lub okno do zadokowania, naciskając button1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Kilknij dowolny przycisk, aby anulować</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Nie można wykonać [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Na informacje o błędach i życzenia czeka Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Polskie tłumaczenie opracował KonMan (dedalus@o2.pl)
|
||||
|
||||
Sprawdź, czy nie jest dostępna nowa wersja: http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>Okno, które zamierzasz zadokować, nie jest zwykłym oknem.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
@ -0,0 +1,274 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Mostrar no painel quando restaurar sessão</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Executar ao iniciar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Atribuir ícone</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Balloon title changes</source>
|
||||
<translation type="obsolete">Mostrar mudanças no título</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Mostrar no painel quando sair de foco</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Mostrar no painel quando minimizado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Não mostrar na barra de tarefas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Sobre o KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Opções</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Mostrar outra aplicação no painel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Remover todos do painel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Remover do painel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Fechar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 não é um ícone válido</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Mostrar %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Esconder %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>Você não pode arrastar um item no ícone no painel. Arraste para a
|
||||
janela que aparece quando você passa o item sobre o ícone no painel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Uso: KDocker [opções] comando</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Mostra qualquer aplicação no painel do sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation>comando <byte value="x9"/>Comando a ser executado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Opções</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation>-a <byte value="x9"/>Mostra informações do autor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation>-d <byte value="x9"/>Desabilita controle de sessão</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation>-e <byte value="x9"/>Habilita controle de sessão</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation>-f <byte value="x9"/>Mostra janela que tem o foco (janela ativa) no painel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation>-h <byte value="x9"/>Mostra esta ajuda</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation>-i ico Personalizar ícone para o painel do sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation>-l <byte value="x9"/>Executar ao iniciar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation>-m <byte value="x9"/>Mantém janela do aplicativo mapeada (não esconde ao mostrar no painel)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation>-o <byte value="x9"/>Mostrar no painel ao sair de foco</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation>-q <byte value="x9"/>Desabilita mostrar a mudança nos títulos em popups (silencioso)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation>-t <byte value="x9"/>Remove esta aplicação da barra de tarefas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation>-w jan<byte value="x9"/>ID da janela da aplicação para mostrar no painel do sistema
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>NOTA: Use -d para todos os scripts de inicialização.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Bugs e pedidos para gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Informações sobre o projeto em http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Sinal %1 recebido. Limpando.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation>-b Não avise sobre janelas fora do normal (modo cego)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation>-v Mostrar versão</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Sobre o KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Bugs/Pedidos para Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Tradução para Português (Brasil) por Paulo Vinícius Vitto Ruthes (paulo.ruthes@uol.com.br)
|
||||
|
||||
http://kdocker.sourceforge.net para atualizações</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Selecione a aplicação/janela para mostrar no painel do sistema com o botão 1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Clique qualquer outro botão para cancelar
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>A janela que você está tentando mostrar no painel do sistema não aparenta ser uma janela normal.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>A janela já está no painel do sistema.
|
||||
Clique na bandeja do sistema para mostrar ou esconder a janela.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Falha ao executar [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Falha ao executar fork: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>O painel do sistema estava escondido ou não estava sendo executado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Remover todos do painel do sistema</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignorar</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,336 @@
|
||||
<!DOCTYPE TS><TS>
|
||||
<context>
|
||||
<name>CustomTrayLabel</name>
|
||||
<message>
|
||||
<source>Launch on startup</source>
|
||||
<translation>Starta vid inloggning</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when obscured</source>
|
||||
<translation>Docka när undangömd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when minimized</source>
|
||||
<translation>Docka när minimerad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Skip taskbar</source>
|
||||
<translation>Hoppa över åtgärdsrad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Om KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Flaggor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock Another</source>
|
||||
<translation>Docka en annan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Avdocka alla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock</source>
|
||||
<translation>Avdocka</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Close</source>
|
||||
<translation>Stäng</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>%1 is not a valid icon</source>
|
||||
<translation>%1 är inte en giltig ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set Icon</source>
|
||||
<translation>Ställ in ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when session restored</source>
|
||||
<translation>Docka när sessionen återställts</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Show %1</source>
|
||||
<translation>Visa %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Hide %1</source>
|
||||
<translation>Dölj %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>You cannot drop an item into the tray icon. Drop it on the window
|
||||
that is brought in front when you hover the item over the tray icon</source>
|
||||
<translation>Du kan inte släppa ett objekt på brickans ikon. Släpp det på fönstret
|
||||
som visas framför när du svävar objektet över brickans ikon</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Set balloon timeout</source>
|
||||
<translation>Ställ in tidsgräns för ballongtext</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Enter balloon timeout (secs). 0 to disable ballooning</source>
|
||||
<translation>Ange tidsgräns för ballongtext (sekunder). 0 för att inaktivera ballongtext</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>"%1" is not a valid executable or was not found in your $PATH</source>
|
||||
<translation>"%1" är inte en giltig körbar fil eller fanns inte i din $PATH</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select program</source>
|
||||
<translation>Välj program</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cancel</source>
|
||||
<translation>Avbryt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Dock when focus lost</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>KDocker</name>
|
||||
<message>
|
||||
<source>Usage: KDocker [options] command
|
||||
</source>
|
||||
<translation>Användning: KDocker [flaggor] kommando
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Docks any application into the system tray
|
||||
</source>
|
||||
<translation>Dockar program i systembrickan</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command Command to execute
|
||||
</source>
|
||||
<translation type="obsolete">command Kommando att köra
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation>Flaggor</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a Show author information</source>
|
||||
<translation type="obsolete">-a Visa information om upphovsmannen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f Dock window that has the focus(active window)</source>
|
||||
<translation type="obsolete">-f Docka fönster som har fokus(aktivt fönster)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h Display this help</source>
|
||||
<translation type="obsolete">-h Visa den här hjälpen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i iconCustom dock Icon</source>
|
||||
<translation type="obsolete">-i iconCustom Ikon för docka</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l Launch on startup</source>
|
||||
<translation type="obsolete">-l Starta vid inloggning</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o Dock when obscured</source>
|
||||
<translation type="obsolete">-o Docka när undangömd</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q Disable ballooning title changes (quiet)</source>
|
||||
<translation type="obsolete">-q Inaktivera titeländring för ballongtext (tyst)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t Remove this application from the task bar</source>
|
||||
<translation type="obsolete">-t Tar bort det här programmet från åtgärdsraden</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid Window id of the application to dock
|
||||
</source>
|
||||
<translation type="obsolete">-w wid Fönstrets id-nummer för programmet att dock</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs and wishes to gramakri@uiuc.edu</source>
|
||||
<translation>Felrapporter och önskemål till gramakri@uiuc.edu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Project information at http://kdocker.sourceforge.net</source>
|
||||
<translation>Projektinformation på http://kdocker.sourceforge.net</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Caught signal %1. Cleaning up.</source>
|
||||
<translation>Tog emot signal %1. Rensar upp.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d Disable session management</source>
|
||||
<translation type="obsolete">-d Inaktivera sessionshantering</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="obsolete">-m Behåll programfönstret mappat (dölj inte vid dockning)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e Enable session management</source>
|
||||
<translation type="obsolete">-e Aktivera sessionshantering</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>NOTE: Use -d for all startup scripts.
|
||||
</source>
|
||||
<translation>OBSERVERA: Använd -d för alla uppstartsskript.
|
||||
</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="obsolete">-b Varna inte om icke-normala fönster (blindläge)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v Display version</source>
|
||||
<translation type="obsolete">-v Visa version</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>kdocker: invalid option -- %1</source>
|
||||
<translation>kdocker: ogiltig flagga -- %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secsSet ballooning timeout (popup time)</source>
|
||||
<translation type="obsolete">-p secsSet tidsgräns för ballongtext (popup-tid)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>command <byte value="x9"/>Command to execute
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-a <byte value="x9"/>Show author information</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-b <byte value="x9"/>Dont warn about non-normal windows (blind mode)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-d <byte value="x9"/>Disable session management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-e <byte value="x9"/>Enable session management</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-f <byte value="x9"/>Dock window that has the focus(active window)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-h <byte value="x9"/>Display this help</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-i icon<byte value="x9"/>Custom dock Icon</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-l <byte value="x9"/>Launch on startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-m <byte value="x9"/>Keep application window mapped (dont hide on dock)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-o <byte value="x9"/>Dock when obscured</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-p secs<byte value="x9"/>Set ballooning timeout (popup time)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-q <byte value="x9"/>Disable ballooning title changes (quiet)</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-t <byte value="x9"/>Remove this application from the task bar</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-v <byte value="x9"/>Display version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>-w wid <byte value="x9"/>Window id of the application to dock
|
||||
</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>TrayLabelMgr</name>
|
||||
<message>
|
||||
<source>About KDocker</source>
|
||||
<translation>Om KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>KDocker</source>
|
||||
<translation>KDocker</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Girish Ramakrishnan (gramakri@uiuc.edu)</source>
|
||||
<translation>Girish Ramakrishnan (gramakri@uiuc.edu)</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>This window is already docked.
|
||||
Click on system tray icon to toggle docking.</source>
|
||||
<translation>Det här fönstret är redan dockat.
|
||||
Klicka på systembricksikonen för att växla dockning.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to fork: %1</source>
|
||||
<translation>Misslyckades med att grena process: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The System tray was hidden or removed</source>
|
||||
<translation>Systembrickan var dold eller borttagen</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Undock All</source>
|
||||
<translation>Avdocka alla</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Ignore</source>
|
||||
<translation>Ignorera</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Select the application/window to dock with button1.</source>
|
||||
<translation>Välj programmet/fönstret att dock med knapp1.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Click any other button to abort
|
||||
</source>
|
||||
<translation>Klicka på någon annan knapp för att avbryta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Failed to exec [%1]: %2</source>
|
||||
<translation>Misslyckades med att köra [%1]: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
English translation by Girish (gramakri@uiuc.edu)
|
||||
|
||||
http://kdocker.sourceforge.net for updates</source>
|
||||
<translation>Felrapporter/önskemål till Girish Ramakrishnan (gramakri@uiuc.edu)
|
||||
Svensk översättning av Daniel Nylander (po@danielnylander.se)
|
||||
|
||||
http://kdocker.sourceforge.net för uppdateringar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>The window you are attempting to dock does not seem to be a normal window.</source>
|
||||
<translation>Fönstret du försöker att docka verkar inte vara ett normalt fönster.</translation>
|
||||
</message>
|
||||
</context>
|
||||
</TS>
|
@ -0,0 +1,45 @@
|
||||
/* XPM */
|
||||
static char *kdocker_xpm[]={
|
||||
"27 24 18 1",
|
||||
". c None",
|
||||
"b c #6e6e6e",
|
||||
"g c #727272",
|
||||
"h c #777777",
|
||||
"i c #7a7a7a",
|
||||
"e c #7b7b7b",
|
||||
"f c #7c7c7c",
|
||||
"# c #7d7d7d",
|
||||
"d c #7e7e7e",
|
||||
"c c #7f7f7f",
|
||||
"j c #808080",
|
||||
"n c #818181",
|
||||
"a c #828282",
|
||||
"l c #838383",
|
||||
"m c #848484",
|
||||
"k c #858585",
|
||||
"o c #868686",
|
||||
"p c #898989",
|
||||
"...........................",
|
||||
"...###.....a...............",
|
||||
"..##b##...aaa..............",
|
||||
"..##.c#..ada...............",
|
||||
"..##e###afc................",
|
||||
"...gh#f###a...........dda..",
|
||||
"......ei###..........dddda.",
|
||||
".....aafc###.........dddda.",
|
||||
"....aaja.e###.........daa..",
|
||||
"....aaa...####........daa..",
|
||||
"...aaa.....###a.......daa..",
|
||||
"....a.......d##k......cca..",
|
||||
".............##al.....dca..",
|
||||
"..............#aac....fca..",
|
||||
"...............jaaj..#fma..",
|
||||
"................naanaa#aa..",
|
||||
".................kaaaana...",
|
||||
"..................aaaao....",
|
||||
".................aajamp....",
|
||||
"..........a....aaaaaaco....",
|
||||
".........aaaaaaaaaaa.......",
|
||||
"........aaammlalaa.........",
|
||||
".........aaaaaa............",
|
||||
"..........a................"};
|
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 332 B |
@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Name=KDocker
|
||||
GenericName=Docking utility
|
||||
Comment=Docks any application into system tray
|
||||
Exec=kdocker
|
||||
TryExec=kdocker
|
||||
Icon=/usr/local/share/kdocker/icons/kdocker.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Application;Utility;
|
@ -0,0 +1,62 @@
|
||||
TEMPLATE = app
|
||||
DEPENDPATH += i18n src
|
||||
INCLUDEPATH += . src /usr/include/X11 /usr/include/X11R6
|
||||
LIBPATH += /usr/X11/lib /usr/X11R6/lib
|
||||
LIBS = -lX11 -lXpm -lXmu
|
||||
TARGET = kdocker
|
||||
INSTALL_PATH = /usr/local/share/kdocker
|
||||
DOCS_PATH = $$INSTALL_PATH/docs
|
||||
|
||||
# Defines
|
||||
TRANSLATIONS_PATH = $$INSTALL_PATH/i18n
|
||||
DEFINES += TRANSLATIONS_PATH='"$$TRANSLATIONS_PATH"'
|
||||
|
||||
ICONS_PATH = $$INSTALL_PATH/icons
|
||||
DEFINES += ICONS_PATH='"$$ICONS_PATH"'
|
||||
|
||||
# Installation
|
||||
icons.path = $$ICONS_PATH
|
||||
icons.files = icons/kdocker.png icons/question.png
|
||||
|
||||
translations.path = $$TRANSLATIONS_PATH
|
||||
translations.files = i18n/*.qm
|
||||
|
||||
docs.path = $$DOCS_PATH
|
||||
docs.files = README
|
||||
|
||||
desktop.path = /usr/share/applications
|
||||
desktop.files = kdocker.desktop
|
||||
|
||||
target.path = /usr/local/bin
|
||||
|
||||
INSTALLS += target icons docs translations desktop
|
||||
|
||||
# Input
|
||||
HEADERS += src/customtraylabel.h \
|
||||
src/kdocker.h \
|
||||
src/qtraylabel.h \
|
||||
src/trace.h \
|
||||
src/traylabelmgr.h \
|
||||
src/util.h
|
||||
SOURCES += src/customtraylabel.cpp \
|
||||
src/kdocker.cpp \
|
||||
src/main.cpp \
|
||||
src/qtraylabel.cpp \
|
||||
src/trace.cpp \
|
||||
src/traylabelmgr.cpp \
|
||||
src/util.cpp
|
||||
|
||||
TRANSLATIONS += i18n/kdocker_en.ts i18n/kdocker_es.ts i18n/kdocker_fr.ts \
|
||||
i18n/kdocker_cs.ts i18n/kdocker_ru.ts i18n/kdocker_pt_BR.ts \
|
||||
i18n/kdocker_de.ts i18n/kdocker_pl.ts i18n/kdocker_id.ts \
|
||||
i18n/kdocker_it.ts i18n/kdocker_bg.ts i18n/kdocker_ja.ts \
|
||||
i18n/kdocker_nl.ts i18n/kdocker_hu.ts i18n/kdocker_sv.ts
|
||||
|
||||
# Debugging (Uncomment line below and make clean; make")
|
||||
# DEFINES += ENABLE_TRACING
|
||||
|
||||
# Output
|
||||
MOC_DIR = tmp
|
||||
OBJECTS_DIR = tmp
|
||||
DESTDIR = .
|
||||
|
@ -0,0 +1,360 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: customtraylabel.cpp,v 1.14 2005/06/21 10:04:35 cs19713 Exp $
|
||||
|
||||
#include <qsettings.h>
|
||||
#include <qpopupmenu.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qfiledialog.h>
|
||||
#include <qinputdialog.h>
|
||||
#include <qaction.h>
|
||||
#include <qtimer.h>
|
||||
#include <qsize.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "trace.h"
|
||||
#include "customtraylabel.h"
|
||||
#include "traylabelmgr.h"
|
||||
#include "kdocker.h"
|
||||
|
||||
CustomTrayLabel::CustomTrayLabel(Window w, QWidget* p, const QString& t)
|
||||
: QTrayLabel(w, p, t), mUndockWhenDead(false)
|
||||
{
|
||||
installMenu();
|
||||
}
|
||||
|
||||
CustomTrayLabel::CustomTrayLabel(const QStringList& argv, pid_t pid,
|
||||
QWidget* parent)
|
||||
: QTrayLabel(argv, pid, parent), mUndockWhenDead(false)
|
||||
{
|
||||
installMenu();
|
||||
}
|
||||
|
||||
/*
|
||||
* Installs a popup menu on the tray label
|
||||
*/
|
||||
void CustomTrayLabel::installMenu()
|
||||
{
|
||||
QPixmap kdocker_png(QString(ICONS_PATH) + "/kdocker.png");
|
||||
if (kdocker_png.isNull())
|
||||
kdocker_png.load(qApp->applicationDirPath() + "/icons/kdocker.png");
|
||||
setIcon(kdocker_png);
|
||||
TrayLabelMgr *tlMgr = TrayLabelMgr::instance();
|
||||
|
||||
mOptionsMenu = new QPopupMenu(this);
|
||||
mSessionManagement = new QAction(tr("Dock when session restored"), 0, this);
|
||||
mSessionManagement->setToggleAction(true);
|
||||
connect(mSessionManagement, SIGNAL(toggled(bool)),
|
||||
this, SLOT(enableSessionManagement(bool)));
|
||||
mSessionManagement->addTo(mOptionsMenu);
|
||||
|
||||
mAutoLaunch = new QAction(tr("Launch on startup"), 0, this);
|
||||
mAutoLaunch->setToggleAction(true);
|
||||
connect(mAutoLaunch, SIGNAL(activated()),
|
||||
this, SLOT(slotSetLaunchOnStartup()));
|
||||
mAutoLaunch->addTo(mOptionsMenu);
|
||||
|
||||
mOptionsMenu->insertItem(tr("Set Icon"), this, SLOT(setCustomIcon()));
|
||||
|
||||
mBalloonTimeout = new QAction(tr("Set balloon timeout"), 0, this);
|
||||
connect(mBalloonTimeout, SIGNAL(activated()),
|
||||
this, SLOT(slotSetBalloonTimeout()));
|
||||
mBalloonTimeout->addTo(mOptionsMenu);
|
||||
|
||||
mDockWhenObscured = new QAction(tr("Dock when obscured"), 0, this);
|
||||
mDockWhenObscured->setToggleAction(true);
|
||||
connect(mDockWhenObscured, SIGNAL(toggled(bool)),
|
||||
this, SLOT(setDockWhenObscured(bool)));
|
||||
mDockWhenObscured->addTo(mOptionsMenu);
|
||||
|
||||
mDockWhenMinimized = new QAction(tr("Dock when minimized"), 0, this);
|
||||
mDockWhenMinimized->setToggleAction(true);
|
||||
connect(mDockWhenMinimized, SIGNAL(toggled(bool)),
|
||||
this, SLOT(setDockWhenMinimized(bool)));
|
||||
mDockWhenMinimized->addTo(mOptionsMenu);
|
||||
|
||||
mDockWhenFocusLost = new QAction(tr("Dock when focus lost"), 0, this);
|
||||
mDockWhenFocusLost->setToggleAction(true);
|
||||
connect(mDockWhenFocusLost, SIGNAL(toggled(bool)),
|
||||
this, SLOT(setDockWhenFocusLost(bool)));
|
||||
mDockWhenFocusLost->addTo(mOptionsMenu);
|
||||
|
||||
mSkipTaskbar = new QAction(tr("Skip taskbar"), 0, this);
|
||||
mSkipTaskbar->setToggleAction(true);
|
||||
connect(mSkipTaskbar, SIGNAL(toggled(bool)),
|
||||
this, SLOT(setSkipTaskbar(bool)));
|
||||
mSkipTaskbar->addTo(mOptionsMenu);
|
||||
|
||||
mMainMenu = new QPopupMenu(this);
|
||||
mMainMenu->insertItem(QIconSet(kdocker_png),
|
||||
tr("About KDocker"), tlMgr, SLOT(about()));
|
||||
mMainMenu->insertSeparator();
|
||||
mMainMenu->insertItem(tr("Options"), mOptionsMenu);
|
||||
mMainMenu->insertItem(tr("Dock Another"), tlMgr, SLOT(dockAnother()));
|
||||
mMainMenu->insertItem(tr("Undock All"), tlMgr, SLOT(undockAll()));
|
||||
mMainMenu->insertSeparator();
|
||||
|
||||
mShowId = mMainMenu->insertItem(QString("Show/Hide [untitled]"),
|
||||
this, SLOT(toggleShow()));
|
||||
mMainMenu->insertItem(QString(tr("Undock")), this, SLOT(undock()));
|
||||
mMainMenu->insertItem(QString(tr("Close")), this, SLOT(close()));
|
||||
|
||||
connect(mMainMenu, SIGNAL(aboutToShow()), this, SLOT(updateMenu()));
|
||||
|
||||
// Apply defaults here
|
||||
setLaunchOnStartup(false);
|
||||
setDockWhenObscured(false);
|
||||
enableSessionManagement(true);
|
||||
mDockWhenMinimized->setOn(isDockWhenMinimized());
|
||||
mSkipTaskbar->setOn(isSkippingTaskbar());
|
||||
setAcceptDrops(true); // and you thought this function only installs the menu
|
||||
}
|
||||
|
||||
/*
|
||||
* Session Management
|
||||
*/
|
||||
bool CustomTrayLabel::restoreState(QSettings& settings)
|
||||
{
|
||||
mAutoLaunch->setOn(settings.readBoolEntry("/LaunchOnStartup"));
|
||||
setDockWhenObscured(settings.readBoolEntry("/DockWhenObscured"));
|
||||
TRACE("AutoLaunch=%i DWM=%i DWO=%i", isLaunchOnStartup(),
|
||||
isDockWhenMinimized(), isDockWhenObscured());
|
||||
return QTrayLabel::restoreState(settings);
|
||||
}
|
||||
|
||||
bool CustomTrayLabel::saveState(QSettings& settings)
|
||||
{
|
||||
if (!mSessionManagement->isOn()) return false;
|
||||
|
||||
QTrayLabel::saveState(settings);
|
||||
settings.writeEntry("/LaunchOnStartup", isLaunchOnStartup());
|
||||
settings.writeEntry("/DockWhenObscured", isDockWhenObscured());
|
||||
TRACE("AutoLaunch=%i DWM=%i DWO=%i", isLaunchOnStartup(),
|
||||
isDockWhenMinimized(), isDockWhenObscured());
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool which(const char *app)
|
||||
{
|
||||
if (access(app, X_OK) == 0) return true;
|
||||
|
||||
// Check if the program exist in the $PATH
|
||||
char *path = strdup(getenv("PATH"));
|
||||
char prog[300];
|
||||
if (path == NULL) return false;
|
||||
TRACE("PATH=%s", path);
|
||||
char *p = strtok(path, ":");
|
||||
while (p != NULL)
|
||||
{
|
||||
snprintf(prog, sizeof(prog), "%s/%s", p, app);
|
||||
if (access(prog, X_OK) == 0) break;
|
||||
p = strtok(NULL, ":");
|
||||
}
|
||||
free(path);
|
||||
TRACE("Located at (%s)", p);
|
||||
return p != NULL;
|
||||
}
|
||||
|
||||
// Overridden to update our menu
|
||||
void CustomTrayLabel::setDockWhenMinimized(bool dwm)
|
||||
{
|
||||
QTrayLabel::setDockWhenMinimized(dwm);
|
||||
mDockWhenMinimized->setOn(isDockWhenMinimized());
|
||||
}
|
||||
|
||||
void CustomTrayLabel::setSkipTaskbar(bool skip)
|
||||
{
|
||||
QTrayLabel::setSkipTaskbar(skip);
|
||||
mSkipTaskbar->setOn(isSkippingTaskbar());
|
||||
}
|
||||
|
||||
void CustomTrayLabel::setAppName(const QString& name)
|
||||
{
|
||||
QTrayLabel::setAppName(name.lower());
|
||||
}
|
||||
|
||||
/*
|
||||
* This function is called when QTrayLabel wants to know whether it can
|
||||
* unsubscribe from root window. This is because it doesnt know if someone
|
||||
* else is interested in root window events
|
||||
*/
|
||||
bool CustomTrayLabel::canUnsubscribeFromRoot(void)
|
||||
{
|
||||
return (TrayLabelMgr::instance())->hiddenLabelsCount() == 0;
|
||||
}
|
||||
|
||||
// Get icon from user, load it and if successful load it.
|
||||
void CustomTrayLabel::setCustomIcon(void)
|
||||
{
|
||||
QString icon;
|
||||
|
||||
while (true)
|
||||
{
|
||||
// Nag the user to give us a valid icon or press cancel
|
||||
icon = QFileDialog::getOpenFileName();
|
||||
if (icon.isNull()) return; // user cancelled
|
||||
if (!QPixmap(icon).isNull()) break;
|
||||
TRACE("Attempting to set icon to %s", icon.latin1());
|
||||
QMessageBox::critical(this, tr("KDocker"),
|
||||
tr("%1 is not a valid icon").arg(icon));
|
||||
}
|
||||
|
||||
setTrayIcon(icon);
|
||||
}
|
||||
|
||||
// Get balloon timeout from the user
|
||||
void CustomTrayLabel::slotSetBalloonTimeout(void)
|
||||
{
|
||||
bool ok;
|
||||
int timeout = QInputDialog::getInteger(tr("KDocker"),
|
||||
tr("Enter balloon timeout (secs). 0 to disable ballooning"),
|
||||
balloonTimeout()/1000, 0, 60, 1, &ok);
|
||||
|
||||
if (!ok) return;
|
||||
setBalloonTimeout(timeout * 1000);
|
||||
}
|
||||
|
||||
void CustomTrayLabel::setLaunchOnStartup(bool launch)
|
||||
{
|
||||
mAutoLaunch->setOn(launch);
|
||||
slotSetLaunchOnStartup(); // fake an "activated" signal
|
||||
}
|
||||
|
||||
void CustomTrayLabel::slotSetLaunchOnStartup()
|
||||
{
|
||||
TRACE("%i", mAutoLaunch->isOn());
|
||||
if (!mAutoLaunch->isOn()) return;
|
||||
QString app = appName();
|
||||
|
||||
TRACE("Validating %s", app.latin1());
|
||||
|
||||
while (true)
|
||||
{
|
||||
if (which(app.latin1()))
|
||||
{
|
||||
TRACE("Autolaunch enabled to %s", app.latin1());
|
||||
setAppName(app);
|
||||
mAutoLaunch->setOn(true);
|
||||
return;
|
||||
}
|
||||
|
||||
// Request user to provide file name himself
|
||||
if (QMessageBox::critical(NULL, tr("KDocker"),
|
||||
tr("\"%1\" is not a valid executable "
|
||||
"or was not found in your $PATH").arg(app),
|
||||
tr("Select program"), tr("Cancel")) == 1)
|
||||
{
|
||||
mAutoLaunch->setOn(false);
|
||||
return; // cancelled
|
||||
}
|
||||
|
||||
app = QFileDialog::getOpenFileName();
|
||||
if (app.isNull())
|
||||
{
|
||||
TRACE("Disabling auto launch");
|
||||
mAutoLaunch->setOn(false);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Called when we are just about to display the menu
|
||||
void CustomTrayLabel::updateMenu(void)
|
||||
{
|
||||
QString title = appClass(); // + "(" + appTitle() + ")";
|
||||
mMainMenu->changeItem(mShowId, QIconSet(*pixmap()),
|
||||
QString((isWithdrawn() ? tr("Show %1") : tr("Hide %1")).arg(title)));
|
||||
}
|
||||
|
||||
void CustomTrayLabel::mapEvent(void)
|
||||
{
|
||||
TRACE("mapEvent");
|
||||
if (mDockWhenObscured->isOn())
|
||||
{
|
||||
/*
|
||||
* We get a obscured event for the time between the map and focus in of
|
||||
* the window. So we disable it for sometime and reanable.
|
||||
*/
|
||||
mDockWhenObscured->setOn(false);
|
||||
QTimer::singleShot(800, mDockWhenObscured, SLOT(toggle()));
|
||||
TRACE("Turning off DWO for some time");
|
||||
}
|
||||
}
|
||||
|
||||
void CustomTrayLabel::obscureEvent(void)
|
||||
{
|
||||
TRACE("obscureEvent");
|
||||
if (mDockWhenObscured->isOn() && !isWithdrawn())
|
||||
withdraw();
|
||||
}
|
||||
|
||||
void CustomTrayLabel::focusLostEvent()
|
||||
{
|
||||
if (mDockWhenFocusLost->isOn()) withdraw();
|
||||
}
|
||||
|
||||
void CustomTrayLabel::mouseReleaseEvent(QMouseEvent * ev)
|
||||
{
|
||||
if (ev->button() == Qt::RightButton)
|
||||
mMainMenu->popup(ev->globalPos());
|
||||
else
|
||||
toggleShow();
|
||||
}
|
||||
|
||||
void CustomTrayLabel::destroyEvent(void)
|
||||
{
|
||||
mUndockWhenDead = true;
|
||||
QTrayLabel::destroyEvent();
|
||||
}
|
||||
|
||||
void CustomTrayLabel::processDead(void)
|
||||
{
|
||||
/*
|
||||
* This is a ugly hack but worth every but of ugliness IMO ;).
|
||||
* Lets say, an instance of xmms, already exists. You type kdocker xmms.
|
||||
* KDocker launches xmms. xmms cowardly exists seeing its previous instance.
|
||||
* Wouldnt it be nice now to dock the previous instance of xmms automatically.
|
||||
* This is more common than you think (think of session restoration)
|
||||
*/
|
||||
|
||||
if (!mUndockWhenDead)
|
||||
{
|
||||
scanClients();
|
||||
if (dockedWindow() != None) return;
|
||||
}
|
||||
undock();
|
||||
}
|
||||
|
||||
/*
|
||||
* Can dock this window iff not docked by another one tray label already
|
||||
*/
|
||||
bool CustomTrayLabel::canDockWindow(Window w)
|
||||
{
|
||||
TRACE("Checking if 0x%x is already docked", (unsigned) w);
|
||||
return !(TrayLabelMgr::instance()->isWindowDocked(w));
|
||||
}
|
||||
|
||||
void CustomTrayLabel::dropEvent(QDropEvent *)
|
||||
{
|
||||
QMessageBox::information(NULL, "KDocker",
|
||||
tr("You cannot drop an item into the tray icon. Drop it on the window\n"
|
||||
"that is brought in front when you hover the item over the tray icon"));
|
||||
}
|
||||
|
@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: customtraylabel.h,v 1.10 2007/01/02 21:48:37 cs19713 Exp $
|
||||
|
||||
#ifndef _CUSTOMTRAYLABEL_H
|
||||
#define _CUSTOMTRAYLABEL_H
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qaction.h>
|
||||
#include "qtraylabel.h"
|
||||
|
||||
class QStringList;
|
||||
class QPopupMenu;
|
||||
class QString;
|
||||
class QSettings;
|
||||
class QWidget;
|
||||
class QDropEvent;
|
||||
|
||||
class CustomTrayLabel : public QTrayLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CustomTrayLabel(Window w, QWidget* p = 0, const QString& t = QString::null);
|
||||
CustomTrayLabel(const QStringList& argv, pid_t pid, QWidget* parent = 0);
|
||||
|
||||
// Session management
|
||||
bool saveState(QSettings& settings);
|
||||
bool restoreState(QSettings& settings);
|
||||
|
||||
bool isLaunchOnStartup(void) const { return mAutoLaunch->isOn(); }
|
||||
bool isDockWhenObscured(void) const { return mDockWhenObscured->isOn(); }
|
||||
|
||||
void setAppName(const QString& name);
|
||||
|
||||
public slots:
|
||||
// overridden to update our menu
|
||||
void setDockWhenMinimized(bool dwm);
|
||||
void setDockWhenFocusLost(bool dfl) { mDockWhenFocusLost->setOn(dfl); }
|
||||
void setSkipTaskbar(bool skip);
|
||||
|
||||
void setLaunchOnStartup(bool launch);
|
||||
void setDockWhenObscured(bool dock) { mDockWhenObscured->setOn(dock); }
|
||||
void enableSessionManagement(bool sm) { mSessionManagement->setOn(sm); }
|
||||
|
||||
protected:
|
||||
void dropEvent(QDropEvent *ev);
|
||||
bool canUnsubscribeFromRoot(void);
|
||||
void mapEvent(void);
|
||||
void focusLostEvent();
|
||||
void obscureEvent(void);
|
||||
void destroyEvent(void);
|
||||
void mouseReleaseEvent(QMouseEvent * ev);
|
||||
bool canDockWindow(Window w);
|
||||
void processDead(void);
|
||||
|
||||
private slots:
|
||||
void setCustomIcon(void);
|
||||
void updateMenu();
|
||||
void slotSetBalloonTimeout(void);
|
||||
void slotSetLaunchOnStartup(void);
|
||||
|
||||
private:
|
||||
void installMenu();
|
||||
bool mUndockWhenDead;
|
||||
QPopupMenu *mOptionsMenu, *mMainMenu;
|
||||
QAction *mDockOnRestore, *mAutoLaunch, *mBalloonTimeout, *mSkipTaskbar,
|
||||
*mDockWhenMinimized, *mDockWhenObscured, *mSessionManagement,
|
||||
*mDockWhenFocusLost;
|
||||
int mShowId;
|
||||
};
|
||||
|
||||
#endif // _CUSTOMTRAYLABEL_H
|
@ -0,0 +1,249 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: kdocker.cpp,v 1.24 2005/02/04 10:25:46 cs19713 Exp $
|
||||
|
||||
#include <qsessionmanager.h>
|
||||
#include <qdir.h>
|
||||
#include <qfile.h>
|
||||
#include <qtranslator.h>
|
||||
#include <qtextcodec.h>
|
||||
#include <qtextstream.h>
|
||||
#include <qtimer.h>
|
||||
#include <qstring.h>
|
||||
|
||||
#include "trace.h"
|
||||
#include "traylabelmgr.h"
|
||||
#include "kdocker.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// #define TMPFILE_PREFIX QString("/tmp/kdocker.")
|
||||
#define TMPFILE_PREFIX QDir::homeDirPath() + "/.kdocker."
|
||||
|
||||
KDocker::KDocker(int& argc, char** argv)
|
||||
:QApplication(argc, argv), mTrayLabelMgr(0)
|
||||
{
|
||||
INIT_TRACE();
|
||||
|
||||
/*
|
||||
* Load localisation strings. Most examples I have seen load QTranslator
|
||||
* in main(). As a result the translator object lingers around till the end
|
||||
* of the program. I tried the same thing here and all i got was translations
|
||||
* for usage(). You dont want to know about the sleepless night i spent
|
||||
* trying to figure this out (yup, the source helped)
|
||||
*/
|
||||
QTranslator *translator = new QTranslator(0);
|
||||
QString f = QString("kdocker_") + QTextCodec::locale();
|
||||
|
||||
if (!translator->load(f, QString(TRANSLATIONS_PATH)) &&
|
||||
!translator->load(f, applicationDirPath() + "/i18n") &&
|
||||
!translator->load(f, QDir::currentDirPath() + "/i18n")) {
|
||||
qDebug("Sorry, your locale is not supported. If you are interested "
|
||||
"in providing translations for your locale, contact "
|
||||
"gramakri@uiuc.edu\n");
|
||||
}
|
||||
installTranslator(translator);
|
||||
|
||||
// Attempt doing anything only if the CLI arguments were good
|
||||
opterr = 0; // suppress the warning
|
||||
int option;
|
||||
while ((option = getopt(argc, argv, TrayLabelMgr::options().latin1())) != EOF)
|
||||
{
|
||||
if (option == '?')
|
||||
{
|
||||
if (optopt == 'v') printVersion(); else printUsage(optopt);
|
||||
::exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Detect and transfer control to previous instance (if one exists)
|
||||
* _KDOCKER_RUNNING is a X Selection. We start out by trying to locate the
|
||||
* selection owner. If someone else owns it, transfer control to that
|
||||
* instance of KDocker
|
||||
*/
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
Atom kdocker = XInternAtom(display, "_KDOCKER_RUNNING", False);
|
||||
Window prev_instance = XGetSelectionOwner(display, kdocker);
|
||||
|
||||
if (prev_instance == None)
|
||||
{
|
||||
mSelectionOwner = XCreateSimpleWindow(display, qt_xrootwin(), 1, 1, 1,
|
||||
1, 1, 1, 1);
|
||||
XSetSelectionOwner(display, kdocker, mSelectionOwner, CurrentTime);
|
||||
TRACE("Selection owner set to 0x%x", (unsigned) mSelectionOwner);
|
||||
mTrayLabelMgr = TrayLabelMgr::instance();
|
||||
}
|
||||
else
|
||||
notifyPreviousInstance(prev_instance); // does not return
|
||||
}
|
||||
|
||||
void KDocker::printVersion(void)
|
||||
{
|
||||
qDebug("Qt: %s", qVersion());
|
||||
qDebug("KDocker: %s", KDOCKER_APP_VERSION);
|
||||
}
|
||||
|
||||
// Prints the CLI arguments. Does not return
|
||||
void KDocker::printUsage(char optopt)
|
||||
{
|
||||
if (optopt != 'h') qDebug(tr("kdocker: invalid option -- %1").arg(optopt));
|
||||
|
||||
qDebug(tr("Usage: KDocker [options] command\n"));
|
||||
qDebug(tr("Docks any application into the system tray\n"));
|
||||
qDebug(tr("command \tCommand to execute\n"));
|
||||
qDebug(tr("Options"));
|
||||
qDebug(tr("-a \tShow author information"));
|
||||
qDebug(tr("-b \tDont warn about non-normal windows (blind mode)"));
|
||||
qDebug(tr("-d \tDisable session management"));
|
||||
qDebug(tr("-e \tEnable session management"));
|
||||
qDebug(tr("-f \tDock window that has the focus(active window)"));
|
||||
qDebug(tr("-h \tDisplay this help"));
|
||||
qDebug(tr("-i icon\tCustom dock Icon"));
|
||||
qDebug(tr("-l \tLaunch on startup"));
|
||||
qDebug(tr("-m \tKeep application window mapped (dont hide on dock)"));
|
||||
qDebug(tr("-o \tDock when obscured"));
|
||||
qDebug(tr("-p secs\tSet ballooning timeout (popup time)"));
|
||||
qDebug(tr("-q \tDisable ballooning title changes (quiet)"));
|
||||
qDebug(tr("-t \tRemove this application from the task bar"));
|
||||
qDebug(tr("-v \tDisplay version"));
|
||||
qDebug(tr("-w wid \tWindow id of the application to dock\n"));
|
||||
|
||||
qDebug(tr("NOTE: Use -d for all startup scripts.\n"));
|
||||
|
||||
qDebug(tr("Bugs and wishes to gramakri@uiuc.edu"));
|
||||
qDebug(tr("Project information at http://kdocker.sourceforge.net"));
|
||||
}
|
||||
|
||||
void KDocker::notifyPreviousInstance(Window prevInstance)
|
||||
{
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
|
||||
TRACE("Notifying previous instance [%x]", (unsigned) prevInstance);
|
||||
|
||||
// Dump all arguments in temporary file
|
||||
QFile f(TMPFILE_PREFIX + QString().setNum(getpid()));
|
||||
if (!f.open(IO_WriteOnly)) return;
|
||||
QTextStream s(&f);
|
||||
|
||||
/*
|
||||
* Its normal to use KDocker in startup scripts. We could be getting restored
|
||||
* from a session at the same time. So, if we were getting restored and
|
||||
* another instance already exists, send across the session id. Remember, qt
|
||||
* strips out all the arguments that it understands. So need to do it by hand.
|
||||
*/
|
||||
if (isSessionRestored())
|
||||
s << argv()[0] << " " << "-session" << " " << sessionId();
|
||||
else
|
||||
for (int i = 0; i < argc(); i++) s << argv()[i] << " ";
|
||||
|
||||
f.close();
|
||||
|
||||
/*
|
||||
* Now tell our previous instance that we came to pass. Actually, it can
|
||||
* figure it out itself using PropertyNotify events but this is a lot nicer
|
||||
*/
|
||||
XClientMessageEvent dock_event;
|
||||
memset(&dock_event, 0, sizeof(XClientMessageEvent));
|
||||
dock_event.display = display;
|
||||
dock_event.window = prevInstance;
|
||||
dock_event.send_event = True;
|
||||
dock_event.type = ClientMessage;
|
||||
dock_event.message_type = 0x220679; // it all started this day
|
||||
dock_event.format = 8;
|
||||
dock_event.data.l[0] = 0xBABE; // love letter ;)
|
||||
dock_event.data.l[1] = getpid();
|
||||
XSendEvent(display, prevInstance, False, 0, (XEvent *) &dock_event);
|
||||
XSync(display, False);
|
||||
|
||||
::exit(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* The X11 Event filter called by Qt. Look out for ClientMessage events from
|
||||
* our new instance
|
||||
*/
|
||||
bool KDocker::x11EventFilter(XEvent * event)
|
||||
{
|
||||
if (event->type == ClientMessage)
|
||||
{
|
||||
// look for requests from a new instance of kdocker
|
||||
XClientMessageEvent *client = (XClientMessageEvent *) event;
|
||||
if (!(client->message_type == 0x220679 && client->data.l[0] == 0xBABE))
|
||||
return FALSE;
|
||||
|
||||
TRACE("ClientMessage from PID=%ld. SelOwn=0x%x",
|
||||
client->data.l[1], (unsigned) mSelectionOwner);
|
||||
char tmp[50];
|
||||
struct stat buf;
|
||||
sprintf(tmp, TMPFILE_PREFIX "%ld", client->data.l[1]);
|
||||
if (stat(tmp, &buf) || (getuid()!=buf.st_uid))
|
||||
{
|
||||
/*
|
||||
* We make sure that the owner of this process and the owner of the file
|
||||
* are the same. This will prevent someone from executing arbitrary
|
||||
* programs by sending client message. Of course, you can send a message
|
||||
* only if you are authenticated to the X session and have permission to
|
||||
* create files in TMPFILE_PREFIX. So this code is there just for the
|
||||
* heck of it.
|
||||
*/
|
||||
TRACE("User %i is trying something fishy...", buf.st_uid);
|
||||
unlink(tmp);
|
||||
return TRUE;
|
||||
}
|
||||
QFile f(tmp);
|
||||
if (!f.open(IO_ReadOnly)) return TRUE;
|
||||
QTextStream s(&f);
|
||||
QStringList argv;
|
||||
while (!s.atEnd()) { QString x; s >> x; argv += x; }
|
||||
f.close();
|
||||
unlink(tmp); // delete the tmp file
|
||||
mTrayLabelMgr->processCommand(argv);
|
||||
return TRUE;
|
||||
}
|
||||
else return mTrayLabelMgr->x11EventFilter(event);
|
||||
}
|
||||
|
||||
/*
|
||||
* XSMP Support
|
||||
*/
|
||||
void KDocker::saveState(QSessionManager &sm)
|
||||
{
|
||||
QString sf = mTrayLabelMgr->saveSession();
|
||||
|
||||
QStringList discard_command;
|
||||
discard_command << "rm" << sf;
|
||||
sm.setDiscardCommand(discard_command);
|
||||
|
||||
sm.setRestartHint(QSessionManager::RestartIfRunning);
|
||||
QStringList restart_command;
|
||||
restart_command << this->argv()[0]
|
||||
<< "-session" << sm.sessionId();
|
||||
sm.setRestartCommand(restart_command);
|
||||
|
||||
TRACE("SessionFile=%s AppName=%s", sf.latin1(), this->argv()[0]);
|
||||
DUMP_TRACE(QDir::homeDirPath() + "/kdocker.trace");
|
||||
// sm.setRestartCommand(applicationFilePath());
|
||||
}
|
||||
|
@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: kdocker.h,v 1.11 2005/02/09 03:32:26 cs19713 Exp $
|
||||
|
||||
#ifndef _KDOCKER_H
|
||||
#define _KDOCKER_H
|
||||
|
||||
#include <qapplication.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
#define KDOCKER_APP_VERSION "1.3"
|
||||
|
||||
class TrayLabelMgr;
|
||||
|
||||
class KDocker : public QApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
KDocker(int& argc, char** argv);
|
||||
|
||||
TrayLabelMgr *trayLabelMgr(void) { return mTrayLabelMgr; }
|
||||
|
||||
void dumpState(const QString &file);
|
||||
void printUsage(char optopt = 'h');
|
||||
|
||||
protected:
|
||||
bool x11EventFilter(XEvent * event);
|
||||
void saveState(QSessionManager &sm);
|
||||
|
||||
private:
|
||||
QString saveSession();
|
||||
bool restoreSession();
|
||||
void notifyPreviousInstance(Window prevInstance);
|
||||
|
||||
void printVersion();
|
||||
|
||||
Window mSelectionOwner;
|
||||
TrayLabelMgr *mTrayLabelMgr;
|
||||
};
|
||||
|
||||
#endif // _KDOCKER_H
|
@ -0,0 +1,304 @@
|
||||
/* XPM */
|
||||
static char * kdocker_xpm[] = {
|
||||
"24 24 277 2",
|
||||
" c None",
|
||||
". c #0080FF",
|
||||
"+ c #007AF3",
|
||||
"@ c #349AFF",
|
||||
"# c #43A2FF",
|
||||
"$ c #43A1FE",
|
||||
"% c #3694F2",
|
||||
"& c #3B9AF8",
|
||||
"* c #409FFD",
|
||||
"= c #3F9EFD",
|
||||
"- c #3E9EFC",
|
||||
"; c #3E9DFC",
|
||||
"> c #1F87ED",
|
||||
", c #C5E2FE",
|
||||
"' c #FEFEFE",
|
||||
") c #E2E5E4",
|
||||
"! c #267126",
|
||||
"~ c #206D20",
|
||||
"{ c #327734",
|
||||
"] c #518754",
|
||||
"^ c #82A688",
|
||||
"/ c #BECBC9",
|
||||
"( c #DDE4EB",
|
||||
"_ c #74AEE8",
|
||||
": c #FAFBFC",
|
||||
"< c #EDF0F2",
|
||||
"[ c #8DAD92",
|
||||
"} c #3B7B3D",
|
||||
"| c #045F05",
|
||||
"1 c #005D00",
|
||||
"2 c #025F02",
|
||||
"3 c #056005",
|
||||
"4 c #37793C",
|
||||
"5 c #3D7F94",
|
||||
"6 c #F5F7FA",
|
||||
"7 c #F0F3F8",
|
||||
"8 c #EBF0F5",
|
||||
"9 c #E0E6ED",
|
||||
"0 c #ADC0B9",
|
||||
"a c #3B7B40",
|
||||
"b c #046004",
|
||||
"c c #539A48",
|
||||
"d c #4A9243",
|
||||
"e c #025E03",
|
||||
"f c #005100",
|
||||
"g c #FBFCFD",
|
||||
"h c #F6F8FA",
|
||||
"i c #F0F4F8",
|
||||
"j c #E5ECF3",
|
||||
"k c #E1E8F1",
|
||||
"l c #DCE5EE",
|
||||
"m c #D0DAE4",
|
||||
"n c #6D977A",
|
||||
"o c #82BB73",
|
||||
"p c #ADD69F",
|
||||
"q c #21741F",
|
||||
"r c #005700",
|
||||
"s c #FDFDFE",
|
||||
"t c #F8F9FB",
|
||||
"u c #F2F5F9",
|
||||
"v c #ECF1F6",
|
||||
"w c #E7EDF3",
|
||||
"x c #E1E9F1",
|
||||
"y c #D6E1EC",
|
||||
"z c #D1DDEA",
|
||||
"A c #CAD6E4",
|
||||
"B c #679276",
|
||||
"C c #096308",
|
||||
"D c #AEDB9B",
|
||||
"E c #CDEBBE",
|
||||
"F c #2E7C2B",
|
||||
"G c #005600",
|
||||
"H c #EFF3F7",
|
||||
"I c #E9EFF5",
|
||||
"J c #E3EAF2",
|
||||
"K c #DDE6EF",
|
||||
"L c #D8E2EC",
|
||||
"M c #D2DDEA",
|
||||
"N c #CDD9E7",
|
||||
"O c #C7D6E5",
|
||||
"P c #BBCADA",
|
||||
"Q c #307339",
|
||||
"R c #3E8B35",
|
||||
"S c #D2F5BA",
|
||||
"T c #C7E6B9",
|
||||
"U c #136A12",
|
||||
"V c #004C00",
|
||||
"W c #F9FBFC",
|
||||
"X c #F3F6F9",
|
||||
"Y c #EDF1F6",
|
||||
"Z c #DBE4EE",
|
||||
"` c #D5DFEB",
|
||||
" . c #CFDBE8",
|
||||
".. c #C9D7E6",
|
||||
"+. c #C3D2E3",
|
||||
"@. c #BECEE0",
|
||||
"#. c #82A29C",
|
||||
"$. c #035F02",
|
||||
"%. c #B0E294",
|
||||
"&. c #D4F5BD",
|
||||
"*. c #88BB7E",
|
||||
"=. c #005B00",
|
||||
"-. c #C5E1FE",
|
||||
";. c #F8FAFB",
|
||||
">. c #ECF0F6",
|
||||
",. c #DFE7F0",
|
||||
"'. c #D9E3ED",
|
||||
"). c #D3DEEA",
|
||||
"!. c #C6D5E4",
|
||||
"~. c #C0D0E2",
|
||||
"{. c #BACCDF",
|
||||
"]. c #A8BBCD",
|
||||
"^. c #116415",
|
||||
"/. c #74BA5C",
|
||||
"(. c #C5F2A7",
|
||||
"_. c #D1F2BB",
|
||||
":. c #156B13",
|
||||
"<. c #C4E1FE",
|
||||
"[. c #F2F5F8",
|
||||
"}. c #E5EBF3",
|
||||
"|. c #D9E2ED",
|
||||
"1. c #D2DEEA",
|
||||
"2. c #CCD9E7",
|
||||
"3. c #C6D4E4",
|
||||
"4. c #BFD0E1",
|
||||
"5. c #B6C7DA",
|
||||
"6. c #ACBFD3",
|
||||
"7. c #286E32",
|
||||
"8. c #52A23C",
|
||||
"9. c #B7EF90",
|
||||
"0. c #C7F3AA",
|
||||
"a. c #559B4C",
|
||||
"b. c #005400",
|
||||
"c. c #70B5F8",
|
||||
"d. c #8CC1F5",
|
||||
"e. c #89BEF3",
|
||||
"f. c #85BCF2",
|
||||
"g. c #82B9F0",
|
||||
"h. c #7EB6EE",
|
||||
"i. c #7BB4ED",
|
||||
"j. c #77B1EB",
|
||||
"k. c #74AFEA",
|
||||
"l. c #70ACE8",
|
||||
"m. c #689FD6",
|
||||
"n. c #2E7138",
|
||||
"o. c #276E30",
|
||||
"p. c #0E6312",
|
||||
"q. c #449B2D",
|
||||
"r. c #A8EC79",
|
||||
"s. c #B9F093",
|
||||
"t. c #7BBA68",
|
||||
"u. c #004E00",
|
||||
"v. c #004D00",
|
||||
"w. c #096702",
|
||||
"x. c #359A13",
|
||||
"y. c #6AC739",
|
||||
"z. c #99E963",
|
||||
"A. c #AAED7C",
|
||||
"B. c #9EDB7E",
|
||||
"C. c #3B8932",
|
||||
"D. c #196F16",
|
||||
"E. c #005C00",
|
||||
"F. c #015D00",
|
||||
"G. c #4DB915",
|
||||
"H. c #7AE233",
|
||||
"I. c #8BE64C",
|
||||
"J. c #9BEA66",
|
||||
"K. c #ACED80",
|
||||
"L. c #AFE68E",
|
||||
"M. c #176E14",
|
||||
"N. c #005000",
|
||||
"O. c #0E6F02",
|
||||
"P. c #68DB1B",
|
||||
"Q. c #7CE335",
|
||||
"R. c #8DE64F",
|
||||
"S. c #9DE968",
|
||||
"T. c #3D902D",
|
||||
"U. c #005800",
|
||||
"V. c #005A00",
|
||||
"W. c #319D07",
|
||||
"X. c #6DE01F",
|
||||
"Y. c #7EE338",
|
||||
"Z. c #5EB835",
|
||||
"`. c #046200",
|
||||
" + c #52CA09",
|
||||
".+ c #65D41E",
|
||||
"++ c #0A6805",
|
||||
"@+ c #9C9CA1",
|
||||
"#+ c #95959A",
|
||||
"$+ c #E0E0E1",
|
||||
"%+ c #C7C7C9",
|
||||
"&+ c #CDCDCF",
|
||||
"*+ c #005500",
|
||||
"=+ c #1A8100",
|
||||
"-+ c #1C8302",
|
||||
";+ c #BAB9BA",
|
||||
">+ c #F2DEC0",
|
||||
",+ c #F8F8F9",
|
||||
"'+ c #EBEBED",
|
||||
")+ c #065F06",
|
||||
"!+ c #086007",
|
||||
"~+ c #B8B6B3",
|
||||
"{+ c #E0CDAC",
|
||||
"]+ c #FAD468",
|
||||
"^+ c #EFE9D9",
|
||||
"/+ c #E5DBBD",
|
||||
"(+ c #B5B5BF",
|
||||
"_+ c #C5C3B7",
|
||||
":+ c #BEC1B4",
|
||||
"<+ c #85A0A1",
|
||||
"[+ c #B6BDB7",
|
||||
"}+ c #E1DECF",
|
||||
"|+ c #D3D1C3",
|
||||
"1+ c #AABFCA",
|
||||
"2+ c #307877",
|
||||
"3+ c #367B7F",
|
||||
"4+ c #98B0C1",
|
||||
"5+ c #CCC9BC",
|
||||
"6+ c #B8B4AC",
|
||||
"7+ c #958E9D",
|
||||
"8+ c #BCBAAE",
|
||||
"9+ c #BEBCAF",
|
||||
"0+ c #D5D2C4",
|
||||
"a+ c #BAB4A8",
|
||||
"b+ c #F3E055",
|
||||
"c+ c #E8E2AA",
|
||||
"d+ c #DEC768",
|
||||
"e+ c #9998A1",
|
||||
"f+ c #CAC7BA",
|
||||
"g+ c #77966A",
|
||||
"h+ c #67A18A",
|
||||
"i+ c #3B82AB",
|
||||
"j+ c #D8D6C8",
|
||||
"k+ c #D3D0C3",
|
||||
"l+ c #DBE3E4",
|
||||
"m+ c #F5F8FA",
|
||||
"n+ c #E2E9F1",
|
||||
"o+ c #B0BEC8",
|
||||
"p+ c #8A5593",
|
||||
"q+ c #8C3BA2",
|
||||
"r+ c #9687B4",
|
||||
"s+ c #C5C2B5",
|
||||
"t+ c #DCDACB",
|
||||
"u+ c #AFAEB0",
|
||||
"v+ c #B1ADA8",
|
||||
"w+ c #C2BBB0",
|
||||
"x+ c #ADACAE",
|
||||
"y+ c #B0AEAB",
|
||||
"z+ c #DDDACB",
|
||||
"A+ c #729472",
|
||||
"B+ c #609F92",
|
||||
"C+ c #3C82AC",
|
||||
"D+ c #D9D6C8",
|
||||
"E+ c #D9E2E4",
|
||||
"F+ c #E6EDF4",
|
||||
"G+ c #CBD9E7",
|
||||
"H+ c #A1B3C2",
|
||||
"I+ c #915A8A",
|
||||
"J+ c #8C2E8C",
|
||||
"K+ c #9F8EAF",
|
||||
"L+ c #DFDCCD",
|
||||
"M+ c #CDCBBE",
|
||||
"N+ c #B5B3B0",
|
||||
"O+ c #E0DDCE",
|
||||
"P+ c #C2C4B8",
|
||||
"Q+ c #89A2A6",
|
||||
"R+ c #BBC0B9",
|
||||
"S+ c #D5D3C5",
|
||||
"T+ c #C4C7BF",
|
||||
"U+ c #AAB2B1",
|
||||
"V+ c #A6AEAE",
|
||||
"W+ c #ADB2AD",
|
||||
"X+ c #CAC8BA",
|
||||
"Y+ c #C1BEB2",
|
||||
"Z+ c #A7A19D",
|
||||
"`+ c #C2C0B3",
|
||||
" @ c #C2BFB2",
|
||||
" ",
|
||||
" . . . . . . . . . . . . . + ",
|
||||
" @ # # # # $ % % & * = - ; > ",
|
||||
" , ' ' ' ' ) ! ~ { ] ^ / ( _ ",
|
||||
" , ' ' ' : < [ } | 1 2 3 4 5 ",
|
||||
" , ' ' : 6 7 8 9 0 a b c d e f ",
|
||||
" , ' g h i 8 j k l m n 3 o p q r ",
|
||||
" , s t u v w x l y z A B C D E F G ",
|
||||
" , g 6 H I J K L M N O P Q R S T U V ",
|
||||
" , W X Y w k Z ` ...+.@.#.$.%.&.*.=. ",
|
||||
" -.;.u >.j ,.'.).N !.~.{.].^./.(._.:. ",
|
||||
" <.t [.8 }.,.|.1.2.3.4.5.6.7.8.9.0.a.b. ",
|
||||
" c.d.e.f.g.h.i.j.k.l.m.n.o.p.q.r.s.t.=.u.v. ",
|
||||
" G w.x.y.z.A.B.C.D.E. ",
|
||||
" F.G.H.I.J.K.L.M.N. ",
|
||||
" N.O.P.Q.R.S.T.U. ",
|
||||
" V.W.X.Y.Z.F. ",
|
||||
" `. +.+++v. ",
|
||||
" @+#+$+%+&+ *+=+-+r ",
|
||||
" ;+>+,+'+ )+!+ ",
|
||||
"~+{+]+^+/+(+_+:+<+[+}+}+}+}+|+1+2+3+4+5+6+7+8+9+",
|
||||
"0+a+b+c+d+e+f+g+h+i+j+}+}+}+k+l+m+n+o+}+p+q+r+s+",
|
||||
"t+u+v+w+x+y+z+A+B+C+D+}+}+}+k+E+F+G+H+}+I+J+K+s+",
|
||||
"}+L+M+N+O+L+}+P+Q+R+}+}+}+}+S+T+U+V+W+X+Y+Z+`+ @"};
|
@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: main.cpp,v 1.7 2004/11/08 07:14:18 cs19713 Exp $
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <qdir.h>
|
||||
#include "kdocker.h"
|
||||
#include "traylabelmgr.h"
|
||||
#include "trace.h"
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
static void sighandler(int sig)
|
||||
{
|
||||
if (sig == SIGUSR1)
|
||||
{
|
||||
DUMP_TRACE(QDir::homeDirPath() + "/kdocker.trace");
|
||||
return;
|
||||
}
|
||||
|
||||
qDebug(qApp->translate("KDocker", "Caught signal %1. Cleaning up.").arg(sig));
|
||||
((KDocker *)qApp)->trayLabelMgr()->undockAll();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
// setup signal handlers that undock and quit
|
||||
signal(SIGHUP, sighandler);
|
||||
signal(SIGSEGV, sighandler);
|
||||
signal(SIGTERM, sighandler);
|
||||
signal(SIGINT, sighandler);
|
||||
signal(SIGUSR1, sighandler);
|
||||
|
||||
KDocker app(argc, argv);
|
||||
return app.exec();
|
||||
}
|
@ -0,0 +1,809 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: qtraylabel.cpp,v 1.31 2005/06/21 10:04:36 cs19713 Exp $
|
||||
|
||||
// Include all Qt includes before X
|
||||
#include <qstring.h>
|
||||
#include <qevent.h>
|
||||
#include <qpoint.h>
|
||||
#include <qtooltip.h>
|
||||
#include <qtimer.h>
|
||||
#include <qimage.h>
|
||||
#include <qpixmap.h>
|
||||
#include <qfileinfo.h>
|
||||
#include <qapplication.h>
|
||||
#include "trace.h"
|
||||
#include "qtraylabel.h"
|
||||
|
||||
#include <X11/cursorfont.h>
|
||||
#include <X11/xpm.h>
|
||||
#include <Xmu/WinUtil.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
void QTrayLabel::initialize(void)
|
||||
{
|
||||
mDocked = false;
|
||||
mWithdrawn = true;
|
||||
mBalloonTimeout = 4000;
|
||||
mSkippingTaskbar = false;
|
||||
mDockWhenMinimized = true;
|
||||
mDesktop = 666; // setDockedWindow would set it a saner value
|
||||
|
||||
// Balloon's properties are set to match a Qt tool tip (see Qt source)
|
||||
mBalloon = new QLabel(0, "balloon", WType_TopLevel | WStyle_StaysOnTop |
|
||||
WStyle_Customize | WStyle_NoBorder |
|
||||
WStyle_Tool | WX11BypassWM);
|
||||
mBalloon->setFont(QToolTip::font());
|
||||
mBalloon->setPalette(QToolTip::palette());
|
||||
mBalloon->setAlignment(Qt::AlignLeft | Qt::AlignTop);
|
||||
mBalloon->setAutoMask(FALSE);
|
||||
mBalloon->setAutoResize(true);
|
||||
setAlignment(Qt::AlignCenter);
|
||||
setBackgroundMode(X11ParentRelative);
|
||||
|
||||
connect(&mRealityMonitor, SIGNAL(timeout()), this, SLOT(realityCheck()));
|
||||
setDockedWindow(mDockedWindow);
|
||||
|
||||
sysTrayStatus(QPaintDevice::x11AppDisplay(), &mSysTray);
|
||||
// Subscribe to system tray window notifications
|
||||
if (mSysTray != None)
|
||||
subscribe(QPaintDevice::x11AppDisplay(), mSysTray,
|
||||
StructureNotifyMask, true);
|
||||
}
|
||||
|
||||
// Describe ourselves in a few words
|
||||
const char *QTrayLabel::me(void) const
|
||||
{
|
||||
static char temp[100];
|
||||
snprintf(temp, sizeof(temp), "(%s,PID=%i,WID=0x%x)",
|
||||
mProgName[0].latin1(), mPid, (unsigned) mDockedWindow);
|
||||
return temp;
|
||||
}
|
||||
|
||||
QTrayLabel::QTrayLabel(Window w, QWidget* parent, const QString& text)
|
||||
:QLabel(parent, text, WStyle_Customize | WStyle_NoBorder | WStyle_Tool),
|
||||
mDockedWindow(w), mPid(0)
|
||||
{
|
||||
initialize();
|
||||
}
|
||||
|
||||
QTrayLabel::QTrayLabel(const QStringList& pname, pid_t pid, QWidget* parent)
|
||||
:QLabel(parent, "TrayLabel", WStyle_Customize | WStyle_NoBorder | WStyle_Tool),
|
||||
mDockedWindow(None), mProgName(pname), mPid(pid)
|
||||
{
|
||||
if (pname[0].at(0) != '/' && pname[0].find('/', 1) > 0)
|
||||
mProgName[0] = QFileInfo(pname[0]).absFilePath(); // convert to absolute
|
||||
initialize();
|
||||
}
|
||||
|
||||
QTrayLabel::~QTrayLabel()
|
||||
{
|
||||
TRACE("%s Goodbye", me());
|
||||
if (mDockedWindow == None) return;
|
||||
// Leave the docked window is some sane state
|
||||
mSkippingTaskbar = false;
|
||||
skipTaskbar();
|
||||
map();
|
||||
}
|
||||
|
||||
/*
|
||||
* Scans the windows in the desktop and checks if a window exists that we might
|
||||
* be interested in
|
||||
*/
|
||||
void QTrayLabel::scanClients()
|
||||
{
|
||||
Window r, parent, *children;
|
||||
unsigned nchildren = 0;
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
QString ename = QFileInfo(mProgName[0]).fileName(); // strip out the path
|
||||
|
||||
XQueryTree(display, qt_xrootwin(), &r, &parent, &children, &nchildren);
|
||||
TRACE("%s nchildren=%i", me(), nchildren);
|
||||
for(unsigned i=0; i<nchildren; i++)
|
||||
{
|
||||
Window w = XmuClientWindow(display, children[i]);
|
||||
TRACE("\t%s checking 0x%x", me(), (unsigned) w);
|
||||
if (!isNormalWindow(display, w)) continue;
|
||||
if (analyzeWindow(display, w, mPid, ename.latin1()))
|
||||
{
|
||||
TRACE("\t%s SOULMATE FOUND", me());
|
||||
setDockedWindow(w);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Do a reality check :). Note that this timer runs only when required. Does 3
|
||||
* things,
|
||||
* 1) If the system tray had disappeared, checks for arrival of new system tray
|
||||
* 2) Check root window subscription since it is overwritten by Qt (see below)
|
||||
* 3) Checks health of the process whose windows we are docking
|
||||
*/
|
||||
void QTrayLabel::realityCheck(void)
|
||||
{
|
||||
if (mSysTray == None)
|
||||
{
|
||||
// Check the system tray status if we were docked
|
||||
if (sysTrayStatus(QPaintDevice::x11AppDisplay(), &mSysTray)
|
||||
!= SysTrayPresent) return; // no luck
|
||||
|
||||
TRACE("%s System tray present", me());
|
||||
dock();
|
||||
subscribe(QPaintDevice::x11AppDisplay(), mSysTray,
|
||||
StructureNotifyMask, true);
|
||||
mRealityMonitor.stop();
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* I am not sure when, but Qt at some point in time overwrites our
|
||||
* subscription (SubstructureNotifyMask) on the root window. So, we check
|
||||
* the status of root window subscription periodically. Now, from the time
|
||||
* Qt overwrote our subscription to the time we discovered it, the
|
||||
* window we are looking for could have been mapped and we would have never
|
||||
* been informed (since Qt overrwrote the subscription). So we have to
|
||||
* scan existing client list and dock. I have never seen this happen
|
||||
* but I see it likely to happen during session restoration
|
||||
*/
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
XWindowAttributes attr;
|
||||
XGetWindowAttributes(display, qt_xrootwin(), &attr);
|
||||
|
||||
if (!(attr.your_event_mask & SubstructureNotifyMask))
|
||||
{
|
||||
subscribe(display, None, SubstructureNotifyMask, true);
|
||||
TRACE("%s rescanning clients since qt overrode mask", me());
|
||||
scanClients();
|
||||
}
|
||||
|
||||
if (mPid)
|
||||
{
|
||||
// Check process health
|
||||
int status;
|
||||
if (waitpid(mPid, &status, WNOHANG) == 0) return; // still running
|
||||
TRACE("%s processDead", me());
|
||||
mPid = 0;
|
||||
processDead();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Sends a message to the WM to show this window on all the desktops
|
||||
*/
|
||||
void QTrayLabel::showOnAllDesktops(void)
|
||||
{
|
||||
TRACE("Showing on all desktops");
|
||||
Display *d = QPaintDevice::x11AppDisplay();
|
||||
long l[5] = { -1, 0, 0, 0, 0 }; // -1 = all, 0 = Desktop1, 1 = Desktop2 ...
|
||||
sendMessage(d, qt_xrootwin(), mDockedWindow, "_NET_WM_DESKTOP", 32,
|
||||
SubstructureNotifyMask | SubstructureRedirectMask, l, sizeof(l));
|
||||
}
|
||||
|
||||
// System tray messages
|
||||
const long SYSTEM_TRAY_REQUEST_DOCK = 0;
|
||||
const long SYSTEM_TRAY_BEGIN_MESSAGE = 1;
|
||||
const long SYSTEM_TRAY_CANCEL_MESSAGE = 2;
|
||||
|
||||
/*
|
||||
* Add the window to the system tray. Different WM require different hints to be
|
||||
* set. We support the following (Google for more information),
|
||||
* 1. GNOME - SYSTEM_TRAY_REQUEST_DOCK (freedesktop.org)
|
||||
* 2. KDE 3.x and above - _KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR
|
||||
* 3. Older KDE - KWM_DOCKWINDOW (Untested)
|
||||
*/
|
||||
void QTrayLabel::dock(void)
|
||||
{
|
||||
TRACE("%s", me());
|
||||
mDocked = true;
|
||||
if (mDockedWindow == None) return; // nothing to add
|
||||
|
||||
if (mSysTray == None) // no system tray yet
|
||||
{
|
||||
TRACE("%s starting reality monitor", me());
|
||||
mRealityMonitor.start(500);
|
||||
return;
|
||||
}
|
||||
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
Window wid = winId();
|
||||
|
||||
// 1. GNOME and NET WM Specification
|
||||
long l[5] = { CurrentTime, SYSTEM_TRAY_REQUEST_DOCK, wid, 0, 0 };
|
||||
sendMessage(display, mSysTray, mSysTray, "_NET_SYSTEM_TRAY_OPCODE",
|
||||
32, 0L, l, sizeof(l));
|
||||
|
||||
// 2. KDE 3.x and above
|
||||
Atom tray_atom =
|
||||
XInternAtom(display, "_KDE_NET_WM_SYSTEM_TRAY_WINDOW_FOR", False);
|
||||
XChangeProperty(display, wid, tray_atom, XA_WINDOW, 32,
|
||||
PropModeReplace, (unsigned char *) &wid, 1);
|
||||
|
||||
// 3. All other KDEs
|
||||
tray_atom = XInternAtom(display, "KWM_DOCKWINDOW", False);
|
||||
XChangeProperty(display, wid, tray_atom, XA_WINDOW, 32,
|
||||
PropModeReplace, (unsigned char *) &wid, 1);
|
||||
|
||||
TRACE("%s ", me());
|
||||
|
||||
handleTitleChange();
|
||||
handleIconChange();
|
||||
|
||||
if (mProgName.count() == 0) setAppName(mClass);
|
||||
|
||||
/*
|
||||
* For Gnome, a delay is required before we do a show (dont ask me why)
|
||||
* If I do a show() without any delay, sometimes the icon has width=1 pixel
|
||||
* even though the minimumSizeHint = 24, 24. I have successfully got it
|
||||
* working with with a delay of as little as 50ms. But since I
|
||||
* dont understand why this delay is required, I am justifiably paranoid
|
||||
*/
|
||||
QTimer::singleShot(500, this, SLOT(show()));
|
||||
|
||||
// let the world know
|
||||
emit docked(this);
|
||||
emit docked();
|
||||
}
|
||||
|
||||
/*
|
||||
* Undocks. Removes us from the system tray. The spec doesnt say how an icon
|
||||
* can be removed from the tray. KDE Spec says XUnmapWindow or XWithdraw should
|
||||
* be used. It works but the system tray does not fill the void that we left
|
||||
* in the tray. Looks like the system tray will resize only for DestroyEvents
|
||||
*/
|
||||
void QTrayLabel::undock(void)
|
||||
{
|
||||
TRACE("%s stopping reality monitor", me());
|
||||
mRealityMonitor.stop();
|
||||
XUnmapWindow(QPaintDevice::x11AppDisplay(), winId());
|
||||
emit undocked(this);
|
||||
emit undocked();
|
||||
}
|
||||
|
||||
/*
|
||||
* Maps the window from the same place it was withdrawn from
|
||||
*/
|
||||
void QTrayLabel::map(void)
|
||||
{
|
||||
TRACE("%s", me());
|
||||
mWithdrawn = false;
|
||||
if (mDockedWindow == None) return;
|
||||
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
|
||||
if (mDesktop == -1)
|
||||
{
|
||||
/*
|
||||
* We track _NET_WM_DESKTOP changes in the x11EventFilter. Its used here.
|
||||
* _NET_WM_DESKTOP is set by the WM to the active desktop for newly
|
||||
* mapped windows (like this one) at some point in time. We give
|
||||
* the WM 200ms to do that. We will override that value to -1 (all
|
||||
* desktops) on showOnAllDesktops().
|
||||
*/
|
||||
QTimer::singleShot(200, this, SLOT(showOnAllDesktops()));
|
||||
}
|
||||
|
||||
/*
|
||||
* A simple XMapWindow would not do. Some applications like xmms wont
|
||||
* redisplay its other windows (like the playlist, equalizer) since the
|
||||
* Withdrawn->Normal state change code does not map them. So we make the
|
||||
* window go through Withdrawn->Iconify->Normal state.
|
||||
*/
|
||||
XWMHints *wm_hint = XGetWMHints(display, mDockedWindow);
|
||||
if (wm_hint)
|
||||
{
|
||||
wm_hint->initial_state = IconicState;
|
||||
XSetWMHints(display, mDockedWindow, wm_hint);
|
||||
XFree(wm_hint);
|
||||
}
|
||||
|
||||
XMapWindow(display, mDockedWindow);
|
||||
mSizeHint.flags = USPosition; // Obsolete ?
|
||||
XSetWMNormalHints(display, mDockedWindow, &mSizeHint);
|
||||
// make it the active window
|
||||
long l[5] = { None, CurrentTime, None, 0, 0 };
|
||||
sendMessage(display, qt_xrootwin(), mDockedWindow, "_NET_ACTIVE_WINDOW", 32,
|
||||
SubstructureNotifyMask | SubstructureRedirectMask, l, sizeof(l));
|
||||
// skipTaskbar modifies _NET_WM_STATE. Make sure we dont override WMs value
|
||||
QTimer::singleShot(230, this, SLOT(skipTaskbar()));
|
||||
// disable docking when minized for some time (since we went to Iconic state)
|
||||
mDockWhenMinimized = !mDockWhenMinimized;
|
||||
QTimer::singleShot(230, this, SLOT(toggleDockWhenMinimized()));
|
||||
}
|
||||
|
||||
void QTrayLabel::withdraw(void)
|
||||
{
|
||||
TRACE("%s", me());
|
||||
mWithdrawn = true;
|
||||
if (mDockedWindow == None) return;
|
||||
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
int screen = DefaultScreen(display);
|
||||
long dummy;
|
||||
|
||||
XGetWMNormalHints(display, mDockedWindow, &mSizeHint, &dummy);
|
||||
|
||||
/*
|
||||
* A simple call to XWithdrawWindow wont do. Here is what we do:
|
||||
* 1. Iconify. This will make the application hide all its other windows. For
|
||||
* example, xmms would take off the playlist and equalizer window.
|
||||
* 2. Next tell the WM, that we would like to go to withdrawn state. Withdrawn
|
||||
* state will remove us from the taskbar.
|
||||
* Reference: ICCCM 4.1.4 Changing Window State
|
||||
*/
|
||||
XIconifyWindow(display, mDockedWindow, screen); // good for effects too
|
||||
XUnmapWindow(display, mDockedWindow);
|
||||
XUnmapEvent ev;
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
ev.type = UnmapNotify;
|
||||
ev.display = display;
|
||||
ev.event = qt_xrootwin();
|
||||
ev.window = mDockedWindow;
|
||||
ev.from_configure = false;
|
||||
XSendEvent(display, qt_xrootwin(), False,
|
||||
SubstructureRedirectMask|SubstructureNotifyMask, (XEvent *)&ev);
|
||||
XSync(display, False);
|
||||
}
|
||||
|
||||
/*
|
||||
* Skipping the taskbar is a bit painful. Basically, NET_WM_STATE needs to
|
||||
* have _NET_WM_STATE_SKIP_TASKBAR. NET_WM_STATE needs to be updated
|
||||
* carefully since it is a set of states.
|
||||
*/
|
||||
void QTrayLabel::skipTaskbar(void)
|
||||
{
|
||||
Atom __attribute__ ((unused)) type;
|
||||
int __attribute__ ((unused)) format;
|
||||
unsigned long __attribute__ ((unused)) left;
|
||||
Atom *data = NULL;
|
||||
unsigned long nitems = 0, num_states = 0;
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
|
||||
TRACE("%s", me());
|
||||
Atom _NET_WM_STATE = XInternAtom(display, "_NET_WM_STATE", True);
|
||||
Atom skip_atom = XInternAtom(display, "_NET_WM_STATE_SKIP_TASKBAR", False);
|
||||
int ret = XGetWindowProperty(display, mDockedWindow, _NET_WM_STATE, 0,
|
||||
20, False, AnyPropertyType, &type, &format,
|
||||
&nitems, &left, (unsigned char **) &data);
|
||||
Atom *old_states = (Atom *) data;
|
||||
bool append = true, replace = false;
|
||||
|
||||
if ((ret == Success) && data)
|
||||
{
|
||||
// Search for the skip_atom. Stop when found
|
||||
for (num_states = 0; num_states < nitems; num_states++)
|
||||
if (old_states[num_states] == skip_atom) break;
|
||||
|
||||
if (mSkippingTaskbar)
|
||||
append = (num_states >= nitems);
|
||||
else
|
||||
{
|
||||
if (num_states < nitems)
|
||||
{
|
||||
replace = true; // need to remove skip_atom
|
||||
for (; num_states < nitems - 1; num_states++)
|
||||
old_states[num_states] = old_states[num_states + 1];
|
||||
}
|
||||
}
|
||||
XFree(data);
|
||||
}
|
||||
|
||||
TRACE("%s SkippingTaskar=%i append=%i replace=%i", me(), mSkippingTaskbar,
|
||||
append, replace);
|
||||
|
||||
if (mSkippingTaskbar)
|
||||
{
|
||||
if (append)
|
||||
XChangeProperty(display, mDockedWindow, _NET_WM_STATE, XA_ATOM, 32,
|
||||
PropModeAppend, (unsigned char *) &skip_atom, 1);
|
||||
}
|
||||
else if (replace)
|
||||
XChangeProperty(display, mDockedWindow, _NET_WM_STATE, XA_ATOM, 32,
|
||||
PropModeReplace, (unsigned char *) &old_states, nitems - 1);
|
||||
}
|
||||
|
||||
void QTrayLabel::setSkipTaskbar(bool skip)
|
||||
{
|
||||
TRACE("%s Skip=%i", me(), skip);
|
||||
mSkippingTaskbar = skip;
|
||||
if (mDockedWindow != None && !mWithdrawn) skipTaskbar();
|
||||
}
|
||||
|
||||
/*
|
||||
* Closes a window by sending _NET_CLOSE_WINDOW. For reasons best unknown we
|
||||
* need to first map and then send the request.
|
||||
*/
|
||||
void QTrayLabel::close(void)
|
||||
{
|
||||
TRACE("%s", me());
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
long l[5] = { 0, 0, 0, 0, 0 };
|
||||
map();
|
||||
sendMessage(display, qt_xrootwin(), mDockedWindow, "_NET_CLOSE_WINDOW", 32,
|
||||
SubstructureNotifyMask | SubstructureRedirectMask,
|
||||
l, sizeof(l));
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets the tray icon. If the icon failed to load, we revert to application icon
|
||||
*/
|
||||
void QTrayLabel::setTrayIcon(const QString& icon)
|
||||
{
|
||||
mCustomIcon = icon;
|
||||
if (QPixmap(mCustomIcon).isNull()) mCustomIcon = QString::null;
|
||||
TRACE("%s mCustomIcon=%s", me(), mCustomIcon.latin1());
|
||||
updateIcon();
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets the docked window to w.
|
||||
* A) Start/stop reality timer.
|
||||
* B) Subscribe/Unsubscribe for root/w notifications as appropriate
|
||||
* C) And of course, dock the window and apply some settings
|
||||
*/
|
||||
void QTrayLabel::setDockedWindow(Window w)
|
||||
{
|
||||
TRACE("%s %s reality monitor", me(),
|
||||
mDockedWindow==None ? "Starting" : "Stopping");
|
||||
|
||||
// Check if we are allowed to dock this window (allows custom rules)
|
||||
if (w != None) mDockedWindow = canDockWindow(w) ? w : None;
|
||||
else mDockedWindow = None;
|
||||
|
||||
if (mDockedWindow == None) mRealityMonitor.start(500);
|
||||
else mRealityMonitor.stop();
|
||||
|
||||
Display *d = QPaintDevice::x11AppDisplay();
|
||||
|
||||
// Subscribe for window or root window events
|
||||
if (w == None) subscribe(d, None, SubstructureNotifyMask, true);
|
||||
else
|
||||
{
|
||||
if (canUnsubscribeFromRoot())
|
||||
subscribe(d, None, ~SubstructureNotifyMask, false);
|
||||
else subscribe(d, None, SubstructureNotifyMask, true);
|
||||
|
||||
subscribe(d, w,
|
||||
StructureNotifyMask | PropertyChangeMask |
|
||||
VisibilityChangeMask | FocusChangeMask,
|
||||
true);
|
||||
}
|
||||
|
||||
if (mDocked && w!=None)
|
||||
{
|
||||
// store the desktop on which the window is being shown
|
||||
getCardinalProperty(d, mDockedWindow,
|
||||
XInternAtom(d, "_NET_WM_DESKTOP", True), &mDesktop);
|
||||
|
||||
if (mWithdrawn)
|
||||
// show the window for sometime before docking
|
||||
QTimer::singleShot(1000, this, SLOT(withdraw()));
|
||||
else map();
|
||||
dock();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Balloon text. Overload this if you dont like the way things are ballooned
|
||||
*/
|
||||
void QTrayLabel::balloonText()
|
||||
{
|
||||
TRACE("%s BalloonText=%s ToolTipText=%s", me(),
|
||||
mBalloon->text().latin1(), QToolTip::textFor(this).latin1());
|
||||
|
||||
if (mBalloon->text() == QToolTip::textFor(this)) return;
|
||||
#if 0 // I_GOT_NETWM_BALLOONING_TO_WORK
|
||||
// if you can get NET WM ballooning to work let me know
|
||||
static int id = 1;
|
||||
long l[5] = { CurrentTime, SYSTEM_TRAY_BEGIN_MESSAGE, 2000,
|
||||
mTitle.length(), id++
|
||||
};
|
||||
sendMessage(display, mSystemTray, winId(), "_NET_SYSTEM_TRAY_OPCODE", 32,
|
||||
SubstructureNotifyMask | SubstructureRedirectMask,
|
||||
l, sizeof(l));
|
||||
int length = mTitle.length();
|
||||
const char *data = mTitle.latin1();
|
||||
while (length > 0)
|
||||
{
|
||||
sendMessage(display, mSystemTray, winId(), "_NET_SYSTEM_TRAY_MESSAGE_DATA", 8,
|
||||
SubstructureNotifyMask | SubstructureRedirectMask,
|
||||
(void *) data, length > 20 ? 20 : length);
|
||||
length -= 20;
|
||||
data += 20;
|
||||
}
|
||||
#else
|
||||
// Manually do ballooning. See the Qt ToolTip code
|
||||
QString oldText = mBalloon->text();
|
||||
mBalloon->setText(QToolTip::textFor(this));
|
||||
if (oldText.isEmpty()) return; // dont tool tip the first time
|
||||
QPoint p = mapToGlobal(QPoint(0, -1 - mBalloon->height()));
|
||||
if (p.x() + mBalloon->width() > QApplication::desktop()->width())
|
||||
p.setX(p.x() + width() - mBalloon->width());
|
||||
|
||||
if (p.y() < 0) p.setY(height() + 1);
|
||||
|
||||
mBalloon->move(p);
|
||||
mBalloon->show();
|
||||
QTimer::singleShot(mBalloonTimeout, mBalloon, SLOT(hide()));
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* Update the title in the menu. Balloon the title change if necessary
|
||||
*/
|
||||
void QTrayLabel::handleTitleChange(void)
|
||||
{
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
char *window_name = NULL;
|
||||
|
||||
XFetchName(display, mDockedWindow, &window_name);
|
||||
mTitle = window_name;
|
||||
TRACE("%s has title [%s]", me(), mTitle.latin1());
|
||||
if (window_name) XFree(window_name);
|
||||
|
||||
XClassHint ch;
|
||||
if (XGetClassHint(display, mDockedWindow, &ch))
|
||||
{
|
||||
if (ch.res_class) mClass = QString(ch.res_class);
|
||||
else if (ch.res_name) mClass = QString(ch.res_name);
|
||||
|
||||
if (ch.res_class) XFree(ch.res_class);
|
||||
if (ch.res_name) XFree(ch.res_name);
|
||||
}
|
||||
|
||||
updateTitle();
|
||||
if (mBalloonTimeout) balloonText();
|
||||
}
|
||||
|
||||
/*
|
||||
* Overload this if you want a tool tip format that is different from the one
|
||||
* below i.e "Title [Class]".
|
||||
*/
|
||||
void QTrayLabel::updateTitle()
|
||||
{
|
||||
TRACE("%s", me());
|
||||
QString text = mTitle + " [" + mClass + "]";
|
||||
QToolTip::remove(this);
|
||||
QToolTip::add(this, text);
|
||||
|
||||
if (mBalloonTimeout) balloonText();
|
||||
}
|
||||
|
||||
void QTrayLabel::handleIconChange(void)
|
||||
{
|
||||
char **window_icon = NULL;
|
||||
|
||||
TRACE("%s", me());
|
||||
if (mDockedWindow == None) return;
|
||||
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
XWMHints *wm_hints = XGetWMHints(display, mDockedWindow);
|
||||
if (wm_hints != NULL)
|
||||
{
|
||||
if (!(wm_hints->flags & IconMaskHint))
|
||||
wm_hints->icon_mask = None;
|
||||
/*
|
||||
* We act paranoid here. Progams like KSnake has a bug where
|
||||
* IconPixmapHint is set but no pixmap (Actually this happens with
|
||||
* quite a few KDE programs) X-(
|
||||
*/
|
||||
if ((wm_hints->flags & IconPixmapHint) && (wm_hints->icon_pixmap))
|
||||
XpmCreateDataFromPixmap(display, &window_icon, wm_hints->icon_pixmap,
|
||||
wm_hints->icon_mask, NULL);
|
||||
XFree(wm_hints);
|
||||
}
|
||||
QImage image;
|
||||
if (!window_icon)
|
||||
{
|
||||
if (!image.load(QString(ICONS_PATH) + "/question.png"))
|
||||
image.load(qApp->applicationDirPath() + "/icons/question.png");
|
||||
}
|
||||
else image = QPixmap((const char **) window_icon).convertToImage();
|
||||
if (window_icon) XpmFree(window_icon);
|
||||
mAppIcon = image.smoothScale(24, 24); // why?
|
||||
setMinimumSize(mAppIcon.size());
|
||||
setMaximumSize(mAppIcon.size());
|
||||
|
||||
updateIcon();
|
||||
}
|
||||
|
||||
/*
|
||||
* Overload this to possibly do operations on the pixmap before it is set
|
||||
*/
|
||||
void QTrayLabel::updateIcon()
|
||||
{
|
||||
TRACE("%s", me());
|
||||
setPixmap(mCustomIcon.isEmpty() ? mAppIcon : mCustomIcon);
|
||||
erase();
|
||||
QPaintEvent pe(rect());
|
||||
paintEvent(&pe);
|
||||
}
|
||||
|
||||
/*
|
||||
* Mouse activity on our label. RightClick = Menu. LeftClick = Toggle Map
|
||||
*/
|
||||
void QTrayLabel::mouseReleaseEvent(QMouseEvent * ev)
|
||||
{
|
||||
emit clicked(ev->button(), ev->globalPos());
|
||||
}
|
||||
|
||||
/*
|
||||
* Track drag event
|
||||
*/
|
||||
void QTrayLabel::dragEnterEvent(QDragEnterEvent *ev)
|
||||
{
|
||||
ev->accept();
|
||||
map();
|
||||
}
|
||||
|
||||
/*
|
||||
* Event dispatcher
|
||||
*/
|
||||
bool QTrayLabel::x11EventFilter(XEvent *ev)
|
||||
{
|
||||
XAnyEvent *event = (XAnyEvent *)ev;
|
||||
|
||||
if (event->window == mSysTray)
|
||||
{
|
||||
if (event->type != DestroyNotify) return FALSE; // not interested in others
|
||||
emit sysTrayDestroyed();
|
||||
mSysTray = None;
|
||||
TRACE("%s SystemTray disappeared. Starting timer", me());
|
||||
mRealityMonitor.start(500);
|
||||
return true;
|
||||
}
|
||||
else if (event->window == mDockedWindow)
|
||||
{
|
||||
if (event->type == DestroyNotify)
|
||||
destroyEvent();
|
||||
else if (event->type == PropertyNotify)
|
||||
propertyChangeEvent(((XPropertyEvent *)event)->atom);
|
||||
else if (event->type == VisibilityNotify)
|
||||
{
|
||||
if (((XVisibilityEvent *) event)->state == VisibilityFullyObscured)
|
||||
obscureEvent();
|
||||
}
|
||||
else if (event->type == MapNotify)
|
||||
{
|
||||
mWithdrawn = false;
|
||||
mapEvent();
|
||||
}
|
||||
else if (event->type == UnmapNotify)
|
||||
{
|
||||
mWithdrawn = true;
|
||||
unmapEvent();
|
||||
}
|
||||
else if (event->type == FocusOut)
|
||||
{
|
||||
focusLostEvent();
|
||||
}
|
||||
return true; // Dont process this again
|
||||
}
|
||||
|
||||
if (mDockedWindow != None || event->type != MapNotify) return FALSE;
|
||||
|
||||
TRACE("%s Will analyze window 0x%x", me(), (int)((XMapEvent *)event)->window);
|
||||
// Check if this window is the soulmate we are looking for
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
Window w = XmuClientWindow(display, ((XMapEvent *) event)->window);
|
||||
if (!isNormalWindow(display, w)) return FALSE;
|
||||
if (!analyzeWindow(display, w, mPid,
|
||||
QFileInfo(mProgName[0]).fileName().latin1())) return FALSE;
|
||||
// All right. Lets dock this baby
|
||||
setDockedWindow(w);
|
||||
return true;
|
||||
}
|
||||
|
||||
void QTrayLabel::minimizeEvent(void)
|
||||
{
|
||||
TRACE("minimizeEvent");
|
||||
if (mDockWhenMinimized) withdraw();
|
||||
}
|
||||
|
||||
void QTrayLabel::destroyEvent(void)
|
||||
{
|
||||
TRACE("%s destroyEvent", me());
|
||||
setDockedWindow(None);
|
||||
if (!mPid) undock();
|
||||
}
|
||||
|
||||
void QTrayLabel::propertyChangeEvent(Atom property)
|
||||
{
|
||||
Display *display = QPaintDevice::x11AppDisplay();
|
||||
static Atom WM_NAME = XInternAtom(display, "WM_NAME", True);
|
||||
static Atom WM_ICON = XInternAtom(display, "WM_ICON", True);
|
||||
static Atom WM_STATE = XInternAtom(display, "WM_STATE", True);
|
||||
static Atom _NET_WM_STATE = XInternAtom(display, "_NET_WM_STATE", True);
|
||||
static Atom _NET_WM_DESKTOP = XInternAtom(display, "_NET_WM_DESKTOP", True);
|
||||
|
||||
if (property == WM_NAME)
|
||||
handleTitleChange();
|
||||
else if (property == WM_ICON)
|
||||
handleIconChange();
|
||||
else if (property == _NET_WM_STATE)
|
||||
; // skipTaskbar();
|
||||
else if (property == _NET_WM_DESKTOP)
|
||||
{
|
||||
TRACE("_NET_WM_DESKTOP changed");
|
||||
getCardinalProperty(display, mDockedWindow, _NET_WM_DESKTOP, &mDesktop);
|
||||
}
|
||||
else if (property == WM_STATE)
|
||||
{
|
||||
Atom type = None;
|
||||
int format;
|
||||
unsigned long nitems, after;
|
||||
unsigned char *data = NULL;
|
||||
int r = XGetWindowProperty(display, mDockedWindow, WM_STATE,
|
||||
0, 1, False, AnyPropertyType, &type,
|
||||
&format, &nitems, &after, &data);
|
||||
|
||||
if ((r == Success) && data && (*(long *) data == IconicState))
|
||||
{
|
||||
minimizeEvent();
|
||||
XFree(data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Session Management
|
||||
bool QTrayLabel::saveState(QSettings &settings)
|
||||
{
|
||||
TRACE("%s saving state", me());
|
||||
settings.writeEntry("/Application", mProgName.join(" "));
|
||||
settings.writeEntry("/CustomIcon", mCustomIcon);
|
||||
settings.writeEntry("/BalloonTimeout", mBalloonTimeout);
|
||||
settings.writeEntry("/DockWhenMinimized", mDockWhenMinimized);
|
||||
settings.writeEntry("/SkipTaskbar", mSkippingTaskbar);
|
||||
settings.writeEntry("/Withdraw", mWithdrawn);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool QTrayLabel::restoreState(QSettings &settings)
|
||||
{
|
||||
TRACE("%s restoring state", me());
|
||||
mCustomIcon = settings.readEntry("/CustomIcon");
|
||||
setBalloonTimeout(settings.readNumEntry("/BalloonTimeout"));
|
||||
setDockWhenMinimized(settings.readBoolEntry("/DockWhenMinimized"));
|
||||
setSkipTaskbar(settings.readBoolEntry("/SkipTaskbar"));
|
||||
mWithdrawn = settings.readBoolEntry("/Withdraw");
|
||||
|
||||
dock();
|
||||
|
||||
/*
|
||||
* Since we are getting restored, it is likely that the application that we
|
||||
* are interested in has already been started (if we didnt launch it).
|
||||
* So we scan the list of windows and grab the first one that satisfies us
|
||||
* This implicitly assumes that if mPid!=0 then we launched it. Wait till
|
||||
* the application really shows itself up before we do a scan (the reason
|
||||
* why we have 2s
|
||||
*/
|
||||
if (!mPid) QTimer::singleShot(2000, this, SLOT(scanClients()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// End kicking butt
|
||||
|
@ -0,0 +1,161 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: qtraylabel.h,v 1.21 2005/06/21 10:04:36 cs19713 Exp $
|
||||
|
||||
#ifndef _QTRAYLABEL_H
|
||||
#define _QTRAYLABEL_H
|
||||
|
||||
#include <qlabel.h>
|
||||
#include <qstring.h>
|
||||
#include <qstringlist.h>
|
||||
#include <qpixmap.h>
|
||||
#include <qtimer.h>
|
||||
#include <qtextstream.h>
|
||||
#include <qsettings.h>
|
||||
#include <qevent.h>
|
||||
#include <qsize.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/Xatom.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
class QMouseEvent;
|
||||
class QDragEnterEvent;
|
||||
class QPoint;
|
||||
|
||||
class QTrayLabel : public QLabel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
QTrayLabel(Window w, QWidget* p = 0, const QString& text = QString::null);
|
||||
QTrayLabel(const QStringList& argv, pid_t pid, QWidget* parent = 0);
|
||||
virtual ~QTrayLabel();
|
||||
|
||||
// Accessors
|
||||
Window dockedWindow(void) const { return mDockedWindow; }
|
||||
int balloonTimeout(void) const { return mBalloonTimeout; }
|
||||
bool isSkippingTaskbar(void) const { return mSkippingTaskbar; }
|
||||
bool isWithdrawn(void) const { return mWithdrawn; }
|
||||
bool isDockWhenMinimized(void) const { return mDockWhenMinimized; }
|
||||
|
||||
QString appName(void) const { return mProgName[0]; }
|
||||
virtual void setAppName(const QString& prog) { mProgName[0] = prog; }
|
||||
QString appClass(void) const { return mClass; }
|
||||
QString appTitle(void) const { return mTitle; }
|
||||
QPixmap appIcon(void) const { return mAppIcon; }
|
||||
|
||||
// Pass on all events through this interface
|
||||
bool x11EventFilter(XEvent * event);
|
||||
|
||||
// Session Management
|
||||
virtual bool saveState(QSettings& settings);
|
||||
virtual bool restoreState(QSettings& settings);
|
||||
|
||||
public slots:
|
||||
void dock(void); // puts us in the system tray
|
||||
void undock(void); // removes us from the system tray
|
||||
void map(void); // maps the window that we are docking
|
||||
void withdraw(void); // withdraws the window that we are docking
|
||||
void toggleShow(void) // convenience slot
|
||||
{ if (mWithdrawn) map(); else withdraw(); }
|
||||
void close(void); // close the docked window
|
||||
void setTrayIcon(const QString& icon); // sets custom icon
|
||||
|
||||
// and some property setters
|
||||
virtual void setSkipTaskbar(bool skip); // skip the taskbar
|
||||
virtual void setBalloonTimeout(int msecs) { mBalloonTimeout = msecs; }
|
||||
virtual void setDockWhenMinimized(bool dwm) { mDockWhenMinimized = dwm; }
|
||||
|
||||
protected slots:
|
||||
void scanClients(void); // scans existing client connections
|
||||
|
||||
signals:
|
||||
void clicked(const ButtonState&, const QPoint&);
|
||||
void docked(QTrayLabel *); // emitted when we get docked
|
||||
void docked(void); // emitted when we get docked
|
||||
void undocked(QTrayLabel *); // emitted when we get undocked
|
||||
void undocked(void); // emitted when we get undock
|
||||
// window are monitoring dies
|
||||
void sysTrayDestroyed(void); // emitted when the system tray disappears
|
||||
|
||||
protected:
|
||||
// reimplement these event handlers in subclass as needed
|
||||
virtual void mouseReleaseEvent(QMouseEvent *event);
|
||||
virtual void dragEnterEvent(QDragEnterEvent *event);
|
||||
|
||||
// the events that follow are events of the docked window (NOT QTrayLabel)
|
||||
virtual void updateIcon(void); // updates the icon
|
||||
virtual void updateTitle(void); // sets the tooltip
|
||||
virtual void balloonText(void); // balloons text
|
||||
virtual void obscureEvent(void) { }
|
||||
virtual void mapEvent(void) { }
|
||||
virtual void focusLostEvent(void) { }
|
||||
virtual void unmapEvent(void) { }
|
||||
virtual void minimizeEvent(void);
|
||||
virtual void destroyEvent(void);
|
||||
|
||||
// needs to return if we can unsubscribe for root
|
||||
virtual bool canUnsubscribeFromRoot(void) { return true; }
|
||||
// needs to return if we can dock a candidate window
|
||||
virtual bool canDockWindow(Window) { return true; }
|
||||
virtual void processDead(void) { }
|
||||
|
||||
void propertyChangeEvent(Atom);
|
||||
void setDockedWindow(Window w); // set docked window to anything you want
|
||||
|
||||
private slots:
|
||||
void realityCheck(void);
|
||||
void showOnAllDesktops(void);
|
||||
void toggleDockWhenMinimized(void)
|
||||
{ mDockWhenMinimized = !mDockWhenMinimized; }
|
||||
void skipTaskbar(void);
|
||||
|
||||
private:
|
||||
// Helpers
|
||||
void initialize(void);
|
||||
void handleTitleChange(void);
|
||||
void handleIconChange(void);
|
||||
const char *me(void) const;
|
||||
|
||||
// Member variables
|
||||
long mDesktop; // desktop on which the window is being shown
|
||||
QLabel *mBalloon; // tooltip text simulator
|
||||
QString mCustomIcon; // CustomIcon of the docked application
|
||||
Window mDockedWindow; // the window which is being docked
|
||||
int mBalloonTimeout;
|
||||
bool mDocked, mWithdrawn, mSkippingTaskbar;
|
||||
bool mDockWhenMinimized;
|
||||
|
||||
QString mTitle, mClass; // Title and hint of mDockedWindow
|
||||
QPixmap mAppIcon; // The current app icon (may not be same as pixmap())
|
||||
XSizeHints mSizeHint; // SizeHint of mDockedWindow
|
||||
|
||||
QTimer mRealityMonitor; // Helps us sync up with reality
|
||||
QStringList mProgName; // The program whose window we are docking
|
||||
pid_t mPid; // The PID of program whose window we are docking
|
||||
|
||||
Window mSysTray; // System tray window id
|
||||
};
|
||||
|
||||
#endif // _QTRAYLABEL_H
|
@ -0,0 +1,39 @@
|
||||
/* XPM */
|
||||
static char * question_xpm[] = {
|
||||
"32 32 4 1",
|
||||
" c None",
|
||||
". c #000000",
|
||||
"+ c #008000",
|
||||
"@ c #FFFFFF",
|
||||
" ........ ",
|
||||
" ...++++++++... ",
|
||||
" ..++++++++++++++.. ",
|
||||
" .++++++@@@@@@++++++. ",
|
||||
" .+++++@@@@@@@@@@+++++. ",
|
||||
" .+++++@@@@@@@@@@@@+++++. ",
|
||||
" .++++++@@@@@@@@@@@@++++++. ",
|
||||
" .++++++@@@@@@@@@@@@@@++++++. ",
|
||||
" .++++++@@@@@@@@@@@@@@++++++. ",
|
||||
" .+++++++@@@@@@++@@@@@@+++++++. ",
|
||||
" .+++++++@@@@@@++@@@@@@+++++++. ",
|
||||
" .+++++++@@@@@@++@@@@@@+++++++. ",
|
||||
".+++++++++++++++@@@@@@+++++++++.",
|
||||
".+++++++++++++++@@@@@@+++++++++.",
|
||||
".++++++++++++++@@@@@@++++++++++.",
|
||||
".++++++++++++++@@@@@@++++++++++.",
|
||||
".+++++++++++++@@@@@@+++++++++++.",
|
||||
".+++++++++++++@@@@@@+++++++++++.",
|
||||
".++++++++++++@@@@@@++++++++++++.",
|
||||
".++++++++++++@@@@@@++++++++++++.",
|
||||
" .+++++++++++@@@@@@+++++++++++. ",
|
||||
" .++++++++++++++++++++++++++++. ",
|
||||
" .+++++++++++++@@+++++++++++++. ",
|
||||
" .++++++++++@@@@@@++++++++++. ",
|
||||
" .++++++++++@@@@@@++++++++++. ",
|
||||
" .++++++++@@@@@@@@++++++++. ",
|
||||
" .+++++++@@@@@@@@+++++++. ",
|
||||
" .+++++++@@@@@@+++++++. ",
|
||||
" .++++++@@@@@@++++++. ",
|
||||
" ..++++++@@++++++.. ",
|
||||
" ...++++++++... ",
|
||||
" ........ "};
|
@ -0,0 +1,44 @@
|
||||
#ifdef ENABLE_TRACING
|
||||
#include <qapplication.h>
|
||||
#include <qtextedit.h>
|
||||
#include <qfile.h>
|
||||
#include <stdio.h>
|
||||
|
||||
static QTextEdit *tracer = NULL;
|
||||
|
||||
void TRACER(QtMsgType, const char *msg)
|
||||
{
|
||||
tracer->append(&msg[*msg == '~' ? 1 : 0]);
|
||||
if (msg[0] != '~')
|
||||
{
|
||||
fprintf(stderr, msg);
|
||||
fprintf(stderr, "\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
void INIT_TRACE()
|
||||
{
|
||||
if (tracer) return; // de javu
|
||||
tracer = new QTextEdit();
|
||||
tracer->setTextFormat(Qt::LogText);
|
||||
tracer->setMaxLogLines(10000);
|
||||
tracer->resize(750, 300);
|
||||
qInstallMsgHandler(TRACER);
|
||||
}
|
||||
|
||||
void SHOW_TRACE()
|
||||
{
|
||||
tracer->show();
|
||||
}
|
||||
|
||||
void DUMP_TRACE(const char *f)
|
||||
{
|
||||
QFile file(f); // Write the text to a file
|
||||
if (file.open(IO_WriteOnly))
|
||||
{
|
||||
QTextStream stream(&file);
|
||||
stream << tracer->text();
|
||||
}
|
||||
}
|
||||
|
||||
#endif // ENABLE_TRACER
|
@ -0,0 +1,30 @@
|
||||
#ifndef _TRACE_H
|
||||
#define _TRACE_H
|
||||
|
||||
#ifdef ENABLE_TRACING
|
||||
extern void INIT_TRACE(void);
|
||||
extern void SHOW_TRACE(void);
|
||||
extern void DUMP_TRACE(const char *file);
|
||||
|
||||
/*
|
||||
* Lets admit it, shall we. C macros are sometimes are so much cooler than
|
||||
* C++ static inlines ;)
|
||||
* WARNING: fmt has to be a static string
|
||||
*/
|
||||
#define TRACE(fmt,args...) \
|
||||
do { qDebug("~%s - \t" fmt, __PRETTY_FUNCTION__, ##args); } while (0)
|
||||
|
||||
#define SHOW_TRACE_TEXT "Show Trace"
|
||||
|
||||
#else // !ENABLE_TRACING
|
||||
|
||||
#define INIT_TRACE()
|
||||
#define TRACE(fmt, ...)
|
||||
#define SHOW_TRACE()
|
||||
#define SHOW_TRACE_TEXT QString::null
|
||||
#define DUMP_TRACE(file)
|
||||
|
||||
#endif // ENABLE_TRACING
|
||||
|
||||
#endif // _TRACE_H
|
||||
|
@ -0,0 +1,523 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: traylabelmgr.cpp,v 1.10 2005/02/09 03:38:43 cs19713 Exp $
|
||||
|
||||
#include <qdir.h>
|
||||
#include <qapplication.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qtimer.h>
|
||||
#include <qfile.h>
|
||||
#include <qaction.h>
|
||||
#include <qpopupmenu.h>
|
||||
#include <qtextstream.h>
|
||||
#include <qfiledialog.h>
|
||||
|
||||
#include "trace.h"
|
||||
#include "traylabelmgr.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <Xmu/WinUtil.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
TrayLabelMgr* TrayLabelMgr::gTrayLabelMgr = NULL;
|
||||
const char *TrayLabelMgr::mOptionString = "+abdefi:lmop:qtw:";
|
||||
|
||||
TrayLabelMgr* TrayLabelMgr::instance(void)
|
||||
{
|
||||
if (gTrayLabelMgr) return gTrayLabelMgr;
|
||||
TRACE("Creating new instance");
|
||||
return (gTrayLabelMgr = new TrayLabelMgr());
|
||||
}
|
||||
|
||||
TrayLabelMgr::TrayLabelMgr() : mReady(false), mHiddenLabelsCount(0)
|
||||
{
|
||||
// Set ourselves up to be called from the application loop
|
||||
QTimer::singleShot(0, this, SLOT(startup()));
|
||||
}
|
||||
|
||||
TrayLabelMgr::~TrayLabelMgr()
|
||||
{
|
||||
undockAll();
|
||||
}
|
||||
|
||||
void TrayLabelMgr::about(void)
|
||||
{
|
||||
if (QMessageBox::information(NULL, tr("About KDocker"),
|
||||
tr("Bugs/wishes to Girish Ramakrishnan (gramakri@uiuc.edu)\n"
|
||||
"English translation by Girish (gramakri@uiuc.edu)\n\n"
|
||||
"http://kdocker.sourceforge.net for updates"),
|
||||
QString::null, SHOW_TRACE_TEXT) == 1) SHOW_TRACE();
|
||||
}
|
||||
|
||||
void TrayLabelMgr::startup(void)
|
||||
{
|
||||
const int WAIT_TIME = 10;
|
||||
static int wait_time = WAIT_TIME;
|
||||
/*
|
||||
* If it appears that we were launched from some startup script (check whether
|
||||
* stdout is a tty) OR if we are getting restored, wait for WAIT_TIME until
|
||||
* the system tray shows up (before informing the user)
|
||||
*/
|
||||
static bool do_wait = !isatty(fileno(stdout)) || qApp->isSessionRestored();
|
||||
|
||||
SysTrayState state = sysTrayStatus(QPaintDevice::x11AppDisplay());
|
||||
|
||||
if (state != SysTrayPresent)
|
||||
{
|
||||
if (wait_time-- > 0 && do_wait)
|
||||
{
|
||||
TRACE("Will check sys tray status after 1 second");
|
||||
QTimer::singleShot(1000, this, SLOT(startup()));
|
||||
return;
|
||||
}
|
||||
|
||||
if (QMessageBox::warning(NULL, tr("KDocker"),
|
||||
tr(state == SysTrayAbsent ? "No system tray found"
|
||||
: "System tray appears to be hidden"),
|
||||
QMessageBox::Abort, QMessageBox::Ignore) == QMessageBox::Abort)
|
||||
{
|
||||
qApp->quit();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Things are fine or user with OK with the state of system tray
|
||||
mReady = true;
|
||||
bool ok = false;
|
||||
if (qApp->isSessionRestored()) ok = restoreSession(qApp->sessionId());
|
||||
else ok = processCommand(qApp->argc(), qApp->argv());
|
||||
// Process the request Q from previous instances
|
||||
|
||||
TRACE("Request queue has %i requests", mRequestQ.count());
|
||||
for(unsigned i=0; i < mRequestQ.count(); i++)
|
||||
ok |= processCommand(mRequestQ[i]);
|
||||
if (!ok) qApp->quit();
|
||||
}
|
||||
|
||||
// Initialize a QTrayLabel after its creation
|
||||
void TrayLabelMgr::manageTrayLabel(QTrayLabel *t)
|
||||
{
|
||||
connect(t, SIGNAL(destroyed(QObject *)),
|
||||
this, SLOT(trayLabelDestroyed(QObject *)));
|
||||
connect(t, SIGNAL(undocked(QTrayLabel *)), t, SLOT(deleteLater()));
|
||||
|
||||
// All QTrayLabels will emit this signal. We just need one of them
|
||||
if (mTrayLabels.count() == 0)
|
||||
connect(t, SIGNAL(sysTrayDestroyed()), this, SLOT(sysTrayDestroyed()));
|
||||
mTrayLabels.prepend(t);
|
||||
|
||||
TRACE("New QTrayLabel prepended. Count=%i", mTrayLabels.count());
|
||||
}
|
||||
|
||||
void TrayLabelMgr::dockAnother()
|
||||
{
|
||||
QTrayLabel *t = selectAndDock();
|
||||
if (t == NULL) return;
|
||||
manageTrayLabel(t);
|
||||
t->withdraw();
|
||||
t->dock();
|
||||
}
|
||||
|
||||
// Undock all the windows
|
||||
void TrayLabelMgr::undockAll()
|
||||
{
|
||||
TRACE("Number of tray labels = %i", mTrayLabels.count());
|
||||
QPtrListIterator<QTrayLabel> it(mTrayLabels);
|
||||
QTrayLabel *t;
|
||||
while ((t = it.current()) != 0)
|
||||
{
|
||||
++it;
|
||||
t->undock();
|
||||
}
|
||||
}
|
||||
|
||||
// Process the command line
|
||||
bool TrayLabelMgr::processCommand(const QStringList& args)
|
||||
{
|
||||
if (!mReady)
|
||||
{
|
||||
// If we are still looking for system tray, just add it to the Q
|
||||
mRequestQ.append(args);
|
||||
return true;
|
||||
}
|
||||
|
||||
const int MAX_ARGS = 20;
|
||||
const char *argv[MAX_ARGS];
|
||||
int argc = args.count();
|
||||
if (argc >= MAX_ARGS) argc = MAX_ARGS - 1;
|
||||
|
||||
for(int i =0 ; i<argc; i++)
|
||||
argv[i] = args[i].latin1();
|
||||
|
||||
argv[argc] = NULL; // null terminate the array
|
||||
|
||||
return processCommand(argc, const_cast<char **>(argv));
|
||||
}
|
||||
|
||||
// Process the command line
|
||||
bool TrayLabelMgr::processCommand(int argc, char** argv)
|
||||
{
|
||||
TRACE("CommandLine arguments");
|
||||
for(int i = 0; i < argc; i++) TRACE("\t%s", argv[i]);
|
||||
|
||||
if (argc < 1) return false;
|
||||
|
||||
// Restore session (See the comments in KDocker::notifyPreviousInstance()
|
||||
if (qstrcmp(argv[1], "-session") == 0)
|
||||
{
|
||||
TRACE("Restoring session %s (new instance request)", argv[2]);
|
||||
return restoreSession(QString(argv[2]));
|
||||
}
|
||||
|
||||
int option;
|
||||
Window w = None;
|
||||
const char *icon = NULL;
|
||||
int balloon_timeout = 4000;
|
||||
bool withdraw = true, skip_taskbar = false,
|
||||
auto_launch = false, dock_obscure = false, check_normality = true,
|
||||
enable_sm = true;
|
||||
|
||||
optind = 0; // initialise the getopt static
|
||||
|
||||
while ((option = getopt(argc, argv, mOptionString)) != EOF)
|
||||
{
|
||||
switch (option)
|
||||
{
|
||||
case '?':
|
||||
return false;
|
||||
case 'a':
|
||||
qDebug(tr("Girish Ramakrishnan (gramakri@uiuc.edu)"));
|
||||
return false;
|
||||
case 'b':
|
||||
check_normality = false;
|
||||
break;
|
||||
case 'd':
|
||||
enable_sm = false;
|
||||
break;
|
||||
case 'e':
|
||||
enable_sm = true;
|
||||
break;
|
||||
case 'f':
|
||||
w = activeWindow(QPaintDevice::x11AppDisplay());
|
||||
TRACE("Active window is %i", (unsigned) w);
|
||||
break;
|
||||
case 'i':
|
||||
icon = optarg;
|
||||
break;
|
||||
case 'l':
|
||||
auto_launch = true;
|
||||
break;
|
||||
case 'm':
|
||||
withdraw = false;
|
||||
break;
|
||||
case 'o':
|
||||
dock_obscure = true;
|
||||
break;
|
||||
case 'p':
|
||||
balloon_timeout = atoi(optarg) * 1000; // convert to ms
|
||||
break;
|
||||
case 'q':
|
||||
balloon_timeout = 0; // same as '-p 0'
|
||||
break;
|
||||
case 't':
|
||||
skip_taskbar = true;
|
||||
break;
|
||||
case 'w':
|
||||
if ((optarg[1] == 'x') || (optarg[1] == 'X'))
|
||||
sscanf(optarg, "%x", (unsigned *) &w);
|
||||
else
|
||||
w = (Window) atoi(optarg);
|
||||
if (!isValidWindowId(QPaintDevice::x11AppDisplay(), w))
|
||||
{
|
||||
qDebug("Window 0x%x invalid", (unsigned) w);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
} // switch (option)
|
||||
} // while (getopt)
|
||||
|
||||
// Launch an application if present in command line. else request from user
|
||||
CustomTrayLabel *t = (CustomTrayLabel *) // this should be dynamic_cast
|
||||
((optind < argc) ? dockApplication(&argv[optind])
|
||||
: selectAndDock(w, check_normality));
|
||||
if (t == NULL) return false;
|
||||
// apply settings and add to tray
|
||||
manageTrayLabel(t);
|
||||
if (icon) t->setTrayIcon(icon);
|
||||
t->setSkipTaskbar(skip_taskbar);
|
||||
t->setBalloonTimeout(balloon_timeout);
|
||||
t->setDockWhenObscured(dock_obscure);
|
||||
if (withdraw) t->withdraw(); else t->map();
|
||||
t->enableSessionManagement(enable_sm);
|
||||
t->dock();
|
||||
t->setLaunchOnStartup(auto_launch);
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* Request user to make a window selection if necessary. Dock the window.
|
||||
*/
|
||||
QTrayLabel *TrayLabelMgr::selectAndDock(Window w, bool checkNormality)
|
||||
{
|
||||
if (w == None)
|
||||
{
|
||||
qDebug(tr("Select the application/window to dock with button1."));
|
||||
qDebug(tr("Click any other button to abort\n"));
|
||||
|
||||
const char *err = NULL;
|
||||
|
||||
if ((w = selectWindow(QPaintDevice::x11AppDisplay(), &err)) == None)
|
||||
{
|
||||
if (err) QMessageBox::critical(NULL, tr("KDocker"), tr(err));
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (checkNormality && !isNormalWindow(QPaintDevice::x11AppDisplay(), w))
|
||||
{
|
||||
/*
|
||||
* Abort should be the only option here really. "Ignore" is provided here
|
||||
* for the curious user who wants to screw himself very badly
|
||||
*/
|
||||
if (QMessageBox::warning(NULL, tr("KDocker"),
|
||||
tr("The window you are attempting to dock does not seem to be a"
|
||||
" normal window."), QMessageBox::Abort,
|
||||
QMessageBox::Ignore) == QMessageBox::Abort)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!isWindowDocked(w)) return new CustomTrayLabel(w);
|
||||
|
||||
TRACE("0x%x is not docked", (unsigned) w);
|
||||
|
||||
QMessageBox::message(tr("KDocker"),
|
||||
tr("This window is already docked.\n"
|
||||
"Click on system tray icon to toggle docking."));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool TrayLabelMgr::isWindowDocked(Window w)
|
||||
{
|
||||
QPtrListIterator<QTrayLabel> it(mTrayLabels);
|
||||
for(QTrayLabel *t; (t = it.current()); ++it)
|
||||
if (t->dockedWindow() == w) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* Forks application specified by argv. Requests root window SubstructreNotify
|
||||
* notifications (for MapEvent on children). We will monitor these new windows
|
||||
* to make a pid to wid mapping (see HACKING for more details)
|
||||
*/
|
||||
QTrayLabel *TrayLabelMgr::dockApplication(char *argv[])
|
||||
{
|
||||
pid_t pid = -1;
|
||||
int filedes[2];
|
||||
char buf[4] = { 't', 'e', 'e', 'e' }; // teeeeeee :x :-*
|
||||
|
||||
/*
|
||||
* The pipe created here serves as a synchronization mechanism between the
|
||||
* parent and the child. QTrayLabel ctor keeps looking out for newly created
|
||||
* windows. Need to make sure that the application is actually exec'ed only
|
||||
* after we QTrayLabel is created (it requires pid of child)
|
||||
*/
|
||||
pipe(filedes);
|
||||
|
||||
if ((pid = fork()) == 0)
|
||||
{
|
||||
close(filedes[1]);
|
||||
read(filedes[0], buf, sizeof(buf));
|
||||
close(filedes[0]);
|
||||
|
||||
if (execvp(argv[0], argv) == -1)
|
||||
{
|
||||
qDebug(tr("Failed to exec [%1]: %2").arg(argv[0]).arg(strerror(errno)));
|
||||
::exit(0); // will become a zombie in some systems :(
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (pid == -1)
|
||||
{
|
||||
QMessageBox::critical(NULL, "KDocker",
|
||||
tr("Failed to fork: %1").arg(strerror(errno)));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
QStringList cmd_line;
|
||||
for(int i=0;;i++)
|
||||
if (argv[i]) cmd_line << argv[i]; else break;
|
||||
|
||||
QTrayLabel *label = new CustomTrayLabel(cmd_line, pid);
|
||||
qApp->syncX();
|
||||
write(filedes[1], buf, sizeof(buf));
|
||||
close(filedes[0]);
|
||||
close(filedes[1]);
|
||||
return label;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the number of QTrayLabels actually created but not show in the
|
||||
* System Tray
|
||||
*/
|
||||
int TrayLabelMgr::hiddenLabelsCount(void) const
|
||||
{
|
||||
QPtrListIterator<QTrayLabel> it(mTrayLabels);
|
||||
int count = 0;
|
||||
for(QTrayLabel *t; (t=it.current()); ++it)
|
||||
if (t->dockedWindow() == None) ++count;
|
||||
return count;
|
||||
}
|
||||
|
||||
// The number of labes that are docked in the system tray
|
||||
int TrayLabelMgr::dockedLabelsCount(void) const
|
||||
{
|
||||
return mTrayLabels.count() - hiddenLabelsCount();
|
||||
}
|
||||
|
||||
void TrayLabelMgr::trayLabelDestroyed(QObject *t)
|
||||
{
|
||||
bool reconnect = ((QObject *)mTrayLabels.getLast() == t);
|
||||
mTrayLabels.removeRef((QTrayLabel*)t);
|
||||
if (mTrayLabels.isEmpty()) qApp->quit();
|
||||
else if (reconnect)
|
||||
{
|
||||
TRACE("Reconnecting");
|
||||
connect(mTrayLabels.getFirst(), SIGNAL(sysTrayDestroyed()),
|
||||
this, SLOT(sysTrayDestroyed()));
|
||||
}
|
||||
}
|
||||
|
||||
void TrayLabelMgr::sysTrayDestroyed(void)
|
||||
{
|
||||
/*
|
||||
* The system tray got destroyed. This could happen when it was
|
||||
* hidden/removed or killed/crashed/exited. Now we must be genteel enough
|
||||
* to not pop up a box when the user is logging out. So, we set ourselves
|
||||
* up to notify user after 3 seconds.
|
||||
*/
|
||||
QTimer::singleShot(3000, this, SLOT(notifySysTrayAbsence()));
|
||||
}
|
||||
|
||||
void TrayLabelMgr::notifySysTrayAbsence()
|
||||
{
|
||||
SysTrayState state = sysTrayStatus(QPaintDevice::x11AppDisplay());
|
||||
|
||||
if (state == SysTrayPresent)
|
||||
return; // So sweet of the systray to come back so soon
|
||||
|
||||
if (QMessageBox::warning(NULL, tr("KDocker"),
|
||||
tr("The System tray was hidden or removed"),
|
||||
tr("Undock All"), tr("Ignore")) == 0)
|
||||
undockAll();
|
||||
}
|
||||
|
||||
/*
|
||||
* Session Management. Always return "true". Atleast, for now
|
||||
*/
|
||||
bool TrayLabelMgr::restoreSession(const QString& sessionId)
|
||||
{
|
||||
QString session_file = "kdocker_" + sessionId;
|
||||
|
||||
QSettings settings;
|
||||
settings.beginGroup(QString("/" + session_file));
|
||||
|
||||
for(int i = 1;; i++)
|
||||
{
|
||||
settings.beginGroup(QString("/Instance") + QString("").setNum(i));
|
||||
QString pname = settings.readEntry("/Application");
|
||||
TRACE("Restoring Application[%s]", pname.latin1());
|
||||
if (pname.isEmpty()) break;
|
||||
if (settings.readBoolEntry("/LaunchOnStartup"))
|
||||
{
|
||||
QStringList args("kdocker");
|
||||
args += QStringList::split(" ", pname);
|
||||
TRACE("Triggering AutoLaunch");
|
||||
if (!processCommand(args)) continue;
|
||||
}
|
||||
else
|
||||
manageTrayLabel(new CustomTrayLabel(QStringList::split(" ", pname), 0));
|
||||
|
||||
QTrayLabel *tl = mTrayLabels.getFirst(); // the one that was created above
|
||||
tl->restoreState(settings);
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
QString TrayLabelMgr::saveSession(void)
|
||||
{
|
||||
QString session_file = "kdocker_" + qApp->sessionId();
|
||||
|
||||
QSettings settings;
|
||||
settings.beginGroup(QString("/" + session_file));
|
||||
|
||||
TRACE("Saving session");
|
||||
|
||||
QPtrListIterator <QTrayLabel> it(mTrayLabels);
|
||||
QTrayLabel *t;
|
||||
int i = 1;
|
||||
while ((t = it.current()) != 0)
|
||||
{
|
||||
++it;
|
||||
TRACE("Saving instance %i", i);
|
||||
settings.beginGroup(QString("/Instance") + QString("").setNum(i));
|
||||
bool ok = t->saveState(settings);
|
||||
settings.endGroup();
|
||||
if (ok) ++i; else TRACE("Saving of instance %i was skipped", i);
|
||||
}
|
||||
|
||||
// Aaaaaaaaaaaaaa.........
|
||||
settings.removeEntry(QString("/Instance") + QString("").setNum(i));
|
||||
|
||||
return QDir::homeDirPath() + "/.qt/" + session_file + "rc";
|
||||
}
|
||||
|
||||
/*
|
||||
* The X11 Event Filter. Pass on events to the QTrayLabels that we created.
|
||||
* The logic and the code below is a bit fuzzy.
|
||||
* a) Events about windows that are being docked need to be processed only by
|
||||
* the QTrayLabel object that is docking that window.
|
||||
* b) Events about windows that are not docked but of interest (like
|
||||
* SystemTray) need to be passed on to all QTrayLabel objects.
|
||||
* c) When a QTrayLabel manages to find the window that is was looking for, we
|
||||
* need not process the event further
|
||||
*/
|
||||
bool TrayLabelMgr::x11EventFilter(XEvent *ev)
|
||||
{
|
||||
QPtrListIterator<QTrayLabel> it(mTrayLabels);
|
||||
bool ret = false;
|
||||
|
||||
// We pass on the event to all tray labels
|
||||
for(QTrayLabel *t; (t = it.current()); ++it)
|
||||
{
|
||||
Window w = t->dockedWindow();
|
||||
bool res = t->x11EventFilter(ev);
|
||||
if (w == (((XAnyEvent *)ev)->window)) return res;
|
||||
if (w != None) ret |= res;
|
||||
else if (res) return TRUE;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
*/
|
||||
|
||||
// $Id: traylabelmgr.h,v 1.3 2005/01/07 12:16:07 cs19713 Exp $
|
||||
|
||||
#ifndef _TRAYLABELMGR_H
|
||||
#define _TRAYLABELMGR_H
|
||||
|
||||
#include <qobject.h>
|
||||
#include <qptrlist.h>
|
||||
#include <qvaluelist.h>
|
||||
#include <qstringlist.h>
|
||||
|
||||
#include "customtraylabel.h"
|
||||
|
||||
class CustomTrayLabel;
|
||||
|
||||
class TrayLabelMgr : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static TrayLabelMgr* instance();
|
||||
static QString options(void) { return QString(mOptionString); }
|
||||
|
||||
~TrayLabelMgr();
|
||||
|
||||
QString saveSession();
|
||||
|
||||
bool x11EventFilter(XEvent *);
|
||||
bool processCommand(const QStringList& argv);
|
||||
int hiddenLabelsCount(void) const;
|
||||
int dockedLabelsCount(void) const;
|
||||
bool isWindowDocked(Window w);
|
||||
|
||||
public slots:
|
||||
void about();
|
||||
void undockAll();
|
||||
void dockAnother();
|
||||
|
||||
private slots:
|
||||
void startup();
|
||||
void trayLabelDestroyed(QObject *);
|
||||
void sysTrayDestroyed(void);
|
||||
void notifySysTrayAbsence();
|
||||
|
||||
private:
|
||||
TrayLabelMgr();
|
||||
bool processCommand(int argc, char** argv);
|
||||
void manageTrayLabel(QTrayLabel *l);
|
||||
bool restoreSession(const QString& sessionId);
|
||||
|
||||
QTrayLabel *dockApplication(char *argv[]);
|
||||
QTrayLabel *selectAndDock(Window w = None, bool checkNormality = true);
|
||||
|
||||
QPtrList<QTrayLabel> mTrayLabels;
|
||||
QValueList<QStringList> mRequestQ;
|
||||
bool mReady;
|
||||
int mHiddenLabelsCount;
|
||||
|
||||
static const char *mOptionString;
|
||||
static TrayLabelMgr *gTrayLabelMgr;
|
||||
};
|
||||
|
||||
#endif // _TRAYLABELMGR_H
|
||||
|
@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: util.cpp,v 1.7 2005/01/29 09:56:08 cs19713 Exp $
|
||||
|
||||
#include "trace.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <X11/Xutil.h>
|
||||
#include <Xmu/WinUtil.h>
|
||||
#include <X11/Xatom.h>
|
||||
#include <X11/cursorfont.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/*
|
||||
* Assert validity of the window id. Get window attributes for the heck of it
|
||||
* and see if the request went through.
|
||||
*/
|
||||
bool isValidWindowId(Display *display, Window w)
|
||||
{
|
||||
XWindowAttributes attrib;
|
||||
return XGetWindowAttributes(display, w, &attrib) != 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Checks if this window is a normal window (i.e)
|
||||
* - Has a WM_STATE
|
||||
* - Not modal window
|
||||
* - Not a purely transient window (with no window type set)
|
||||
* - Not a special window (desktop/menu/util) as indicated in the window type
|
||||
*/
|
||||
bool isNormalWindow(Display *display, Window w)
|
||||
{
|
||||
Atom __attribute__ ((unused)) type;
|
||||
int __attribute__ ((unused)) format;
|
||||
unsigned long __attribute__ ((unused)) left;
|
||||
Atom *data = NULL;
|
||||
unsigned long nitems;
|
||||
Window transient_for = None;
|
||||
|
||||
static Atom wmState = XInternAtom(display, "WM_STATE", False);
|
||||
static Atom windowState = XInternAtom(display, "_NET_WM_STATE", False);
|
||||
static Atom modalWindow =
|
||||
XInternAtom(display, "_NET_WM_STATE_MODAL", False);
|
||||
|
||||
static Atom windowType = XInternAtom(display, "_NET_WM_WINDOW_TYPE", False);
|
||||
static Atom normalWindow =
|
||||
XInternAtom(display, "_NET_WM_WINDOW_TYPE_NORMAL", False);
|
||||
static Atom dialogWindow =
|
||||
XInternAtom(display, "_NET_WM_WINDOW_TYPE_DIALOG", False);
|
||||
|
||||
int ret = XGetWindowProperty(display, w, wmState, 0,
|
||||
10, False, AnyPropertyType, &type, &format,
|
||||
&nitems, &left, (unsigned char **) &data);
|
||||
|
||||
TRACE("0x%x (%i)", (unsigned) w, (unsigned) w);
|
||||
|
||||
if (ret != Success || data == NULL) return false;
|
||||
TRACE("\tHas WM_STATE");
|
||||
if (data) XFree(data);
|
||||
|
||||
ret = XGetWindowProperty(display, w, windowState, 0,
|
||||
10, False, AnyPropertyType, &type, &format,
|
||||
&nitems, &left, (unsigned char **) &data);
|
||||
if (ret == Success)
|
||||
{
|
||||
unsigned int i;
|
||||
for (i = 0; i < nitems; i++)
|
||||
{
|
||||
if (data[i] == modalWindow) break;
|
||||
}
|
||||
XFree(data);
|
||||
if (i < nitems) { TRACE("\tMODAL"); return false; }
|
||||
}
|
||||
else TRACE("\tNo _NET_WM_STATE");
|
||||
|
||||
XGetTransientForHint(display, w, &transient_for);
|
||||
TRACE("\tTransientFor=0x%x", (unsigned) transient_for);
|
||||
|
||||
ret = XGetWindowProperty(display, w, windowType, 0,
|
||||
10, False, AnyPropertyType, &type, &format,
|
||||
&nitems, &left, (unsigned char **) &data);
|
||||
|
||||
if ((ret == Success) && data)
|
||||
{
|
||||
unsigned int i;
|
||||
for (i = 0; i < nitems; i++)
|
||||
{
|
||||
if (data[i] != normalWindow && data[i] != dialogWindow) break;
|
||||
}
|
||||
XFree(data);
|
||||
TRACE("\tAbnormal = %i", (i == nitems));
|
||||
return (i == nitems);
|
||||
}
|
||||
else
|
||||
return (transient_for == None);
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns the contents of the _NET_WM_PID (which is supposed to contain the
|
||||
* process id of the application that created the window)
|
||||
*/
|
||||
pid_t pid(Display *display, Window w)
|
||||
{
|
||||
Atom actual_type;
|
||||
int actual_format;
|
||||
unsigned long nitems, leftover;
|
||||
unsigned char *pid;
|
||||
pid_t pid_return = -1;
|
||||
|
||||
if (XGetWindowProperty(display, w,
|
||||
XInternAtom(display, "_NET_WM_PID", False), 0,
|
||||
1, False, XA_CARDINAL, &actual_type,
|
||||
&actual_format, &nitems, &leftover, &pid) == Success)
|
||||
{
|
||||
if (pid) pid_return = *(pid_t *) pid;
|
||||
XFree(pid);
|
||||
}
|
||||
TRACE("0x%x has PID=%i", (unsigned) w, pid_return);
|
||||
return pid_return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Sends ClientMessage to a window
|
||||
*/
|
||||
void sendMessage(Display* display, Window to, Window w, char* type,
|
||||
int format, long mask, void* data, int size)
|
||||
{
|
||||
XEvent ev;
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
ev.xclient.type = ClientMessage;
|
||||
ev.xclient.window = w;
|
||||
ev.xclient.message_type = XInternAtom(display, type, True);
|
||||
ev.xclient.format = format;
|
||||
memcpy((char *) &ev.xclient.data, (const char *) data, size);
|
||||
XSendEvent(display, to, False, mask, &ev);
|
||||
XSync(display, False);
|
||||
}
|
||||
|
||||
/*
|
||||
* The Grand Window Analyzer. Checks if window w has a expected pid of epid
|
||||
* or a expected name of ename
|
||||
*/
|
||||
bool analyzeWindow(Display *display, Window w, pid_t epid, const QString &ename)
|
||||
{
|
||||
XClassHint ch;
|
||||
pid_t apid = pid(display, w);
|
||||
|
||||
TRACE("WID=0x%x PID=%i ExpectedName=%s", (unsigned) w, (unsigned) epid,
|
||||
ename.latin1());
|
||||
if (epid == apid) return true;
|
||||
|
||||
// no plans to analyze windows without a name
|
||||
char *window_name = NULL;
|
||||
if (!XFetchName(display, w, &window_name)) return false;
|
||||
TRACE("Window has name [%s]", window_name);
|
||||
if (window_name) XFree(window_name); else return false;
|
||||
|
||||
bool this_is_our_man = false;
|
||||
// lets try the program name
|
||||
if (XGetClassHint(display, w, &ch))
|
||||
{
|
||||
if (QString(ch.res_name).find(ename, 0, FALSE) != -1)
|
||||
{
|
||||
TRACE("ResName [%s] matched", ch.res_name);
|
||||
this_is_our_man = true;
|
||||
}
|
||||
else if (QString(ch.res_class).find(ename, 0, FALSE) != -1)
|
||||
{
|
||||
TRACE("ResClass [%s] matched", ch.res_class);
|
||||
this_is_our_man = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// sheer desperation
|
||||
char *wm_name = NULL;
|
||||
XFetchName(display, w, &wm_name);
|
||||
if (wm_name && (QString(wm_name).find(ename, 0, FALSE) != -1))
|
||||
{
|
||||
TRACE("WM_NAME [%s] matched", wm_name);
|
||||
this_is_our_man = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (ch.res_class) XFree(ch.res_class);
|
||||
if (ch.res_name) XFree(ch.res_name);
|
||||
}
|
||||
|
||||
// its probably a good idea to check (obsolete) WM_COMMAND here
|
||||
return this_is_our_man;
|
||||
}
|
||||
|
||||
Window activeWindow(Display *display)
|
||||
{
|
||||
Atom active_window_atom = XInternAtom(display, "_NET_ACTIVE_WINDOW", True);
|
||||
Atom type = None;
|
||||
int format;
|
||||
unsigned long nitems, after;
|
||||
unsigned char *data = NULL;
|
||||
int screen = DefaultScreen(display);
|
||||
Window root = RootWindow(display, screen);
|
||||
int r = XGetWindowProperty(display, root, active_window_atom,0, 1,
|
||||
False, AnyPropertyType, &type, &format, &nitems, &after, &data);
|
||||
|
||||
Window w = None;
|
||||
if ((r == Success) && data && (*(Window *)data != None))
|
||||
w = *(Window *)data;
|
||||
else
|
||||
{
|
||||
int revert;
|
||||
XGetInputFocus(display, &w, &revert);
|
||||
}
|
||||
TRACE("Active window is 0x%x", (unsigned) w);
|
||||
return w;
|
||||
}
|
||||
|
||||
/*
|
||||
* Requests user to select a window by grabbing the mouse. A left click will
|
||||
* select the application. Clicking any other button will abort the selection
|
||||
*/
|
||||
Window selectWindow(Display *display, const char **err)
|
||||
{
|
||||
int screen = DefaultScreen(display);
|
||||
Window root = RootWindow(display, screen);
|
||||
|
||||
if (err) *err = NULL;
|
||||
|
||||
Cursor cursor = XCreateFontCursor(display, XC_draped_box);
|
||||
if (cursor == None)
|
||||
{
|
||||
if (err) *err = "Failed to create XC_draped_box";
|
||||
return None;
|
||||
}
|
||||
|
||||
if (XGrabPointer(display, root, False, ButtonPressMask | ButtonReleaseMask,
|
||||
GrabModeSync, GrabModeAsync, None, cursor, CurrentTime)
|
||||
!= GrabSuccess)
|
||||
{
|
||||
if (err) *err = "Failed to grab mouse";
|
||||
return None;
|
||||
}
|
||||
|
||||
XAllowEvents(display, SyncPointer, CurrentTime);
|
||||
XEvent event;
|
||||
XWindowEvent(display, root, ButtonPressMask, &event);
|
||||
Window selected_window =
|
||||
(event.xbutton.subwindow == None) ? RootWindow(display, screen)
|
||||
: event.xbutton.subwindow;
|
||||
XUngrabPointer(display, CurrentTime);
|
||||
XFreeCursor(display, cursor);
|
||||
|
||||
if (event.xbutton.button != Button1) return None;
|
||||
return XmuClientWindow(display, selected_window);
|
||||
}
|
||||
|
||||
void subscribe(Display *display, Window w, long mask, bool set)
|
||||
{
|
||||
Window root = RootWindow(display, DefaultScreen(display));
|
||||
XWindowAttributes attr;
|
||||
|
||||
TRACE("Window=0x%x Mask=%ld Set=%i", (unsigned) w, mask, set);
|
||||
|
||||
XGetWindowAttributes(display, w == None ? root : w, &attr);
|
||||
|
||||
if (set && (attr.your_event_mask & mask == mask)) return;
|
||||
if (!set && (attr.your_event_mask | mask == attr.your_event_mask)) return;
|
||||
|
||||
XSelectInput(display, w == None ? root : w,
|
||||
set ? attr.your_event_mask | mask : attr.your_event_mask & mask);
|
||||
XSync(display, False);
|
||||
}
|
||||
|
||||
// Returns the state of the SystemTray and the Wid if it exists
|
||||
SysTrayState sysTrayStatus(Display *display, Window *tray)
|
||||
{
|
||||
Screen *screen = XDefaultScreenOfDisplay(display);
|
||||
Window sys_tray;
|
||||
Atom selection = None;
|
||||
|
||||
char temp[50];
|
||||
sprintf(temp, "_NET_SYSTEM_TRAY_S%i", XScreenNumberOfScreen(screen));
|
||||
selection = XInternAtom(display, temp, True);
|
||||
if (selection == None) return SysTrayAbsent;
|
||||
sys_tray = XGetSelectionOwner(display, selection);
|
||||
if (tray) *tray = sys_tray;
|
||||
return sys_tray == None ? SysTrayHidden : SysTrayPresent;
|
||||
}
|
||||
|
||||
bool getCardinalProperty(Display *display, Window w, Atom prop, long *data)
|
||||
{
|
||||
Atom type;
|
||||
int format;
|
||||
unsigned long nitems, bytes;
|
||||
unsigned char *d = NULL;
|
||||
|
||||
if (XGetWindowProperty(display, w, prop, 0, 1, False, XA_CARDINAL,&type,
|
||||
&format, &nitems, &bytes, &d) == Success && d)
|
||||
{
|
||||
TRACE("%ld", *(long *)d);
|
||||
if (data) *data = *(long *)d;
|
||||
XFree(d);
|
||||
return true;
|
||||
}
|
||||
TRACE("FAILED");
|
||||
return false;
|
||||
}
|
||||
|
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright (C) 2004 Girish Ramakrishnan All Rights Reserved.
|
||||
*
|
||||
* This is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This software is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this software; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
* USA.
|
||||
*/
|
||||
|
||||
// $Id: util.h,v 1.3 2004/11/19 15:44:51 cs19713 Exp $
|
||||
|
||||
#ifndef _UTIL_H
|
||||
#define _UTIL_H
|
||||
|
||||
#include <qstring.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
extern bool isNormalWindow(Display *display, Window w);
|
||||
extern bool isValidWindowId(Display *display, Window w);
|
||||
extern pid_t pid(Display *display, Window w);
|
||||
extern void sendMessage(Display *display, Window to, Window w, char *type,
|
||||
int format, long mask, void *data, int size);
|
||||
extern bool analyzeWindow(Display *display, Window w, pid_t epid,
|
||||
const QString &ename);
|
||||
extern Window activeWindow(Display *display);
|
||||
extern Window selectWindow(Display *display, const char **err = 0);
|
||||
extern void subscribe(Display *display, Window w, long mask, bool set);
|
||||
extern bool getCardinalProperty(Display *display, Window w, Atom prop,
|
||||
long *data);
|
||||
|
||||
typedef enum { SysTrayAbsent, SysTrayHidden, SysTrayPresent } SysTrayState;
|
||||
|
||||
extern SysTrayState sysTrayStatus(Display *display, Window *tray = 0);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in new issue