/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from MainDlgIface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "/tmp/buildd/tde-packaging/arch/tde-extra/tde-tdeedu/src/tdeedu-trinity-14.1.6/kmplot/kmplot/MainDlgIface.h"

#include <kdatastream.h>
#include <tqasciidict.h>


static const int MainDlgIface_fhash = 29;
static const char* const MainDlgIface_ftable[29][3] = {
    { "bool", "checkModified()", "checkModified()" },
    { "bool", "isModified()", "isModified()" },
    { "void", "editColors()", "editColors()" },
    { "void", "editAxes()", "editAxes()" },
    { "void", "editScaling()", "editScaling()" },
    { "void", "editFonts()", "editFonts()" },
    { "void", "editConstants()", "editConstants()" },
    { "void", "newFunction()", "newFunction()" },
    { "void", "newParametric()", "newParametric()" },
    { "void", "newPolar()", "newPolar()" },
    { "void", "toggleShowSlider0()", "toggleShowSlider0()" },
    { "void", "toggleShowSlider1()", "toggleShowSlider1()" },
    { "void", "toggleShowSlider2()", "toggleShowSlider2()" },
    { "void", "toggleShowSlider3()", "toggleShowSlider3()" },
    { "void", "slotSave()", "slotSave()" },
    { "void", "slotSaveas()", "slotSaveas()" },
    { "void", "slotEditPlots()", "slotEditPlots()" },
    { "void", "slotPrint()", "slotPrint()" },
    { "void", "slotExport()", "slotExport()" },
    { "void", "slotSettings()", "slotSettings()" },
    { "void", "slotNames()", "slotNames()" },
    { "void", "slotCoord1()", "slotCoord1()" },
    { "void", "slotCoord2()", "slotCoord2()" },
    { "void", "slotCoord3()", "slotCoord3()" },
    { "void", "getYValue()", "getYValue()" },
    { "void", "findMinimumValue()", "findMinimumValue()" },
    { "void", "findMaximumValue()", "findMaximumValue()" },
    { "void", "graphArea()", "graphArea()" },
    { 0, 0, 0 }
};
static const int MainDlgIface_ftable_hiddens[28] = {
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
    0,
};

bool MainDlgIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    static TQAsciiDict<int>* fdict = 0;
    if ( !fdict ) {
	fdict = new TQAsciiDict<int>( MainDlgIface_fhash, true, false );
	for ( int i = 0; MainDlgIface_ftable[i][1]; i++ )
	    fdict->insert( MainDlgIface_ftable[i][1],  new int( i ) );
    }
    int* fp = fdict->find( fun );
    switch ( fp?*fp:-1) {
    case 0: { // bool checkModified()
	replyType = MainDlgIface_ftable[0][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << checkModified( );
    } break;
    case 1: { // bool isModified()
	replyType = MainDlgIface_ftable[1][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << isModified( );
    } break;
    case 2: { // void editColors()
	replyType = MainDlgIface_ftable[2][0]; 
	editColors( );
    } break;
    case 3: { // void editAxes()
	replyType = MainDlgIface_ftable[3][0]; 
	editAxes( );
    } break;
    case 4: { // void editScaling()
	replyType = MainDlgIface_ftable[4][0]; 
	editScaling( );
    } break;
    case 5: { // void editFonts()
	replyType = MainDlgIface_ftable[5][0]; 
	editFonts( );
    } break;
    case 6: { // void editConstants()
	replyType = MainDlgIface_ftable[6][0]; 
	editConstants( );
    } break;
    case 7: { // void newFunction()
	replyType = MainDlgIface_ftable[7][0]; 
	newFunction( );
    } break;
    case 8: { // void newParametric()
	replyType = MainDlgIface_ftable[8][0]; 
	newParametric( );
    } break;
    case 9: { // void newPolar()
	replyType = MainDlgIface_ftable[9][0]; 
	newPolar( );
    } break;
    case 10: { // void toggleShowSlider0()
	replyType = MainDlgIface_ftable[10][0]; 
	toggleShowSlider0( );
    } break;
    case 11: { // void toggleShowSlider1()
	replyType = MainDlgIface_ftable[11][0]; 
	toggleShowSlider1( );
    } break;
    case 12: { // void toggleShowSlider2()
	replyType = MainDlgIface_ftable[12][0]; 
	toggleShowSlider2( );
    } break;
    case 13: { // void toggleShowSlider3()
	replyType = MainDlgIface_ftable[13][0]; 
	toggleShowSlider3( );
    } break;
    case 14: { // void slotSave()
	replyType = MainDlgIface_ftable[14][0]; 
	slotSave( );
    } break;
    case 15: { // void slotSaveas()
	replyType = MainDlgIface_ftable[15][0]; 
	slotSaveas( );
    } break;
    case 16: { // void slotEditPlots()
	replyType = MainDlgIface_ftable[16][0]; 
	slotEditPlots( );
    } break;
    case 17: { // void slotPrint()
	replyType = MainDlgIface_ftable[17][0]; 
	slotPrint( );
    } break;
    case 18: { // void slotExport()
	replyType = MainDlgIface_ftable[18][0]; 
	slotExport( );
    } break;
    case 19: { // void slotSettings()
	replyType = MainDlgIface_ftable[19][0]; 
	slotSettings( );
    } break;
    case 20: { // void slotNames()
	replyType = MainDlgIface_ftable[20][0]; 
	slotNames( );
    } break;
    case 21: { // void slotCoord1()
	replyType = MainDlgIface_ftable[21][0]; 
	slotCoord1( );
    } break;
    case 22: { // void slotCoord2()
	replyType = MainDlgIface_ftable[22][0]; 
	slotCoord2( );
    } break;
    case 23: { // void slotCoord3()
	replyType = MainDlgIface_ftable[23][0]; 
	slotCoord3( );
    } break;
    case 24: { // void getYValue()
	replyType = MainDlgIface_ftable[24][0]; 
	getYValue( );
    } break;
    case 25: { // void findMinimumValue()
	replyType = MainDlgIface_ftable[25][0]; 
	findMinimumValue( );
    } break;
    case 26: { // void findMaximumValue()
	replyType = MainDlgIface_ftable[26][0]; 
	findMaximumValue( );
    } break;
    case 27: { // void graphArea()
	replyType = MainDlgIface_ftable[27][0]; 
	graphArea( );
    } break;
    default: 
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList MainDlgIface::interfaces()
{
    QCStringList ifaces = DCOPObject::interfaces();
    ifaces += "MainDlgIface";
    return ifaces;
}

QCStringList MainDlgIface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; MainDlgIface_ftable[i][2]; i++ ) {
	if (MainDlgIface_ftable_hiddens[i])
	    continue;
	TQCString func = MainDlgIface_ftable[i][0];
	func += ' ';
	func += MainDlgIface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}


