JX Application Framework
|
#include "jXGlobals.h"
#include "JXUserNotification.h"
#include "JXCreatePG.h"
#include "JXSearchTextDialog.h"
#include "JXSpellChecker.h"
#include "JXHelpManager.h"
#include "JXDocumentManager.h"
#include "JXDockManager.h"
#include "JXMDIServer.h"
#include "JXWebBrowser.h"
#include "JXDisplay.h"
#include "JXAssert.h"
#include "JXSharedPrefsManager.h"
#include "JXFontManager.h"
#include <jx-af/jcore/jStreamUtil.h>
#include <jx-af/jcore/jDirUtil.h>
#include <X11/Xlib.h>
#include <jx-af/jcore/jAssert.h>
void JXCloseDirectors | ( | ) |
Called before closing JXDisplays.
void JXCreateDefaultDocumentManager | ( | const bool | wantShortcuts | ) |
This is provided for convenience for all the programs that do not need a derived class of JXDocumentManager.
void JXCreateGlobals | ( | JXApplication * | app, |
const JUtf8Byte * | appSignature, | ||
const JUtf8Byte ** | defaultStringData | ||
) |
void JXDeleteGlobals1 | ( | ) |
Called after closing JXDisplays, before deleting idle and urgent tasks.
void JXDeleteGlobals2 | ( | ) |
Called after deleting idle and urgent tasks.
JXApplication * JXGetApplication | ( | ) |
bool JXGetApplication | ( | JXApplication ** | app | ) |
JXAssert * JXGetAssertHandler | ( | ) |
JXDockManager * JXGetDockManager | ( | ) |
This function calls assert() if JXSetDockManager() has not been called.
bool JXGetDockManager | ( | JXDockManager ** | dockMgr | ) |
This version returns false if JXSetDockManager() has not been called.
const JUtf8Byte * JXGetDockWindowClass | ( | ) |
JXDocumentManager * JXGetDocumentManager | ( | ) |
This function calls assert() if JXSetDocumentManager() has not been called. We do this because JXDocuments cannot be used otherwise.
bool JXGetDocumentManager | ( | JXDocumentManager ** | docManager | ) |
JXHelpManager * JXGetHelpManager | ( | ) |
This function calls assert() if JXInitHelp() has not been called. We do this because the help system cannot be used otherwise.
bool JXGetHelpManager | ( | JXHelpManager ** | helpMgr | ) |
This version returns false if the help system has not been initialized.
const JUtf8Byte * JXGetInvisibleWindowClass | ( | ) |
bool JXGetMDIServer | ( | JXMDIServer ** | server | ) |
JXDirector * JXGetPersistentWindowOwner | ( | ) |
This should be the supervisor of all persistent windows whose existence should not keep the application running.
Returns the full paths of the system and user directories in which the program should create its private directories. dirName is appended to each one for convenience.
Returns false if the user doesn't have a home directory, in which case userDir is empty.
Does not check if either directory exists.
JXSearchTextDialog * JXGetSearchTextDialog | ( | ) |
bool JXGetSearchTextDialog | ( | JXSearchTextDialog ** | dlog | ) |
JXSharedPrefsManager * JXGetSharedPrefsManager | ( | ) |
JXSpellChecker * JXGetSpellChecker | ( | ) |
JXWebBrowser * JXGetWebBrowser | ( | ) |
void JXInitHelp | ( | ) |
Creates JXHelpManager.
void JXResumePersistentWindows | ( | ) |
void JXSetDockManager | ( | JXDockManager * | dockMgr | ) |
Automatically called by JXMDIServer.
After calling this function, we own the object and will delete it when the program terminates.
void JXSetDocumentManager | ( | JXDocumentManager * | docManager | ) |
The application code must call this exactly once if it uses JXDocument. We don't create JXDocumentManager automatically because one may need a derived class.
After calling this function, we own the object and will delete it when the program terminates.
void JXSetMDIServer | ( | JXMDIServer * | server | ) |
Automatically called by JXMDIServer.
After calling this function, we own the object and will delete it when the program terminates.
void JXSetSearchTextDialog | ( | JXSearchTextDialog * | dlog | ) |
Automatically called by JXSearchTextDialog.
After calling this function, we own the object and will delete it when the program terminates.
void JXSuspendPersistentWindows | ( | ) |