spin-slider.h revision 201dd75f32dd95c5f030d70991f0bad30e7ff2b7
/*
* Author:
* Nicholas Bishop <nicholasbishop@gmail.com>
*
* Copyright (C) 2007 Author
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_UI_WIDGET_SPIN_SLIDER_H
#define INKSCAPE_UI_WIDGET_SPIN_SLIDER_H
#include <gtkmm/adjustment.h>
#include "spinbutton.h"
#include "attr-widget.h"
/**
* Groups an HScale and a SpinButton together using the same Adjustment.
*/
{
double climb_rate, int digits, const SPAttributeEnum a = SP_ATTR_INVALID, const char* tip_text = NULL);
// Shortcuts to _adjustment
double get_value() const;
void set_value(const double);
// Change the SpinSlider into a SpinButton with AttrWidget support)
void remove_scale();
};
/**
* Contains two SpinSliders for controlling number-opt-number attributes.
*
* @see SpinSlider
*/
{
const SpinSlider& get_spinslider1() const;
const SpinSlider& get_spinslider2() const;
void remove_scale();
void link_toggled();
void update_linked();
};
} // namespace Widget
} // namespace UI
} // namespace Inkscape
#endif // INKSCAPE_UI_WIDGET_SPIN_SLIDER_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :