unit-menu.cpp revision e3b6cd4b0523f08a6414dc0800a15a3b1710ce8a
#define __SP_UNIT_MENU_C__
/*
* Unit selector with autupdate capability
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* bulia byak <buliabyak@users.sf.net>
*
* Copyright (C) 2000-2002 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#define noUNIT_SELECTOR_VERBOSE
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <gtk/gtksignal.h>
#include <gtk/gtkmenuitem.h>
#include "helper/sp-marshal.h"
#include "unit-menu.h"
#include "widgets/spw-utilities.h"
struct SPUnitSelector {
};
struct SPUnitSelectorClass {
};
enum {SET_UNIT, LAST_SIGNAL};
static GtkHBoxClass *unit_selector_parent_class;
{
if (!type) {
sizeof(SPUnitSelectorClass),
0, // base_init
0, // base_finalize
0, // class_finalize
0, // class_data
sizeof(SPUnitSelector),
0, // n_preallocs
0 // value_table
};
}
return type;
}
static void
{
G_TYPE_BOOLEAN, 2,
}
static void
{
}
static void
{
}
while (selector->adjustments) {
}
}
}
{
}
void
{
}
SPUnit const *
{
}
static void
{
#ifdef UNIT_SELECTOR_VERBOSE
#endif
if ( !consumed
// Either the same base, or absolute<->device:
/* Recalculate adjustments. */
#ifdef UNIT_SELECTOR_VERBOSE
#endif
#ifdef UNIT_SELECTOR_VERBOSE
#endif
}
/* need to separate the value changing from the notification
* or else the unit changes can break the calculations */
}
/* when the base changes, signal all the adjustments to get them
* to recalculate */
}
}
}
static void
{
}
GtkWidget *m = gtk_menu_new();
gtk_widget_show(m);
gint p = 0;
// use only abbreviations in the menu
// i = gtk_menu_item_new_with_label((us->abbr) ? (us->plural) ? u->abbr_plural : u->abbr : (us->plural) ? u->plural : u->name);
gtk_widget_show(i);
gtk_menu_shell_append(GTK_MENU_SHELL(m), i);
p += 1;
}
}
void
{
}
void
{
}
}
void
{
return; // silently return, by default a newly created selector uses pt
}
return;
}
g_return_if_fail(pos >= 0);
/* Recalculate adjustments */
}
}
void
{
}
void
{
}
{
}
double
{
}
void
{
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :