dtmail: remove DEAD_WOOD code
This commit is contained in:
@@ -171,24 +171,6 @@ void Cmd::revert()
|
||||
deactivate();
|
||||
}
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
void Cmd::addToActivationList ( Cmd *cmd )
|
||||
{
|
||||
if ( !_activationList )
|
||||
_activationList = new CmdList();
|
||||
|
||||
_activationList->add ( cmd );
|
||||
}
|
||||
|
||||
void Cmd::addToDeactivationList ( Cmd *cmd )
|
||||
{
|
||||
if ( !_deactivationList )
|
||||
_deactivationList = new CmdList();
|
||||
|
||||
_deactivationList->add ( cmd );
|
||||
}
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
void Cmd::execute()
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -165,65 +165,6 @@ DisplayVersion (
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
// The callback for the Help Menu in the combo window.
|
||||
|
||||
void
|
||||
HelpMenuCB (
|
||||
Widget widget,
|
||||
XtPointer clientdata,
|
||||
XtPointer)
|
||||
{
|
||||
Widget selWidget = NULL;
|
||||
int status = DtHELP_SELECT_ERROR;
|
||||
|
||||
// Determine which help button was activated and display the
|
||||
// appropriate help information.
|
||||
|
||||
switch ((long) clientdata) {
|
||||
case HELP_ON_ITEM:
|
||||
while (!XtIsSubclass(widget, applicationShellWidgetClass))
|
||||
widget = XtParent(widget);
|
||||
status = DtHelpReturnSelectedWidgetId(widget, NULL, &selWidget);
|
||||
|
||||
switch ((int) status) {
|
||||
case DtHELP_SELECT_ERROR:
|
||||
printf(CATGETS(catd, 2, 1, "Selection Error, cannot continue\n"));
|
||||
break;
|
||||
case DtHELP_SELECT_VALID:
|
||||
while (selWidget != NULL) {
|
||||
if ((XtHasCallbacks(selWidget, XmNhelpCallback)
|
||||
== XtCallbackHasSome)) {
|
||||
XtCallCallbacks((Widget)selWidget,
|
||||
XmNhelpCallback, NULL);
|
||||
break;
|
||||
} else {
|
||||
selWidget = XtParent(selWidget);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DtHELP_SELECT_ABORT:
|
||||
printf(CATGETS(catd, 2, 2, "Selection aborted by user.\n"));
|
||||
break;
|
||||
case DtHELP_SELECT_INVALID:
|
||||
printf(CATGETS(catd, 1, 6,
|
||||
"You must select a component withing your app.\n"));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case HELP_ON_TOPIC:
|
||||
DisplayMain(widget, NULL, APP_MENU_ID);
|
||||
break;
|
||||
case HELP_ON_VERSION:
|
||||
DisplayVersion(widget, NULL, VER_MENU_ID);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
|
||||
// Callback to process JUMP-NEW and APP-LINK hypertext requests in a
|
||||
// given Help Dialog Window.
|
||||
//
|
||||
|
||||
@@ -786,23 +786,6 @@ MenuBar::rotateLabels(
|
||||
XmStringFree(endlabel);
|
||||
}
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
Boolean
|
||||
MenuBar::isValidMenuPane(Widget w)
|
||||
{
|
||||
Boolean retval = FALSE;
|
||||
Widget parent = w;
|
||||
|
||||
while(parent && parent != _w)
|
||||
parent = XtParent(parent);
|
||||
|
||||
if(parent == _w)
|
||||
retval = TRUE;
|
||||
|
||||
return retval;
|
||||
}
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
void
|
||||
MenuBar::removeCommand(
|
||||
Widget pulldown,
|
||||
|
||||
@@ -66,13 +66,6 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/MessageB.h>
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
// Define an instance to be available throughout the framework.
|
||||
|
||||
QuestionDialogManager *theQuestionDialogManager =
|
||||
new QuestionDialogManager ( "QuestionDialog", "QuestionDialog" );
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
QuestionDialogManager::QuestionDialogManager ( char *name ) :
|
||||
DialogManager ( name )
|
||||
{
|
||||
|
||||
@@ -215,41 +215,6 @@ UIComponent::getResources( const XtResourceList resources,
|
||||
0 );
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEAD_WOOD
|
||||
void
|
||||
UIComponent::setDefaultResources( const Widget w,
|
||||
const String *resourceSpec )
|
||||
{
|
||||
int i;
|
||||
Display *dpy = XtDisplay ( w ); // Retrieve the display pointer
|
||||
XrmDatabase rdb = NULL; // A resource data base
|
||||
|
||||
// Create an empty resource database
|
||||
|
||||
rdb = XrmGetStringDatabase ( "" );
|
||||
|
||||
// Add the Component resources, prepending the name of the component
|
||||
|
||||
i = 0;
|
||||
while ( resourceSpec[i] != NULL )
|
||||
{
|
||||
char *buf = new char[1000];
|
||||
sprintf(buf, "*%s%s", _name, resourceSpec[i++]);
|
||||
XrmPutLineResource( &rdb, buf );
|
||||
delete [] buf;
|
||||
}
|
||||
|
||||
// Merge them into the Xt database, with lowest precendence
|
||||
|
||||
if ( rdb )
|
||||
{
|
||||
XrmDatabase db = XtDatabase(dpy);
|
||||
XrmCombineDatabase(rdb, &db, FALSE);
|
||||
}
|
||||
}
|
||||
#endif /* DEAD_WOOD */
|
||||
|
||||
#ifndef CAN_INLINE_VIRTUALS
|
||||
const char *const
|
||||
UIComponent::className(void)
|
||||
|
||||
Reference in New Issue
Block a user