1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
#include <iostream>
#include <gtk/gtk.h>
#include "imagesource/imagesource_util.h"
#include "imagesource/pixbuf_from_imagesource.h"
#include "imagesource/imagesource_montage.h"
#include "imagesource/imagesource_segmentmask.h"
#include "imagesource/imagesource_mask.h"
#include "miscwidgets/pixbufview.h"
#include "support/debug.h"
#include "support/signature.h"
#include "stpui_widgets/units.h"
#include "config.h"
#include "gettext.h"
#define _(x) gettext(x)
using namespace std;
int main(int argc,char**argv)
{
gtk_init(&argc,&argv);
try
{
GtkWidget *win=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (win), _("PixBufView Test"));
gtk_signal_connect (GTK_OBJECT (win), "delete_event",
(GtkSignalFunc) gtk_main_quit, NULL);
Signature sig;
sig.SetPaperSize(595,842);
// GtkWidget *sc=pp_sigcontrol_new(&sig,UNIT_MILLIMETERS);
// gtk_container_add(GTK_CONTAINER(win),sc);
gtk_widget_show_all(win);
gtk_main();
}
catch(const char *err)
{
Debug[ERROR] << "Error: " << err << endl;
}
return(0);
}
|