aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-09-20 02:47:53 +0000
committercorvid <corvid@lavabit.com>2009-09-20 02:47:53 +0000
commitda3f5268045b5edff01b53f475a56cb0795c7bb1 (patch)
treedfef39b21438155350b5f755893fe5878a15b1cc /test
parent6a1945e459f5c4ecd0ec89b6501e0daf10f77b41 (diff)
trim some spaces
Diffstat (limited to 'test')
-rw-r--r--test/dw_anchors_test.cc6
-rw-r--r--test/dw_border_test.cc4
-rw-r--r--test/dw_example.cc2
-rw-r--r--test/dw_find_test.cc2
-rw-r--r--test/dw_images_scaled.cc14
-rw-r--r--test/dw_images_scaled2.cc8
-rw-r--r--test/dw_images_simple.cc14
-rw-r--r--test/dw_imgbuf_mem_test.cc12
-rw-r--r--test/dw_links.cc8
-rw-r--r--test/dw_links2.cc8
-rw-r--r--test/dw_lists.cc2
-rw-r--r--test/dw_resource_test.cc2
-rw-r--r--test/dw_table_aligned.cc4
-rw-r--r--test/fltk_browser.cc2
-rw-r--r--test/form.cc8
-rw-r--r--test/form.hh4
16 files changed, 50 insertions, 50 deletions
diff --git a/test/dw_anchors_test.cc b/test/dw_anchors_test.cc
index 69001d9b..964b5838 100644
--- a/test/dw_anchors_test.cc
+++ b/test/dw_anchors_test.cc
@@ -56,7 +56,7 @@ static void textTimeout (void *data)
{
Textblock *oldTop = topTextblock;
topTextblock = new Textblock (false);
-
+
if (oldTop) {
oldTop->addLinebreak (wordStyle);
oldTop->addWidget (topTextblock, widgetStyle);
@@ -72,7 +72,7 @@ static void textTimeout (void *data)
buf[0] = toupper (buf[0]);
topTextblock->addText (buf, headingStyle);
topTextblock->addParbreak (5, headingStyle);
-
+
for (int i = 0; i < 30; i++) {
strcpy (buf, numbers[textblockNo]);
if (i == 0)
@@ -84,7 +84,7 @@ static void textTimeout (void *data)
}
topTextblock->flush ();
-
+
textblockNo++;
if (textblockNo < 10)
::fltk::repeat_timeout (1, textTimeout, NULL);
diff --git a/test/dw_border_test.cc b/test/dw_border_test.cc
index 39b9d3aa..008c6229 100644
--- a/test/dw_border_test.cc
+++ b/test/dw_border_test.cc
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
const char *words1[] = { "Some", "random", "text.", NULL };
const char *words2[] = { "A", "nested", "paragraph.", NULL };
-
+
for(int i = 0; words1[i]; i++) {
if(i != 0)
textblock1->addSpace (wordStyle);
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
for(int i = 0; i < 1; i++) {
textblock1->addParbreak(0, wordStyle);
-
+
Textblock *textblock2 = new Textblock (false);
textblock1->addWidget (textblock2, widgetStyle2);
diff --git a/test/dw_example.cc b/test/dw_example.cc
index b3f46b5f..ba551b91 100644
--- a/test/dw_example.cc
+++ b/test/dw_example.cc
@@ -56,7 +56,7 @@ int main(int argc, char **argv)
styleAttrs.backgroundColor =
dw::core::style::Color::create (layout, 0xffffff);
- dw::core::style::Style *widgetStyle =
+ dw::core::style::Style *widgetStyle =
dw::core::style::Style::create (layout, &styleAttrs);
dw::Textblock *textblock = new dw::Textblock (false);
diff --git a/test/dw_find_test.cc b/test/dw_find_test.cc
index c82ec535..39f7b4c5 100644
--- a/test/dw_find_test.cc
+++ b/test/dw_find_test.cc
@@ -47,7 +47,7 @@ static void findCallback (::fltk::Widget *widget, void *data)
case FindtextState::SUCCESS:
resultLabel->label("SUCCESS");
break;
-
+
case FindtextState::RESTART:
resultLabel->label("RESTART");
break;
diff --git a/test/dw_images_scaled.cc b/test/dw_images_scaled.cc
index 3c32d3ba..da4e8735 100644
--- a/test/dw_images_scaled.cc
+++ b/test/dw_images_scaled.cc
@@ -57,13 +57,13 @@ static void imageDrawTimeout (void *data)
buf[4 * x + 2] = imgRow * 255 / 199;
buf[4 * x + 3] = (199 - imgRow) * 255 / 199;
}
-
+
imgbuf->copyRow (imgRow, buf);
- image->drawRow (imgRow);
+ image->drawRow (imgRow);
imgRow++;
}
}
-
+
if(imgRow < 200)
::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL);
}
@@ -79,13 +79,13 @@ static void imageDrawTimeout (void *data)
buf[3 * x + 1] = (399 - x) * 255 / 399;
buf[3 * x + 2] = imgRow * 255 / 199;
}
-
+
imgbuf->copyRow (imgRow, buf);
- image->drawRow (imgRow);
+ image->drawRow (imgRow);
imgRow++;
}
}
-
+
if(imgRow < 200)
::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL);
}
@@ -132,7 +132,7 @@ int main(int argc, char **argv)
image = new dw::Image ("");
textblock->addWidget (image, imageStyle);
- textblock->addSpace (imageStyle);
+ textblock->addSpace (imageStyle);
imageStyle->unref();
diff --git a/test/dw_images_scaled2.cc b/test/dw_images_scaled2.cc
index 70028a47..6d1bcd80 100644
--- a/test/dw_images_scaled2.cc
+++ b/test/dw_images_scaled2.cc
@@ -55,14 +55,14 @@ static void imageDrawTimeout (void *data)
buf[3 * x + 1] = (399 - x) * 255 / 399;
buf[3 * x + 2] = imgRow * 255 / 199;
}
-
+
imgbuf->copyRow (imgRow, buf);
- image1->drawRow (imgRow);
- image2->drawRow (imgRow);
+ image1->drawRow (imgRow);
+ image2->drawRow (imgRow);
imgRow++;
}
}
-
+
if(imgRow < 200)
::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL);
}
diff --git a/test/dw_images_simple.cc b/test/dw_images_simple.cc
index d448ae92..3fb3c49e 100644
--- a/test/dw_images_simple.cc
+++ b/test/dw_images_simple.cc
@@ -57,13 +57,13 @@ static void imageDrawTimeout (void *data)
buf[4 * x + 2] = imgRow * 255 / 199;
buf[4 * x + 3] = (199 - imgRow) * 255 / 199;
}
-
+
imgbuf->copyRow (imgRow, buf);
- image->drawRow (imgRow);
+ image->drawRow (imgRow);
imgRow++;
}
}
-
+
if(imgRow < 200)
::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL);
}
@@ -79,13 +79,13 @@ static void imageDrawTimeout (void *data)
buf[3 * x + 1] = (399 - x) * 255 / 399;
buf[3 * x + 2] = imgRow * 255 / 199;
}
-
+
imgbuf->copyRow (imgRow, buf);
- image->drawRow (imgRow);
+ image->drawRow (imgRow);
imgRow++;
}
}
-
+
if(imgRow < 200)
::fltk::repeat_timeout (0.5, imageDrawTimeout, NULL);
}
@@ -130,7 +130,7 @@ int main(int argc, char **argv)
image = new dw::Image ("");
textblock->addWidget (image, imageStyle);
- textblock->addSpace (imageStyle);
+ textblock->addSpace (imageStyle);
imageStyle->unref();
diff --git a/test/dw_imgbuf_mem_test.cc b/test/dw_imgbuf_mem_test.cc
index e2c332e0..33131134 100644
--- a/test/dw_imgbuf_mem_test.cc
+++ b/test/dw_imgbuf_mem_test.cc
@@ -33,7 +33,7 @@ void solution1 ()
{
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);
-
+
Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100);
rootbuf->ref (); // Extra reference by the dicache.
printf ("=== Can be deleted? %s.\n",
@@ -48,7 +48,7 @@ void solution1 ()
printf ("=== Can be deleted? %s.\n",
rootbuf->lastReference () ? "Yes" : "No");
rootbuf->unref (); // Extra reference by the dicache.
-
+
delete layout;
}
@@ -56,7 +56,7 @@ void solution2 ()
{
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);
-
+
Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100);
rootbuf->setDeleteOnUnref (false);
printf ("=== Can be deleted? %s.\n",
@@ -71,7 +71,7 @@ void solution2 ()
printf ("=== Can be deleted? %s.\n",
!rootbuf->isReferred () ? "Yes" : "No");
delete rootbuf;
-
+
delete layout;
}
@@ -90,13 +90,13 @@ void solution3 ()
{
FltkPlatform *platform = new FltkPlatform ();
Layout *layout = new Layout (platform);
-
+
Imgbuf *rootbuf = layout->createImgbuf (Imgbuf::RGB, 100, 100);
rootbuf->connectDeletion (new RootbufDeletionReceiver ());
Imgbuf *scaledbuf = rootbuf->getScaledBuf (50, 50);
rootbuf->unref ();
scaledbuf->unref ();
-
+
delete layout;
}
diff --git a/test/dw_links.cc b/test/dw_links.cc
index c2384d1e..ada9c49f 100644
--- a/test/dw_links.cc
+++ b/test/dw_links.cc
@@ -115,7 +115,7 @@ int main(int argc, char **argv)
styleAttrs.color = Color::create (layout, 0x0000ff);
styleAttrs.textDecoration = TEXT_DECORATION_UNDERLINE;
styleAttrs.cursor = CURSOR_POINTER;
-
+
for(int i = 1; i <= 10; i++) {
char buf[4];
sprintf(buf, "%d.", i);
@@ -132,15 +132,15 @@ int main(int argc, char **argv)
textblock->addText(words1[j], wordStyle);
textblock->addSpace(wordStyle);
}
-
+
styleAttrs.x_link = i;
Style *linkStyle = Style::create (layout, &styleAttrs);
-
+
for(int j = 0; words2[j]; j++) {
textblock->addText(words2[j], linkStyle);
textblock->addSpace(wordStyle);
}
-
+
linkStyle->unref ();
textblock->addParbreak(10, wordStyle);
diff --git a/test/dw_links2.cc b/test/dw_links2.cc
index 4205a768..7aede1c8 100644
--- a/test/dw_links2.cc
+++ b/test/dw_links2.cc
@@ -143,7 +143,7 @@ int main(int argc, char **argv)
styleAttrs.color = Color::create (layout, 0x0000ff);
styleAttrs.textDecoration = TEXT_DECORATION_UNDERLINE;
styleAttrs.cursor = CURSOR_POINTER;
-
+
for(int i = 1; i <= 30; i++) {
char buf[4];
sprintf(buf, "%d.", i);
@@ -160,15 +160,15 @@ int main(int argc, char **argv)
textblock->addText (words1[j], wordStyle);
textblock->addSpace(wordStyle);
}
-
+
styleAttrs.x_link = i;
Style *linkStyle = Style::create (layout, &styleAttrs);
-
+
for(int j = 0; words2[j]; j++) {
textblock->addText (words2[j], linkStyle);
textblock->addSpace(wordStyle);
}
-
+
linkStyle->unref ();
textblock->addParbreak(10, wordStyle);
diff --git a/test/dw_lists.cc b/test/dw_lists.cc
index 09b85b2c..a87c6ddc 100644
--- a/test/dw_lists.cc
+++ b/test/dw_lists.cc
@@ -89,7 +89,7 @@ int main(int argc, char **argv)
"comes", "some", "more", "text", "to",
"demonstrate", "word", "wrapping.", NULL };
-
+
for(int i = 0; wordsPar[i]; i++) {
if(i != 0)
textblock->addSpace (wordStyle);
diff --git a/test/dw_resource_test.cc b/test/dw_resource_test.cc
index 75104f87..e399d958 100644
--- a/test/dw_resource_test.cc
+++ b/test/dw_resource_test.cc
@@ -74,7 +74,7 @@ int main(int argc, char **argv)
(ListResource::SELECTION_AT_MOST_ONE, 4);
//SelectionResource *res =
// layout->getResourceFactory()->createOptionMenuResource ();
-
+
Embed *embed = new Embed (res);
textblock->addWidget (embed, widgetStyle);
textblock->addSpace (widgetStyle);
diff --git a/test/dw_table_aligned.cc b/test/dw_table_aligned.cc
index 87d990da..23c6b745 100644
--- a/test/dw_table_aligned.cc
+++ b/test/dw_table_aligned.cc
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
styleAttrs.borderWidth.setVal (1);
styleAttrs.setBorderStyle (BORDER_INSET);
-
+
Style *cellStyle = Style::create (layout, &styleAttrs);
styleAttrs.borderWidth.setVal (0);
@@ -103,7 +103,7 @@ int main(int argc, char **argv)
cell->addText (buf, wordStyle);
cell->flush ();
- }
+ }
wordStyle->unref();
cellStyle->unref();
diff --git a/test/fltk_browser.cc b/test/fltk_browser.cc
index 0115907b..11dfcbeb 100644
--- a/test/fltk_browser.cc
+++ b/test/fltk_browser.cc
@@ -39,7 +39,7 @@ int main (int argc, char *argv[])
new Item ("second");
new Item ("third");
}
-
+
window->resizable(browser);
window->show();
return run();
diff --git a/test/form.cc b/test/form.cc
index 9e212ed6..4bebd520 100644
--- a/test/form.cc
+++ b/test/form.cc
@@ -49,7 +49,7 @@ const char *Form::TextResourceDecorator::getValue ()
Form::RadioButtonResourceDecorator::RadioButtonResourceDecorator
(const char *name, RadioButtonResource *resource, const char **values):
- Form::ResourceDecorator (name)
+ Form::ResourceDecorator (name)
{
this->resource = resource;
@@ -99,7 +99,7 @@ const char *Form::CheckButtonResourceDecorator::getValue ()
Form::SelectionResourceDecorator::SelectionResourceDecorator
(const char *name, SelectionResource *resource, const char **values):
- Form::ResourceDecorator (name)
+ Form::ResourceDecorator (name)
{
this->resource = resource;
@@ -162,7 +162,7 @@ Form::FormClickedReceiver::~FormClickedReceiver ()
delete name;
delete[] value;
}
-
+
void Form::FormClickedReceiver::clicked (Resource *resource,
dw::core::EventButton *event)
{
@@ -173,7 +173,7 @@ Form::Form ()
{
resources = new lout::container::typed::List <ResourceDecorator> (true);
activateReceiver = new FormActivateReceiver (this);
- clickedReceivers =
+ clickedReceivers =
new lout::container::typed::List <FormClickedReceiver> (true);
}
diff --git a/test/form.hh b/test/form.hh
index 72f0164b..6235c6cc 100644
--- a/test/form.hh
+++ b/test/form.hh
@@ -113,7 +113,7 @@ private:
public:
inline FormActivateReceiver (Form *form) { this->form = form; }
-
+
void activate (dw::core::ui::Resource *resource);
void enter (dw::core::ui::Resource *resource);
void leave (dw::core::ui::Resource *resource);
@@ -129,7 +129,7 @@ private:
public:
FormClickedReceiver (Form *form, const char *name, const char *value);
~FormClickedReceiver ();
-
+
void clicked(dw::core::ui::Resource *resource,
dw::core::EventButton *event);
};