3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Macros | Typedefs | Enumerations | Functions | Variables
wxcommon.cpp File Reference
#include "wxcommon.h"
#include "common/stringFuncs.h"
#include "common/constants.h"
#include <stack>
#include <wx/wx.h>
#include <wx/xml/xml.h>
#include <wx/filename.h>
#include <windows.h>
Include dependency graph for wxcommon.cpp:

Classes

struct  _UNICODE_STRING
 
struct  _SYSTEM_PROCESS_INFORMATION_DETAILD
 

Macros

#define STATUS_SUCCESS   ((NTSTATUS)0x00000000L)
 
#define STATUS_INFO_LENGTH_MISMATCH   ((NTSTATUS)0xC0000004L)
 

Typedefs

typedef long NTSTATUS
 
typedef enum _SYSTEM_INFORMATION_CLASS SYSTEM_INFORMATION_CLASS
 
typedef struct _UNICODE_STRING UNICODE_STRING
 
typedef LONG KPRIORITY
 
typedef struct _SYSTEM_PROCESS_INFORMATION_DETAILD SYSTEM_PROCESS_INFORMATION_DETAILD
 
typedef struct _SYSTEM_PROCESS_INFORMATION_DETAILDPSYSTEM_PROCESS_INFORMATION_DETAILD
 
typedef NTSTATUS(WINAPI * PFN_NT_QUERY_SYSTEM_INFORMATION) (IN SYSTEM_INFORMATION_CLASS SystemInformationClass, IN OUT PVOID SystemInformation, IN ULONG SystemInformationLength, OUT OPTIONAL PULONG ReturnLength)
 

Enumerations

enum  _SYSTEM_INFORMATION_CLASS { SystemProcessInformation = 5 }
 

Functions

std::string locateDataFile (const char *name)
 
void wxErrMsg (wxWindow *win, const std::string &title, const std::string &mesg)
 
bool processMatchesName (size_t processID, const std::string &procName)
 
void copyRGBAtoWXImage (unsigned int width, unsigned int height, const unsigned char *rgbaBuf, wxImage &image, const unsigned char *mask)
 
void combineWxImage (wxImage &base, const wxImage &overlay)
 

Variables

const char * RSS_FEED_LOCATION ="http://threedepict.sourceforge.net/rss.xml"
 
wxEventType RemoteUpdateAvailEvent = wxNewEventType()
 
wxEventType RefreshCompleteEvent = wxNewEventType()
 
const unsigned int MAX_RSS_CONTENT_SIZE =1024*1024
 
const char * PATH_NONCE ="%$-"
 
std::string inputString
 

Macro Definition Documentation

◆ STATUS_INFO_LENGTH_MISMATCH

#define STATUS_INFO_LENGTH_MISMATCH   ((NTSTATUS)0xC0000004L)

Referenced by processMatchesName().

◆ STATUS_SUCCESS

#define STATUS_SUCCESS   ((NTSTATUS)0x00000000L)

Referenced by processMatchesName().

Typedef Documentation

◆ KPRIORITY

typedef LONG KPRIORITY

◆ NTSTATUS

typedef long NTSTATUS

◆ PFN_NT_QUERY_SYSTEM_INFORMATION

typedef NTSTATUS(WINAPI * PFN_NT_QUERY_SYSTEM_INFORMATION) (IN SYSTEM_INFORMATION_CLASS SystemInformationClass, IN OUT PVOID SystemInformation, IN ULONG SystemInformationLength, OUT OPTIONAL PULONG ReturnLength)

◆ PSYSTEM_PROCESS_INFORMATION_DETAILD

◆ SYSTEM_INFORMATION_CLASS

◆ SYSTEM_PROCESS_INFORMATION_DETAILD

◆ UNICODE_STRING

Enumeration Type Documentation

◆ _SYSTEM_INFORMATION_CLASS

Enumerator
SystemProcessInformation 

Function Documentation

◆ combineWxImage()

void combineWxImage ( wxImage &  base,
const wxImage &  overlay 
)

References ASSERT.

Referenced by BasicGLPane::saveImage(), and validateTextAsStream().

Here is the caller graph for this function:

◆ copyRGBAtoWXImage()

void copyRGBAtoWXImage ( unsigned int  width,
unsigned int  height,
const unsigned char *  rgbaBuf,
wxImage &  image,
const unsigned char *  mask 
)

References ASSERT.

Referenced by BasicGLPane::saveImage(), and validateTextAsStream().

Here is the caller graph for this function:

◆ locateDataFile()

std::string locateDataFile ( const char *  name)

◆ processMatchesName()

bool processMatchesName ( size_t  processID,
const std::string &  procName 
)

◆ wxErrMsg()

void wxErrMsg ( wxWindow *  win,
const std::string &  title,
const std::string &  mesg 
)

Variable Documentation

◆ inputString

std::string inputString

◆ MAX_RSS_CONTENT_SIZE

const unsigned int MAX_RSS_CONTENT_SIZE =1024*1024

◆ PATH_NONCE

const char* PATH_NONCE ="%$-"

◆ RefreshCompleteEvent

wxEventType RefreshCompleteEvent = wxNewEventType()

◆ RemoteUpdateAvailEvent

wxEventType RemoteUpdateAvailEvent = wxNewEventType()

◆ RSS_FEED_LOCATION

const char* RSS_FEED_LOCATION ="http://threedepict.sourceforge.net/rss.xml"