KDEUI
kapplication.cpp File Reference
#include "kapplication.h"
#include <config.h>
#include <QtCore/QDir>
#include <QtCore/QFile>
#include <QtGui/QSessionManager>
#include <QtGui/QStyleFactory>
#include <QtCore/QTimer>
#include <QtGui/QWidget>
#include <QtCore/QList>
#include <QtDBus/QtDBus>
#include <QtCore/QMetaType>
#include "kauthorized.h"
#include "kaboutdata.h"
#include "kcheckaccelerators.h"
#include "kcrash.h"
#include "kconfig.h"
#include "kcmdlineargs.h"
#include "kclipboard.h"
#include "kglobalsettings.h"
#include "kdebug.h"
#include "kglobal.h"
#include "kicon.h"
#include "klocale.h"
#include "ksessionmanager.h"
#include "kstandarddirs.h"
#include "kstandardshortcut.h"
#include "ktoolinvocation.h"
#include "kgesturemap.h"
#include "kurl.h"
#include "kmessage.h"
#include "kmessageboxmessagehandler.h"
#include <QtGui/qx11info_x11.h>
#include <kstartupinfo.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <netwm.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xatom.h>
#include <X11/SM/SMlib.h>
#include <fixx11h.h>
#include <QX11Info>
#include <signal.h>
#include <QtGui/QActionEvent>
#include <kcomponentdata.h>
#include "kapplication.moc"
Go to the source code of this file.
Defines | |
#define | NUM_TO_STRING(num) NUM_TO_STRING2( num ) |
#define | NUM_TO_STRING2(num) #num |
Functions | |
static void | checkRestartVersion (QSessionManager &sm) |
static void | installSigpipeHandler () |
void | KApplication_init_windows () |
static int | kde_x_errhandler (Display *dpy, XErrorEvent *err) |
static int | kde_xio_errhandler (Display *dpy) |
void | kDebugCleanup () |
Variables | |
static Atom | atom_DesktopWindow |
static Atom | atom_NetSupported |
static Atom | kde_xdnd_drop |
static SmcConn | mySmcConnection = 0 |
static QByteArray * | startup_id_tmp |
static QList< const QWidget * > * | x11Filter = 0 |
Define Documentation
#define NUM_TO_STRING | ( | num | ) | NUM_TO_STRING2( num ) |
#define NUM_TO_STRING2 | ( | num | ) | #num |
Function Documentation
static void checkRestartVersion | ( | QSessionManager & | sm | ) | [static] |
Definition at line 683 of file kapplication.cpp.
static void installSigpipeHandler | ( | ) | [static] |
Installs a handler for the SIGPIPE signal.
It is thrown when you write to a pipe or socket that has been closed. The handler is installed automatically in the constructor, but you may need it if your application or component does not have a KApplication instance.
Definition at line 242 of file kapplication.cpp.
void KApplication_init_windows | ( | ) |
MS Windows-related actions for KApplication startup.
- Use Qt translation which will be usable for QFileDialog and other Qt-only GUIs. The "qt_<language>.qm" file should be stored in the same place as .po files for a given language.
- Increase the default open file limit with the stdio API from 512 to 2048 (2048 is the hard limit on Windows)
For internal use only.
Definition at line 42 of file kapplication_win.cpp.
static int kde_x_errhandler | ( | Display * | dpy, | |
XErrorEvent * | err | |||
) | [static] |
Definition at line 128 of file kapplication.cpp.
static int kde_xio_errhandler | ( | Display * | dpy | ) | [static] |
Definition at line 123 of file kapplication.cpp.
void kDebugCleanup | ( | ) |
Variable Documentation
Atom atom_DesktopWindow [static] |
Definition at line 113 of file kapplication.cpp.
Atom atom_NetSupported [static] |
Definition at line 114 of file kapplication.cpp.
Atom kde_xdnd_drop [static] |
Definition at line 115 of file kapplication.cpp.
SmcConn mySmcConnection = 0 [static] |
Definition at line 329 of file kapplication.cpp.
QByteArray* startup_id_tmp [static] |
Definition at line 116 of file kapplication.cpp.
Definition at line 233 of file kapplication.cpp.