Exemplo n.º 1
0
XFE_CALLBACK_DEFN(XFE_TaskBar, updateFloatingBusyState)
	(XFE_NotificationCenter *	/* obj */,
	 void *						clientData,
	 void *						/* callData */)
{
	XP_Bool busy = (XP_Bool) (int) clientData;

	Widget floatingShell = XfeAncestorFindByClass(m_widget,
												  shellWidgetClass,
												  XfeFIND_ANY);

	// Dont update busy state if not realized/alive or undocked
	if (!XfeIsAlive(floatingShell) || 
		!XtIsRealized(floatingShell) ||
		XFE_Dashboard::isTaskBarDocked())
	{
		return;
	}

	if (busy)
	{
		MWContext *	context = m_parentFrame->getContext();
		Cursor		cursor = CONTEXT_DATA(context)->busy_cursor;

		XDefineCursor(XtDisplay(floatingShell),
					  XtWindow(floatingShell),
					  cursor);
	}
	else
	{
		XUndefineCursor(XtDisplay(floatingShell),XtWindow(floatingShell));
	}
}
Exemplo n.º 2
0
void XFE_ReadAttachDrag::unlockFrame()
{
    Widget s=_widget;
    while (s && !XtIsShell(s)) {
        s=XtParent(s);
    }
    XtSetSensitive(s,TRUE);
    
    CONTEXT_DATA (_attachPanel->context())->clicking_blocked = False;
    fe_SetCursor (_attachPanel->context(), False);
}
Exemplo n.º 3
0
XFE_FolderFrame::XFE_FolderFrame(Widget toplevel,
								 XFE_Frame *parent_frame,
								 Chrome *chromespec) 
  : XFE_Frame("MailFolder", toplevel, parent_frame,
			  FRAME_MAILNEWS_FOLDER, chromespec)
{
  INTL_CharSetInfo c = LO_GetDocumentCharacterSetInfo(m_context);
  INTL_SetCSIWinCSID(c, 
		INTL_DocToWinCharSetID (CONTEXT_DATA (m_context)->xfe_doc_csid));

  geometryPrefName = "mail.folder";

D(	printf ("in XFE_FolderFrame::XFE_FolderFrame()\n");)
Exemplo n.º 4
0
// constructor
XFE_AddrBookView::XFE_AddrBookView(XFE_Component *toplevel_component, 
								   Widget         parent, 
								   XFE_View      *parent_view,
								   MWContext     *context,
								   XP_List       *directories):
	XFE_ABListSearchView(toplevel_component, 
						 parent,
						 parent_view, 
						 context,
						 directories){

  /* For outliner
   */
  int num_columns = OUTLINER_COLUMN_LAST;
  static int column_widths[] = {3, 25, 25, 8, 8, 10, 12};
  m_outliner = new XFE_Outliner("addressBookList",
								this,
								toplevel_component,
								parent,
								False, // constantSize
								True,  // hasHeadings
								num_columns,
								num_columns-2,// num_visible 
								column_widths,
								ADDRESS_OUTLINER_GEOMETRY_PREF);

  m_outliner->setMultiSelectAllowed(True);
  m_outliner->setHideColumnsAllowed(True);

  /* BEGIN_3P: XmLGrid
   */
  XtVaSetValues(m_outliner->getBaseWidget(),
				XmNselectionPolicy, XmSELECT_MULTIPLE_ROW,
                XtVaTypedArg, XmNblankBackground, XmRString, "white", 6,
				XmNvisibleRows, 15,
				NULL);
  XtVaSetValues(m_outliner->getBaseWidget(),
				XmNcellDefaults, True,
                XtVaTypedArg, XmNcellBackground, XmRString, "white", 6,
				NULL);
  /* END_3P: XmLGrid
   */
  // layout
  layout();

  setBaseWidget(m_outliner->getBaseWidget());

  /* For property
   */
  CONTEXT_DATA(m_contextData)->abdata->outline = m_outliner->getBaseWidget();
}
Exemplo n.º 5
0
Pixel
XFE_ViewDialog::getBottomShadowPixel()
{
  return CONTEXT_DATA(m_context)->bottom_shadow_pixel;
}
Exemplo n.º 6
0
Pixel
XFE_ViewDialog::getTopShadowPixel()
{
  return CONTEXT_DATA(m_context)->top_shadow_pixel;
}
Exemplo n.º 7
0
Pixel
XFE_ViewDialog::getBGPixel()
{
  return CONTEXT_DATA(m_context)->default_bg_pixel;
}
Exemplo n.º 8
0
Pixel
XFE_ViewDialog::getFGPixel()
{
  return CONTEXT_DATA(m_context)->fg_pixel;
}