remove whitespace at eol
[goodguy/history.git] / cinelerra-5.1 / guicast / bcrecentlist.C
index ed8111bc0b3fa4b6eb3216c77a25417789f12055..3d0d2839066270b886713fadf5fb053c067bdfbe 100644 (file)
@@ -2,21 +2,21 @@
 /*
  * CINELERRA
  * Copyright (C) 2004 Nathan Kurz
- * 
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- * 
+ *
  */
 
 #include <string.h>
 #include "language.h"
 
 // NOTE: textbox can be NULL if no textbox is associated
-BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults, 
-                            BC_TextBox *textbox, int max, 
-                            int x, int y, int w, int h) 
-       : BC_ListBox(x, y, w, h, LISTBOX_TEXT, 0, 0, 0, 1, 0, 1) 
+BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults,
+                            BC_TextBox *textbox, int max,
+                            int x, int y, int w, int h)
+       : BC_ListBox(x, y, w, h, LISTBOX_TEXT, 0, 0, 0, 1, 0, 1)
 {
        this->type = type;
        this->defaults = defaults;
@@ -40,8 +40,8 @@ BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults,
        set_tooltip(_("Choose from recently used"));
 }
 
-BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults, 
-                            BC_TextBox *textbox) 
+BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults,
+                            BC_TextBox *textbox)
        : BC_ListBox(textbox->get_x() + textbox->get_w(), textbox->get_y(),
                     textbox->get_w(), RECENT_POPUP_HEIGHT,
                     LISTBOX_TEXT, 0, 0, 0, 1, 0, 1)
@@ -52,7 +52,7 @@ BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults,
        set_tooltip(_("Choose from recently used"));
 }
 
-BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults) 
+BC_RecentList::BC_RecentList(const char *type, BC_Hash *defaults)
        : BC_ListBox(-1, -1, -1, -1, LISTBOX_TEXT, 0, 0, 0, 1, 0, 1)
 {
        this->type = type;
@@ -102,13 +102,13 @@ int BC_RecentList::load_items(const char *prefix) {
        if (textbox) update(&items, 0, 0, 1);
 
        return count;
-}      
+}
 
 
 int BC_RecentList::add_item(const char *prefix, char *text) {
 
        if (! prefix) prefix = "ANY";
-       
+
        // remove an old item if it matches the new text
        for (int i = 0; i < items.total; i++) {
                BC_ListBoxItem *item = items.values[i];
@@ -122,8 +122,8 @@ int BC_RecentList::add_item(const char *prefix, char *text) {
 
        // save up to maximum items of the list for future use
        int count;
-       for (count = 0; 
-            count < RECENT_MAX_ITEMS && count < items.total; 
+       for (count = 0;
+            count < RECENT_MAX_ITEMS && count < items.total;
             count++) {
                BC_ListBoxItem *item = items.values[count];
                char save[BCTEXTLEN];