spray-option.cpp revision 0b51e8dca51e424e491522197eb7ca55e45a38b4
/*Julien LERAY (julien.leray@ecl2010.ec-lyon.fr), interface for the spray tool*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtkmm/spinbutton.h>
#include "desktop-handles.h"
#include "unclump.h"
#include "document.h"
#include "enums.h"
#include "graphlayout/graphlayout.h"
#include "inkscape.h"
#include "macros.h"
#include "node-context.h"
#include "preferences.h"
#include "removeoverlap/removeoverlap.h"
#include "selection.h"
#include "shape-editor.h"
#include "sp-flowtext.h"
#include "sp-item-transform.h"
#include "sp-text.h"
#include "text-editing.h"
#include "tools-switch.h"
#include "ui/icon-names.h"
#include "util/glib-list-iterators.h"
#include "verbs.h"
#include "spray-option.h"
namespace Inkscape {
namespace UI {
namespace Dialog {
//Classes qui permettent de créer les environnements Gaussienne, Witdh...
class Action {
public:
virtual ~Action(){}
virtual void on_button_click(){}
private :
};
private:
public:
{
tiptext);
}
virtual void on_button_click(){
if (!_dialog.getDesktop()) return;
_("Remove overlaps"));
}
};
private:
public:
{
_("Minimum"));
_("Maximum"));
}
virtual void on_button_click(){
if (!_dialog.getDesktop()) return;
_("Remove overlaps"));
}
};
void SprayOptionClass::combo_action() {
_("Remove overlaps"));
}
void SprayOptionClass::action() {
int r=1;
it ++)
(*it)->on_button_click();
combo_action();
}
void on_selection_changed(Inkscape::Application */*inkscape*/, Inkscape::Selection */*selection*/, SprayOptionClass *daad)
{
}
/////////////////////////////////////////////////////////
//Construction de l'interface
/////////////////////////////////////////////////////////
_distributionFrame(_("Distribution")),
_Frame(_("Cursor Options")),
_FFrame(_("Random Options")),
_unifLabel(_("Uniform")),
_gaussLabel(_("Gaussian ")),
_anchorLabel(_("Distribution : "))
{
//ComboBoxText
//Hbox Random
addFButton(_("Scale : ") ,_("Applique un facteur d'échelle"), 0, 0, "/tools/spray/scale_min","/tools/spray/scale_max");
addFButton(_("Rotation : ") ,_("Fait tourner"), 1, 0, "/tools/spray/rot_min","/tools/spray/rot_max");
//Implementation dans la Vbox Cursor
//Hbox Cursor
//Implementation dans la Vbox Cursor
// Crée dans l'ordre suivant les différentes Frames (cadres de réglages)
// Connect to the global selection change, to invalidate cached randomize_bbox
g_signal_connect (G_OBJECT (INKSCAPE), "change_selection", G_CALLBACK (on_selection_changed), this);
}
{
it ++)
delete *it;
}
//Fonctions qui lient la demande d'ajout d'une interface graphique à l'action correspondante
{
}
{
}
{
return *this;
}
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
/*
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 :