Ejemplo n.º 1
0
/* ---------------------------------------------------------------------
 * PasswddlgCreateHook
 * Create dialog controls
 * ---------------------------------------------------------------------
 */
static void
PasswddlgCreateHook(void* w)
{
	CUIWINDOW* win = (CUIWINDOW*) w;
	CUIWINDOW* ctrl;
	PASSWDDLGDATA* data = (PASSWDDLGDATA*) win->InstData;

	ctrl = LabelNew(win, _T("Enter Password:"******"Retype Password:"******"&OK"), 14, 6, 10, 1, IDOK, CWS_DEFOK, CWS_NONE);
	ButtonSetClickedHook(ctrl, PasswddlgButtonHook, win);
	WindowCreate(ctrl);

	ctrl = ButtonNew(win, _T("&Cancel"), 27, 6, 10, 1, IDCANCEL, CWS_DEFCANCEL, CWS_NONE);
	ButtonSetClickedHook(ctrl, PasswddlgButtonHook, win);
	WindowCreate(ctrl);
}
Ejemplo n.º 2
0
WebBox::WebBox ()
{
  showFrame = true;
  reloadOn = false;
  reloadSecs = 0;  // 1 day
  pApp = 0;
  uaList = 0;
  defaultWinFlags = this->windowFlags();
  effectiveUrl = QUrl("");
  
  setupUi (this);
  thePage = new MiniPage (this);
  webView->setPage (thePage) ;
  loadingLabel->hide ();
  failedLabel->hide ();
  
  InitUserMenu ();
  InitSettingsMenu ();
  MakeShortcuts ();
  DisableNewUrl ();
  DisableSettings ();
  agentMenu->hide();
  
  reloadTimer.setParent (this);
  reloadTimer.stop ();
  
  connect (theButton, SIGNAL ( clicked ()), this, SLOT ( UserWantsSomething()));
  connect (webView, SIGNAL ( loadFinished (bool)),
           this, SLOT ( LoadDone (bool)));
  connect (webView, SIGNAL ( loadStarted ()), 
           this, SLOT ( LoadStarted ()));
  connect (agentMenu, SIGNAL ( UserAgentChange (const UserAgent)),
            this, SLOT ( SetAgent (const UserAgent)));
  connect (agentMenu, SIGNAL ( UserAgentNew ()),
           newAgent, SLOT ( EditNew ()));
  connect (agentMenu, SIGNAL ( UserAgentEdit ( const QString )),
           newAgent, SLOT ( EditAgent (const QString )));
  
}