Skip to content

Commit

Permalink
Fixed|UI|Client: Typos (letter case)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 16, 2013
1 parent f5e1fe5 commit 7240f6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions doomsday/client/include/ui/widgets/contextwidgetorganizer.h
Expand Up @@ -54,12 +54,12 @@ class ContextWidgetOrganizer
* appropriately.
*
* After construction, the widget is automatically updated with
* updateitemWidget().
* updateItemWidget().
*
* @param item Item that has the content.
* @param parent Future parent of the widget, if any (can be @c NULL).
*/
virtual GuiWidget *makeitemWidget(ui::Item const &item, GuiWidget const *parent) = 0;
virtual GuiWidget *makeItemWidget(ui::Item const &item, GuiWidget const *parent) = 0;

/**
* Called whenever the item's content changes and this should be reflected
Expand All @@ -68,7 +68,7 @@ class ContextWidgetOrganizer
* @param widget Widget that represents the item.
* @param item Item that has the content.
*/
virtual void updateitemWidget(GuiWidget &widget, ui::Item const &item) = 0;
virtual void updateItemWidget(GuiWidget &widget, ui::Item const &item) = 0;
};

/**
Expand Down Expand Up @@ -129,8 +129,8 @@ class ContextWidgetOrganizer
class DefaultWidgetFactory : public ContextWidgetOrganizer::IWidgetFactory
{
public:
GuiWidget *makeitemWidget(ui::Item const &item, GuiWidget const *parent);
void updateitemWidget(GuiWidget &widget, ui::Item const &item);
GuiWidget *makeItemWidget(ui::Item const &item, GuiWidget const *parent);
void updateItemWidget(GuiWidget &widget, ui::Item const &item);
};

#endif // DENG_CLIENT_CONTEXTWIDGETORGANIZER_H
8 changes: 4 additions & 4 deletions doomsday/client/src/ui/widgets/contextwidgetorganizer.cpp
Expand Up @@ -85,7 +85,7 @@ DENG2_OBSERVES(ui::Item, Change )
DENG2_ASSERT(factory != 0);

ui::Item const &item = context->at(pos);
GuiWidget *w = factory->makeitemWidget(item, container);
GuiWidget *w = factory->makeItemWidget(item, container);
if(!w) return; // Unpresentable.

// Others may alter the widget in some way.
Expand Down Expand Up @@ -192,7 +192,7 @@ DENG2_OBSERVES(ui::Item, Change )
DENG2_ASSERT(mapping.contains(&item));

GuiWidget &w = *mapping[&item];
factory->updateitemWidget(w, item);
factory->updateItemWidget(w, item);

// Notify.
DENG2_FOR_PUBLIC_AUDIENCE(WidgetUpdate, i)
Expand Down Expand Up @@ -250,15 +250,15 @@ GuiWidget *ContextWidgetOrganizer::itemWidget(ui::Item const &item) const
return d->find(item);
}

GuiWidget *DefaultWidgetFactory::makeitemWidget(ui::Item const &item, GuiWidget const *)
GuiWidget *DefaultWidgetFactory::makeItemWidget(ui::Item const &item, GuiWidget const *)
{
// The default implementation uses simple labels.
LabelWidget *w = new LabelWidget;
w->setText(item.label());
return w;
}

void DefaultWidgetFactory::updateitemWidget(GuiWidget &, ui::Item const &)
void DefaultWidgetFactory::updateItemWidget(GuiWidget &, ui::Item const &)
{
// nothing to do
}
4 changes: 2 additions & 2 deletions doomsday/client/src/ui/widgets/menuwidget.cpp
Expand Up @@ -202,7 +202,7 @@ public ContextWidgetOrganizer::IWidgetFactory
/*
* Menu items are represented as buttons and labels.
*/
GuiWidget *makeitemWidget(Item const &item, GuiWidget const *parent)
GuiWidget *makeItemWidget(Item const &item, GuiWidget const *parent)
{
if(item.semantic() == Item::Action || item.semantic() == Item::Submenu)
{
Expand Down Expand Up @@ -236,7 +236,7 @@ public ContextWidgetOrganizer::IWidgetFactory
return 0;
}

void updateitemWidget(GuiWidget &widget, Item const &item)
void updateItemWidget(GuiWidget &widget, Item const &item)
{
if(item.semantic() == Item::Action)
{
Expand Down

0 comments on commit 7240f6f

Please sign in to comment.