コード例 #1
0
//====================================
// Constructor...
//------------------------------------
SaXManipulateExtensions::SaXManipulateExtensions (SaXImport* in) {
	// .../
	//! An object of this type is used to configure the
	//! server extensions: XEVIE,Composite,DAMAGE and XFIXES
	// ----
	if ( ! in ) {
		excNullPointerArgument ();
		qError (errorString(),EXC_NULLPOINTERARGUMENT);
		return;
	}
	if ( in->getSectionID() != SAX_EXTENSIONS ) {
		excExtensionsImportBindFailed ( in->getSectionID() );
		qError (errorString(),EXC_EXTENSIONSIMPORTBINDFAILED);
		return;
	}
	mImport = in;
	mExtensions = 0;
	mImport -> setID ( mExtensions );
}
コード例 #2
0
ファイル: path.cpp プロジェクト: schaefi/sax2
//====================================
// Constructor...
//------------------------------------
SaXManipulatePath::SaXManipulatePath (SaXImport* in, int path) {
	// .../
	//! An object of this type is used to configure the
	//! Files,Module and ServerFlags specifications including
	//! path descriptions for Fonts loadable module settings
	//! and server flags
	// ----
	if ( ! in ) {
		excNullPointerArgument ();
		qError (errorString(),EXC_NULLPOINTERARGUMENT);
		return;
	}
	if ( in->getSectionID() != SAX_PATH ) {
		excPathImportBindFailed ( in->getSectionID() );
		qError (errorString(),EXC_PATHIMPORTBINDFAILED);
		return;
	}
	mImport = in;
	mPath   = path;
	mImport -> setID ( mPath );
}
コード例 #3
0
ファイル: pointers.cpp プロジェクト: BackupTheBerlios/sax-svn
//====================================
// Constructor...
//------------------------------------
SaXManipulatePointers::SaXManipulatePointers (SaXImport* in, int ptr) {
	// .../
	//! This baseclass is used to provide common pointer
	//! manipulation methods for the devices Mice Tablets and Touchscreens.
	//! it provides a protected constructor only. Therefore it is not
	//! possible to create an object of this type
	// ----
	if ( ! in ) {
		excNullPointerArgument ();
		qError (errorString(),EXC_NULLPOINTERARGUMENT);
		return;
	}
	if ( in->getSectionID() != SAX_POINTERS ) {
		excPointerImportBindFailed ( in->getSectionID() );
		qError (errorString(),EXC_POINTERIMPORTBINDFAILED);
		return;
	}
	mImport  = in;
	mPointer = ptr;
	mImport -> setID ( mPointer );
}
コード例 #4
0
ファイル: device.cpp プロジェクト: BackupTheBerlios/sax-svn
//====================================
// Constructor...
//------------------------------------
SaXManipulateDevices::SaXManipulateDevices (
	SaXImport* desktop ,SaXImport* card ,SaXImport* layout
) {
	// .../
	//! an object of this type is used to create or remove new
	//! desktops for further configuration. A desktop is defined
	//! by the Monitor,Modes,Screen and ServerLayout sections.
	//! Adding a new desktop will add a new Monitor,Modes and Screen
	//! section. The section gets activated by chaning the global
	//! ServerLayout section. Removing a desktop will do the same
	//! vice versa
	// ----
	desktopHandlingAllowed = false;
	inputHandlingAllowed   = false;
	if ( (!desktop) || (!card) || (!layout)) {
		excNullPointerArgument ();
		qError (errorString(),EXC_NULLPOINTERARGUMENT);
		return;
	}
	if ( desktop->getSectionID() != SAX_DESKTOP ) {
		excDesktopImportBindFailed ( desktop->getSectionID() );
		qError (errorString(),EXC_DESKTOPIMPORTBINDFAILED);
		return;
	}
	if ( card->getSectionID() != SAX_CARD ) {
		excCardImportBindFailed ( card->getSectionID() );
		qError (errorString(),EXC_CARDIMPORTBINDFAILED);
		return;
	}
	if ( layout->getSectionID() != SAX_LAYOUT ) {
		excLayoutImportBindFailed ( layout->getSectionID() );
		qError (errorString(),EXC_LAYOUTIMPORTBINDFAILED);
		return;
	}
	desktopHandlingAllowed = true;
	mDesktop = desktop;
	mCard    = card;
	mLayout  = layout;
	mInput   = 0;
}
コード例 #5
0
ファイル: card.cpp プロジェクト: BackupTheBerlios/sax-svn
//====================================
// Constructor...
//------------------------------------
SaXManipulateCard::SaXManipulateCard (SaXImport* in, int card) {
	// .../
	//! An object of this type is used to manipulate the graphics
	//! card settings refering to the X11 Device sections. An
	//! import of type SAX_CARD is required with this class
	// ----
	mImport = 0;
	if ( ! in ) {
		excNullPointerArgument ();
		qError (errorString(),EXC_NULLPOINTERARGUMENT);
		return;
	}
	if ( in->getSectionID() != SAX_CARD ) {
		excCardImportBindFailed ( in->getSectionID() );
		qError (errorString(),EXC_CARDIMPORTBINDFAILED);
		return;
	}
	mImport = in;
	mCard   = card;
	mImport -> setID ( mCard );
	mCDBCardModules = 0;
}
コード例 #6
0
ファイル: device.cpp プロジェクト: BackupTheBerlios/sax-svn
//====================================
// Constructor...
//------------------------------------
SaXManipulateDevices::SaXManipulateDevices (
	SaXImport* input, SaXImport* layout
) {
	// .../
	//! an object of this type is used to create or remove new
	//! input devices. An input device is a mouse,tablet,touchscreen
	//! or keyboard. An input device is defined by its InputDevice
	//! section and is activated within the global ServerLayout
	//! section. Adding an input device requires setting the InputFashion
	//! which is the type of the device.
	// ----
	desktopHandlingAllowed = false;
	inputHandlingAllowed   = false;
	if ((!input) || (!layout)) {
		excNullPointerArgument ();
		qError (errorString(),EXC_NULLPOINTERARGUMENT);
		return;
	}
	if (layout->getSectionID() != SAX_LAYOUT) {
		excLayoutImportBindFailed ( layout->getSectionID() );
		qError (errorString(),EXC_LAYOUTIMPORTBINDFAILED);
		return;
	}
	if (
		(input->getSectionID() != SAX_POINTERS) &&
		(input->getSectionID() != SAX_KEYBOARD)
	) {
		excPointerImportBindFailed ( input->getSectionID() );
		qError (errorString(),EXC_POINTERIMPORTBINDFAILED);
		return;
	}
	inputHandlingAllowed = true;
	mInput   = input;
	mLayout  = layout;
	mDesktop = 0;
	mCard    = 0;
}