+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these librararies and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
/* Copyright (c) 1994,1995,1996 FUJITSU LIMITED */
/* All Rights Reserved */
#include "Managers/WString.hh"
#include <Prelude.h>
-#include <iostream.h>
+#include <iostream>
+using namespace std;
#include "Registration.hh"
relevancy[0] += (char) ((re->relevance() * 8 ) / f_scale);
- WXmString rel (relevancy, OLIAS_FONT);
+ WXmString rel (relevancy, (char*)OLIAS_FONT);
WXmString book;
WXmString name;
}
else {
- char* dots = "...";
+ char* dots = (char*)"...";
WXmString temp_xmstring = book + WXmString(dots);
char *temp_str = (char*)temp_xmstring;
XmString *t = string_table;
int string_count = 0 ;
- for (int i = 0; i < rlist.length(); i ++) {
+ int i;
+ for (i = 0; i < rlist.length(); i ++) {
string_count++ ;
*t++ = form_result_string (rlist[i]);
}
void
SearchResultsAgent::create_window()
{
- create_base_window ("results");
+ create_base_window ((char*)"results");
XmStringLocalized mtfstring;
String string;
string = CATGETS(Set_SearchResultsAgent, 1, "Dtinfo: Search Results");
XtVaSetValues((Widget)*f_shell, XmNtitle, string, NULL);
- help_agent().add_activate_help(f_help, "results_help");
+ help_agent().add_activate_help(f_help, (char*)"results_help");
#define AM WAutoManage
// NOTE: need form to contain things in the same row 'cause of resizing
mtfstring = CATGETS(Set_AgentLabel, 221, "Query:");
XtVaSetValues(query_label, XmNlabelString, (XmString)mtfstring, NULL);
- Widget textw = XmCreateScrolledText (*f_pane, "query_text", NULL, 0);
+ Widget textw = XmCreateScrolledText (*f_pane, (char*)"query_text", NULL, 0);
f_query_text = new WXmText (textw);
f_query_text->Manage();
// WXmPushButton editq (*f_panel, "edit_query", AM);
header.FontList(header_font);
}
- int offset = WXmString(relevancy, OLIAS_FONT).Width(f_list->FontList());
+ int offset = WXmString(relevancy,(char*)OLIAS_FONT).Width(f_list->FontList());
header.LeftOffset(offset);
WXmPrimitive prim(XtParent(*f_list));