Exemplo n.º 1
0
void
PutPsFile()
{
    Prologue();
    Variables();
    BorderOutlineBox();

    if (bflag) {
	BigTitleOutlineBox();
        BigTitleText();
    } else {
	TitleOutlineBox();
	TitleText();
    }

    CurvesInit();

    Axes();

    if (TWENTY) Key();

    Curves();

    if (!yflag) Marks();

    fprintf(psfp, "showpage\n");
}
Exemplo n.º 2
0
void SplashDialog::Show2( wxWindow * pParent )
{
   if( pSelf == NULL )
   {
      pSelf = new SplashDialog( pParent );
   }
   pSelf->mpHtml->SetPage(HelpText( wxT("welcome") ));
   pSelf->SetLabel(TitleText(wxT("welcome")));
   pSelf->Show( true );
}
Exemplo n.º 3
0
void LinkingHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
{
   wxString href = link.GetHref();
   if( href.StartsWith(wxT("innerlink:")) )
   {
      this->SetPage( HelpText( href.Mid( 10 )));
      this->GetParent()->SetLabel( TitleText( href.Mid( 10 )));
      return;
   }
   OpenInDefaultBrowser(link);
}
Exemplo n.º 4
0
static void DoTitleAndBox(void)
{
    BorderOutlineBox();

    if (bflag) {
	BigTitleOutlineBox();
        BigTitleText();
    } else {
	TitleOutlineBox();
	TitleText();
    }
}
Exemplo n.º 5
0
void ErrorDialog::OnHelp(wxCommandEvent & WXUNUSED(event))
{
   if( dhelpURL.StartsWith(wxT("innerlink:")) )
   {
      HelpSystem::ShowHtmlText(
         this,
         TitleText(dhelpURL.Mid( 10 ) ),
         HelpText( dhelpURL.Mid( 10 )),
         false,
         true );
      return;
   }
   OpenInDefaultBrowser( dhelpURL );
   if(dClose)
      EndModal(true);
}
Exemplo n.º 6
0
		cProgressBar(cWrappingCounter id, tTaskHandle handle, cAppObjectFactory& factory,
									cRoundedRectangle&& bar_rect, cRoundedRectangle&& main_rect,
									cScreenText&& title_text, cScreenText&& status_text)
			: cApplicationObject(id)
			, mTaskHandle(handle)
			, mObjectFactory(factory)
			, mMainRectangle(std::move(main_rect))
			, mBarBackGround(std::move(bar_rect))
			, mIsTaskFinished(false)
		{
			Log::Debug("ProgressBar Created!");
			mScreenText.emplace_back(std::move(title_text));
			mScreenText.emplace_back(std::move(status_text));
			iRect bb = TitleText().BoundingBox();
			cCoord2 br_main = mMainRectangle.BottomRight();
			if(br_main.x < bb.Right() + 10 )
			{
				br_main.x = static_cast<float>(bb.Right()+10);
				mMainRectangle.BottomRight(br_main);
				mBarBackGround.BottomRight(br_main - cCoord2(10.0f, 10.0f));
			}
			mMainRectangle.FillAlpha(200);
			mBarBackGround.FillAlpha(200);
			mBarMoving = mBarBackGround.Duplicate()
																	.FillColor(cWebColor::YELLOW)
																	.FillAlpha(170);
			cCoord2 top_left = mBarMoving.TopLeft();
			cCoord2 bottom_right = mBarMoving.BottomRight();
			const cCoord2 size = bottom_right - top_left;
			const cCoord2 padding = size*0.0f;
			top_left += padding;
			bottom_right -= padding;
			mXOrigin = top_left.x;
			mFullBarLength = bottom_right.x - mXOrigin;
			bottom_right.x = top_left.x;
			mBarMoving.TopLeft(top_left).BottomRight(bottom_right);

			mBarMoving.AddText(cMutableArrayRef<cScreenText>(mScreenText.data(), 2));
			mBarBackGround.Show();
			mBarMoving.Show();
			mMainRectangle.Show();
		}
Exemplo n.º 7
0
void LinkingHtmlWindow::OnLinkClicked(const wxHtmlLinkInfo& link)
{
   wxString href = link.GetHref();
   if( href.StartsWith(wxT("innerlink:")) )
   {
      wxString FileName =
         wxFileName( FileNames::HtmlHelpDir(), href.Mid( 10 ) + wxT(".htm") ).GetFullPath();
      if( wxFileExists( FileName ) )
      {
         HelpSystem::ShowHelpDialog(NULL, FileName, wxT(""));
         return;
      }
      else
      {
         SetPage( HelpText( href.Mid( 10 )));
         wxGetTopLevelParent(this)->SetLabel( TitleText( href.Mid( 10 )));
      }
   }
   else if( href.StartsWith(wxT("mailto:")) || href.StartsWith(wxT("file:")) )
   {
      OpenInDefaultBrowser( link );
      return;
   }
   else if( !href.StartsWith( wxT("http:"))  && !href.StartsWith( wxT("https:")) )
   {
      HtmlWindow::OnLinkClicked( link );
   }
   else
   {
      OpenInDefaultBrowser(link);
      return;
   }
   BrowserFrame * pDlg = wxDynamicCast( GetRelatedFrame(), BrowserFrame );
   if( pDlg )
   {
      pDlg->UpdateButtons();
   };
}
Exemplo n.º 8
0
void PutFile()
{

  MakeIdentTable();
  SortIdentTable(); /* Sort identifiers by size. */
  TopBands();       /* Keep only noOfBands bands and put rest in an other group. */
  Dimensions(); 
  Scale();

  #if PRINT_IDENT_TABLE
    printIdentTable();
  #endif  

  /* Start printing graph. */
  Prologue();
  output->Fonts();
  BorderOutlineBox();

  TitleOutlineBox();
  TitleText();
  
  CurvesInit();
  
  Key();
  
  Curves();

  Axes();

  if (showMax)
    drawMaxValue(maxValue, maxValueStr);
  if (mflag) Marks();
  if (cflag) Comments();
  output->Prologue();

  return;
}