/** * Create the report text areas. * * The report area consists of one text area for failures, one * text area for errors and one label for identification purposes. * All three widgets are packed into a box. * * @access private * @param none * @return &object The box containing the report areas. */ function &_createReportAreas() { // Create the containing box. $reportBox = new GtkVBox(); // Create the identification label $reportLabel = new GtkLabel('Errors and Failures:'); $reportLabel->set_alignment(0, 0); // Create the scrolled windows for the text areas. $reportScroll = new GtkScrolledWindow(); $dumpScroll = new GtkScrolledWindow(); // Make the scroll areas big enough. $reportScroll->set_usize(-1, 150); $dumpScroll->set_usize(-1, 150); // Only show the vertical scroll bar when needed. // Never show the horizontal scroll bar. $reportScroll->set_policy(GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); $dumpScroll->set_policy(GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); // Create the text areas. $this->reportArea = new GtkText(); $this->dumpArea = new GtkText(); // Don't let words get broken. $this->reportArea->set_word_wrap(true); $this->dumpArea->set_word_wrap(true); // Pack everything in. $reportBox->pack_start($reportLabel); $reportScroll->add($this->reportArea); $reportBox->pack_start($reportScroll); $dumpScroll->add($this->dumpArea); $reportBox->pack_start($dumpScroll); return $reportBox; }