1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-06-30 21:57:39 +03:00
fped/gui_status.h
werner 5a86125002 Added Postscript outout for measurements, plus assorted changes.
- postscript.c: added patterns backhatchpath and crosspath (for pad overlaid 
  with solder paste)
- postscript.c: added measurements
- postscript.c: prefixed style parameters with PS_ to avoid future conflicts
  with gui_style.h
- when changing the default unit, we now cancel the selection, and refresh 
  canvas and current position
- on-screen measurements now suppress the unit if set to anything but "auto"
- use  __attribute__((format(printf, ...))) for printf-like functions
- the unit selector now has a white background to make it clearer that it can 
  be clicked



git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5461 99fdad57-331a-0410-800a-d7fa5415bdb3
2009-08-16 11:21:48 +00:00

92 lines
2.8 KiB
C

/*
* gui_status.h - GUI, status area
*
* Written 2009 by Werner Almesberger
* Copyright 2009 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef GUI_STATUS_H
#define GUI_STATUS_H
#include <gtk/gtk.h>
#include "coord.h"
#include "expr.h"
enum curr_unit {
curr_unit_mm,
curr_unit_mil,
curr_unit_auto,
curr_unit_n
};
extern enum curr_unit curr_unit;
void edit_unique(const char **s, int (*validate)(const char *s, void *ctx),
void *ctx);
void edit_unique_null(const char **s, int (*validate)(const char *s, void *ctx),
void *ctx);
void edit_unique_with_values(const char **s,
int (*validate)(const char *s, void *ctx), void *ctx,
void (*set_values)(void *user, const struct value *values, int n_values),
void *user, int max_values);
void edit_name(char **s, int (*validate)(const char *s, void *ctx), void *ctx);
void edit_expr(struct expr **expr);
void edit_expr_list(struct expr *expr,
void (*set_values)(void *user, const struct value *values, int n_values),
void *user);
void edit_x(struct expr **expr);
void edit_y(struct expr **expr);
void edit_nothing(void);
void set_with_units(void (*set)(const char *fmt, ...), const char *prefix,
unit_type u);
void status_set_type_x(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_type_y(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_type_entry(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_name(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_x(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_y(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_r(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_angle(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_sys_x(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_sys_y(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_user_x(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_user_y(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_zoom(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_grid(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_unit(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
void status_set_xy(struct coord coord);
void status_begin_reporting(void);
void make_status_area(GtkWidget *vbox) ;
#endif /* !GUI_STATUS_H */