summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef8c3d4)
raw | patch | inline | side by side (parent: ef8c3d4)
author | joncruz <joncruz@users.sourceforge.net> | |
Sun, 20 Jul 2008 07:26:15 +0000 (07:26 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Sun, 20 Jul 2008 07:26:15 +0000 (07:26 +0000) |
diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp
index 9b6ed5390f158788e58d538c1c9efb755ed36d82..0be324f4201cb56ba0e650e7d8e9e6d858ba46fb 100644 (file)
}
bool
-ImageMagick::load(Inkscape::Extension::Extension *module)
+ImageMagick::load(Inkscape::Extension::Extension */*module*/)
{
return true;
}
Inkscape::Extension::Implementation::ImplementationDocumentCache *
-ImageMagick::newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * view) {
+ImageMagick::newDocCache (Inkscape::Extension::Extension * /*ext*/, Inkscape::UI::View::View * view) {
return new ImageMagickDocCache(view);
}
@@ -211,7 +211,7 @@ ImageMagick::effect (Inkscape::Extension::Effect *module, Inkscape::UI::View::Vi
Uses AutoGUI for creating the GUI.
*/
Gtk::Widget *
-ImageMagick::prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View * view, sigc::signal<void> * changeSignal, Inkscape::Extension::Implementation::ImplementationDocumentCache * docCache)
+ImageMagick::prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View * view, sigc::signal<void> * changeSignal, Inkscape::Extension::Implementation::ImplementationDocumentCache * /*docCache*/)
{
SPDocument * current_document = view->doc();
diff --git a/src/extension/internal/bitmap/imagemagick.h b/src/extension/internal/bitmap/imagemagick.h
index 4a8a318fc8b620e412fdacd56f9ad7bfaf113e6c..5b4a1eb211ab51876a519779feb1f7276113929e 100644 (file)
class ImageMagick : public Inkscape::Extension::Implementation::Implementation {
public:
- /* Functions to be implemented by subclasses */
- virtual void applyEffect(Magick::Image *image) { };
- virtual void refreshParameters(Inkscape::Extension::Effect *module) { };
+ /* Functions to be implemented by subclasses */
+ virtual void applyEffect(Magick::Image */*image*/) { };
+ virtual void refreshParameters(Inkscape::Extension::Effect */*module*/) { };
- /* Functions implemented from ::Implementation */
- bool load(Inkscape::Extension::Extension *module);
- Inkscape::Extension::Implementation::ImplementationDocumentCache * newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * doc);
- void effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *document, Inkscape::Extension::Implementation::ImplementationDocumentCache * docCache);
- Gtk::Widget* prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View * view, sigc::signal<void> * changeSignal, Inkscape::Extension::Implementation::ImplementationDocumentCache * docCache);
+ /* Functions implemented from ::Implementation */
+ bool load(Inkscape::Extension::Extension *module);
+ Inkscape::Extension::Implementation::ImplementationDocumentCache * newDocCache (Inkscape::Extension::Extension * ext, Inkscape::UI::View::View * doc);
+ void effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View *document, Inkscape::Extension::Implementation::ImplementationDocumentCache * docCache);
+ Gtk::Widget* prefs_effect(Inkscape::Extension::Effect *module, Inkscape::UI::View::View * view, sigc::signal<void> * changeSignal, Inkscape::Extension::Implementation::ImplementationDocumentCache * docCache);
};
}; /* namespace Bitmap */
index 7a45425c076905fea791ea9b86521dc21065b57d..2471da3dd181078ee201e034a9e60b3799e24b4b 100644 (file)
if (line_index == _parent_layout->_lines.size() - 1)
return false; // nowhere to go
else
- n = MIN (n, _parent_layout->_lines.size() - 1 - line_index);
+ n = MIN (n, static_cast<int>(_parent_layout->_lines.size() - 1 - line_index));
if (_parent_layout->_lines[line_index + n].in_shape != _parent_layout->_lines[line_index].in_shape) {
// switching between shapes: adjust the stored x to compensate
_x_coordinate += _parent_layout->_chunks[_parent_layout->_spans[_parent_layout->_lineToSpan(line_index + n)].in_chunk].left_x
if (line_index == 0)
return false; // nowhere to go
else
- n = MIN (n, line_index);
+ n = MIN (n, static_cast<int>(line_index));
if (_parent_layout->_lines[line_index - n].in_shape != _parent_layout->_lines[line_index].in_shape) {
// switching between shapes: adjust the stored x to compensate
_x_coordinate += _parent_layout->_chunks[_parent_layout->_spans[_parent_layout->_lineToSpan(line_index - n)].in_chunk].left_x
index 836eb8fd4918f08b108a005772f76ac0bc6df867..d577a6cc427b787a64b8d24b114adf255f99f6d9 100644 (file)
public:
ComboWithTooltip<T>(T default_value, const Util::EnumDataConverter<T>& c, const SPAttributeEnum a = SP_ATTR_INVALID, char* tip_text = NULL)
{
- if (tip_text) _tt.set_tip(*this, tip_text);
+ if (tip_text) {
+ _tt.set_tip(*this, tip_text);
+ }
combo = new ComboBoxEnum<T>(default_value, c, a);
add(*combo);
show_all();
}
-
+
~ComboWithTooltip()
{
delete combo;
}
-
+
ComboBoxEnum<T>* get_attrwidget()
{
return combo;
}
_s1.set_value(n.getNumber());
_s2.set_value(n.getOptNumber());
-
+
}
private:
Gtk::SpinButton _s1, _s2;
std::vector<double> default_values;
default_values.push_back(def1);
default_values.push_back(def2);
-
+
std::vector<char*> tips;
tips.push_back(tip1);
tips.push_back(tip2);
@@ -1901,10 +1903,11 @@ bool FilterEffectsDialog::PrimitiveList::on_button_release_event(GdkEventButton*
const int sources_x = rct.get_width() - twidth * FPInputConverter._length;
if(cx > sources_x) {
int src = (cx - sources_x) / twidth;
- if(src < 0)
+ if (src < 0) {
src = 0;
- else if(src >= FPInputConverter._length)
+ } else if(src >= static_cast<int>(FPInputConverter._length)) {
src = FPInputConverter._length - 1;
+ }
result = FPInputConverter.get_key((FilterPrimitiveInput)src);
in_val = result.c_str();
}
_empty_settings.set_sensitive(false);
_settings_tab1.pack_start(_empty_settings);
-
+
_no_filter_selected.set_sensitive(false);
_settings_tab2.pack_start(_no_filter_selected);
_settings_initialized = true;
_infobox_icon.hide();
_infobox_desc.hide();
}
-
+
SPFilterPrimitive* prim = _primitive_list.get_selected();
if(prim) {
index 11640f3ca3b971ae750b33aa88ca536f7def759b..c418ea28ba74a7f5a4f54f87646a57011fdbc499 100644 (file)
pack_start(_columns.label);
// Initialize list
- for(int i = 0; i < _converter._length; ++i) {
+ for(int i = 0; i < static_cast<int>(_converter._length); ++i) {
Gtk::TreeModel::Row row = *_model->append();
const Util::EnumData<E>* data = &_converter.data(i);
row[_columns.data] = data;
index 7e812236f63927670a317f0fcca88be25fe5078a..64415f42136d3c0f4b20d013fd3a5f25394e5677 100644 (file)
*
* An icon widget is a ...
*/
-
-IconWidget::IconWidget()
+
+IconWidget::IconWidget()
{
_pb = NULL;
_size = 0;
}
-IconWidget::IconWidget(int unsigned size, int unsigned scale, gchar const *name)
+IconWidget::IconWidget(int unsigned size, int unsigned scale, gchar const *name)
{
_size = std::max((int unsigned)128, std::min(size, (int unsigned)1));
@@ -48,19 +48,19 @@ IconWidget::IconWidget(int unsigned size, int unsigned scale, gchar const *name)
_pb = NULL;
} else {
/* TODO
- _pb = gdk_pixbuf_new_from_data(pixels, GDK_COLORSPACE_RGB,
- TRUE, 8, _size, _size, _size * 4,
+ _pb = gdk_pixbuf_new_from_data(pixels, GDK_COLORSPACE_RGB,
+ TRUE, 8, _size, _size, _size * 4,
(GdkPixbufDestroyNotify)g_free, NULL);
*/
}
}
-IconWidget::IconWidget(int unsigned size, guchar const *px)
+IconWidget::IconWidget(int unsigned size, guchar const */*px*/)
{
_size = std::max((int unsigned)128, std::min(size, (int unsigned)1));
/*
- _pb = gdk_pixbuf_new_from_data((guchar *)px, GDK_COLORSPACE_RGB,
+ _pb = gdk_pixbuf_new_from_data((guchar *)px, GDK_COLORSPACE_RGB,
TRUE, 8, _size, _size, _size * 4, NULL, NULL);
*/
}
@@ -132,19 +132,19 @@ guchar* IconWidget::image_load(gchar const *name, int unsigned size, int unsigne
return px;
}
-guchar* IconWidget::image_load_pixmap(gchar const *name, int unsigned size, int unsigned scale)
+guchar* IconWidget::image_load_pixmap(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/)
{
// TODO
return NULL;
}
-guchar* IconWidget::image_load_svg(gchar const *name, int unsigned size, int unsigned scale)
+guchar* IconWidget::image_load_svg(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/)
{
// TODO
return NULL;
}
-guchar* IconWidget::image_load_gtk(gchar const *name, int unsigned size, int unsigned scale)
+guchar* IconWidget::image_load_gtk(gchar const */*name*/, int unsigned /*size*/, int unsigned /*scale*/)
{
// TODO
return NULL;
@@ -154,7 +154,7 @@ guchar* IconWidget::image_load_gtk(gchar const *name, int unsigned size, int uns
} // namespace UI
} // namespace Inkscape
-/*
+/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
index e390a3f878e2d6a9c7b510987aff21e72f7e26d4..e6598161624e75ac3feb5127bf3f1342a6aeaa5c 100644 (file)
};
template <typename Predicate>
-bool mark_one(ObserverRecordList &observers, unsigned &marked_count,
+bool mark_one(ObserverRecordList &observers, unsigned &/*marked_count*/,
Predicate p)
{
ObserverRecordList::iterator found=std::find_if(
}
template <typename Predicate>
-bool remove_one(ObserverRecordList &observers, unsigned &marked_count,
+bool remove_one(ObserverRecordList &observers, unsigned &/*marked_count*/,
Predicate p)
{
if (observers.empty()) {
diff --git a/src/xml/event.cpp b/src/xml/event.cpp
index d713200e574f9161c7ec5eb5ac1773f2bfd91cf3..ded96e7224b388e2d0642a40b70ef7b5b7463944 100644 (file)
--- a/src/xml/event.cpp
+++ b/src/xml/event.cpp
parent.addChild(&child, ref);
}
- void notifyChildRemoved(Node &parent, Node &child, Node *old_ref) {
+ void notifyChildRemoved(Node &parent, Node &child, Node */*old_ref*/) {
parent.removeChild(&child);
}
void notifyChildOrderChanged(Node &parent, Node &child,
- Node *old_ref, Node *new_ref)
+ Node */*old_ref*/, Node *new_ref)
{
parent.changeOrder(&child, new_ref);
}
void notifyAttributeChanged(Node &node, GQuark name,
- Inkscape::Util::ptr_shared<char> old_value,
+ Inkscape::Util::ptr_shared<char> /*old_value*/,
Inkscape::Util::ptr_shared<char> new_value)
{
node.setAttribute(g_quark_to_string(name), new_value);
}
void notifyContentChanged(Node &node,
- Inkscape::Util::ptr_shared<char> old_value,
+ Inkscape::Util::ptr_shared<char> /*old_value*/,
Inkscape::Util::ptr_shared<char> new_value)
{
node.setContent(new_value);
g_warning("Event: Added %s to %s after %s", node_to_string(parent).c_str(), node_to_string(child).c_str(), ref_to_string(ref).c_str());
}
- void notifyChildRemoved(Node &parent, Node &child, Node *ref) {
+ void notifyChildRemoved(Node &parent, Node &child, Node */*ref*/) {
g_warning("Event: Removed %s from %s", node_to_string(parent).c_str(), node_to_string(child).c_str());
}
void notifyChildOrderChanged(Node &parent, Node &child,
- Node *old_ref, Node *new_ref)
+ Node */*old_ref*/, Node *new_ref)
{
g_warning("Event: Moved %s after %s in %s", node_to_string(child).c_str(), ref_to_string(new_ref).c_str(), node_to_string(parent).c_str());
}
void notifyAttributeChanged(Node &node, GQuark name,
- Inkscape::Util::ptr_shared<char> old_value,
+ Inkscape::Util::ptr_shared<char> /*old_value*/,
Inkscape::Util::ptr_shared<char> new_value)
{
if (new_value) {
}
void notifyContentChanged(Node &node,
- Inkscape::Util::ptr_shared<char> old_value,
+ Inkscape::Util::ptr_shared<char> /*old_value*/,
Inkscape::Util::ptr_shared<char> new_value)
{
if (new_value) {