module 'greptool'
applicationName = 'greptool';
generateNameC = 'maindialog.xc';
generateUidFile = '';
generateCPixmapFile = '';
generateCHeaderFile = '';
generateMask = 4423680;
useMask = 1;
ansiC = 0;
useCPixmaps = 0;
useUILPixmaps = 0;
useCHeaders = 0;
useCUILHeaders = 0;
useCPPHeaders = 0;
value
object 'mainshell' : XmDialogShell {
	arguments {
	preRealisation = '/* Pre-manage prelude for main dialog shell */
/* Define and initialise client data structure for setcommand calback */
static ccdata_t ccdata= {
	&searchfiles,
	&pattern,
	&ignore_case,
	&show_lines,
	&show_files,
	&invert,
	&count_lines,
	&show_block,
	&command
};

/* Define and initialise client data for the rungrep callback */
static rcdata_t rcdata = {
	&hitstring,
	&errorshell,
	&errorform,
	&errortext,
	&mainshell
};

/* End of shell pre-manage prelude */';
	XmNallowShellResize = true;
	XmNtitle = 'greptool';
	XmNprimary = 1;
	};
object 'command' : XmCommand {
	arguments {
	XmNwidth = 480;
	XmNtextColumns = 62;
	XmNcommand = '/bin/grep';
	};
	callbacks {
	XmNcommandEnteredCallback = 'rungrep(&rcdata);';
	};
object '' : XmScrolledList {
	arguments {
	};
object '' : XmScrollBar {
	arguments {
	name = 'HorScrollBar';
	};
};
object '' : XmScrollBar {
	arguments {
	name = 'VertScrollBar';
	};
};
object '' : XmList {
	arguments {
	name = 'ItemsList';
	XmNlistSpacing = 0;
	XmNlistSizePolicy = 2;
	};
};
};
object '' : XmLabel GADGET {
	arguments {
	name = 'Selection';
	};
};
object 'commandline' : XmText {
	arguments {
	name = 'Text';
	};
	callbacks {
	XmNactivateCallback = '';
	};
};
object '' : XmForm {
	arguments {
	XmNautoUnmanage = false;
	};
object '' : XmLabel GADGET {
	arguments {
	XmNlabelString = 'Search for';
	};
};
object 'pattern' : XmText {
	arguments {
	};
	callbacks {
	XmNactivateCallback = 'setcommand(&ccdata);';
	};
};
object '' : XmLabel GADGET {
	arguments {
	XmNlabelString = 'File filter';
	};
};
object 'searchfiles' : XmText {
	arguments {
	};
	callbacks {
	XmNactivateCallback = 'setcommand(&ccdata)';
	};
};
object '' : XmLabel GADGET {
	arguments {
	XmNlabelString = 'Hits';
	};
};
object '' : XmScrolledText {
	arguments {
	};
object '' : XmScrollBar {
	arguments {
	name = 'HorScrollBar';
	};
};
object '' : XmScrollBar {
	arguments {
	name = 'VertScrollBar';
	};
};
object 'hitstring' : XmText {
	arguments {
	XmNeditable = false;
	XmNresizeWidth = true;
	XmNeditMode = 0;
	XmNrows = 16;
	};
};
};
object '' : XmRowColumn {
	arguments {
	};
object 'ignore_case' : XmToggleButton {
	arguments {
	XmNlabelString = 'Ignore case';
	};
	callbacks {
	XmNvalueChangedCallback = 'setcommand(&ccdata);';
	};
};
object 'show_files' : XmToggleButton {
	arguments {
	XmNlabelString = 'Show file names';
	};
	callbacks {
	XmNvalueChangedCallback = 'setcommand(&ccdata);';
	};
};
object 'show_lines' : XmToggleButton {
	arguments {
	XmNlabelString = 'Show line numbers';
	};
	callbacks {
	XmNvalueChangedCallback = 'setcommand(&ccdata);';
	XmNactivateCallback = '';
	};
};
object 'invert' : XmToggleButton {
	arguments {
	XmNlabelString = 'Invert search';
	};
	callbacks {
	XmNvalueChangedCallback = 'setcommand(&ccdata);';
	};
};
object 'count_lines' : XmToggleButton {
	arguments {
	XmNlabelString = 'Count lines only';
	};
	callbacks {
	XmNvalueChangedCallback = 'setcommand(&ccdata);';
	};
};
object 'show_block' : XmToggleButton {
	arguments {
	XmNlabelString = 'Show block numbers';
	};
	callbacks {
	XmNvalueChangedCallback = 'setcommand(&ccdata);';
	};
};
};
    attachments {
    attachment {
	XmNleftAttachment = 1 0;
	XmNtopAttachment = 1 0;
    };
    attachment {
	XmNrightAttachment = 3 7 20;
	XmNleftAttachment = 1 0;
	XmNtopAttachment = 3 1 10;
    };
    attachment {
	XmNleftAttachment = 1 0;
	XmNtopAttachment = 3 2 20;
    };
    attachment {
	XmNrightAttachment = 3 7 20;
	XmNleftAttachment = 1 0;
	XmNtopAttachment = 3 3 10;
    };
    attachment {
	XmNleftAttachment = 1 0;
	XmNtopAttachment = 3 4 20;
    };
    attachment {
	XmNrightAttachment = 1 0 0;
	XmNleftAttachment = 1 0;
	XmNtopAttachment = 3 5 20;
    };
    attachment {
	XmNrightAttachment = 1 0 0;
	XmNleftAttachment = 0 0 0;
	XmNtopAttachment = 1 0;
    };
    };
};
};
};
end module;
