Files
cdesktop/cde/programs/dtcm/dtcm/browser.h
2018-04-28 12:30:20 -06:00

135 lines
4.0 KiB
C

/*
* 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 libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*******************************************************************************
**
** browser.h
**
** static char sccsid[] = "@(#)browser.h 1.15 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
**
** $XConsortium: browser.h /main/3 1995/11/03 10:18:46 rswiston $
**
** RESTRICTED CONFIDENTIAL INFORMATION:
**
** The information in this document is subject to special
** restrictions in a confidential disclosure agreement between
** HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
** document outside HP, IBM, Sun, USL, SCO, or Univel without
** Sun's specific written approval. This document and all copies
** and derivative works thereof must be returned or destroyed at
** Sun's request.
**
** Copyright 1993 Sun Microsystems, Inc. All rights reserved.
**
*******************************************************************************/
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
#ifndef _BROWSER_H
#define _BROWSER_H
#include "ansi_c.h"
#include "timeops.h"
#include "calendar.h"
typedef struct {
Widget frame;
Widget outer_pane;
Widget inner_pane;
Widget upper_form;
Widget lower_form;
Widget action;
Widget cancel;
Widget canvas;
Widget edit_list;
Widget helpbutton;
Widget list_label;
Widget browse_list;
Widget browse_list_sw;
Widget bgoto;
Widget gotomenu;
Widget schedule;
Widget mail;
Widget message_text;
caddr_t current_selection;
Widget box;
Widget datetext;
Widget datefield;
Tick date;
int col_sel;
int row_sel;
Tick begin_week_tick;
int canvas_w;
int canvas_h;
int chart_width;
int chart_height;
int boxh;
int boxw;
int chart_x;
int chart_y;
Tick begin_day_tick;
Tick end_day_tick;
Tick begin_hr_tick;
Tick end_hr_tick;
new_XContext *xcontext;
char *multi_array;
int segs_in_array;
Pixmap busy_icon;
Boolean add_to_array;
} Browser;
#define BOX_SEG 4
#define MINS_IN_SEG (60/BOX_SEG)
#define MB_GOTO 0
#define MB_PREVWEEK 1
#define MB_THISWEEK 2
#define MB_NEXTWEEK 3
#define MB_PREVMONTH 4
#define MB_NEXTMONTH 5
extern void br_display P((Calendar*));
extern Boolean browser_exists P(());
extern void browser_reset_list P((Calendar*));
extern Boolean browser_showing P(());
extern void make_browser P(());
extern void mb_draw_chartgrid P(());
extern void mb_draw_appts P(());
extern void mb_update_segs P(());
extern void mb_update_busyicon P(());
extern void mb_init_blist P(());
extern void mb_init_canvas P(());
extern void mb_deregister_names P(());
extern void mb_refresh_canvas P(());
extern void sched_proc P(());
extern void set_default_reminders P(());
extern void set_default_scope_plus P(());
extern void set_default_what P(());
extern void mb_refigure_chart P((Calendar *));
#endif