summaryrefslogtreecommitdiff
path: root/src/nautilus-search-bar-criterion.c
diff options
context:
space:
mode:
authorRebecca Schulman <rebecka@eazel.com>2000-06-21 02:25:54 +0000
committerRebecca Schulman <rebecka@src.gnome.org>2000-06-21 02:25:54 +0000
commitd18ad1f885d5069cff341248209a1ec8a8cd24d9 (patch)
treedfd64e6f46040767fc75fc99e47d1c2803861941 /src/nautilus-search-bar-criterion.c
parentb3af87db6ee43653329678d74da93906d986bf14 (diff)
downloadnautilus-d18ad1f885d5069cff341248209a1ec8a8cd24d9.tar.gz
set up search-bar as a virtual class that switches between the available
2000-06-20 Rebecca Schulman <rebecka@eazel.com> * src/Makefile.am: * src/nautilus-search-bar.c: * src/nautilus-search-bar.h: (nautilus_search_bar_initialize_class), (nautilus_search_bar_initialize), (nautilus_search_bar_set_location), (nautilus_search_bar_set_search_controls): * src/nautilus-switchable-search-bar.c: * src/nautilus-switchable-search-bar.h: * src/nautilus-search-bar-criterion.c: * src/nautilus-search-bar-criterion.h: set up search-bar as a virtual class that switches between the available search bars, similar to nautilus-navigation-bar. * src/nautilus-complex-search-bar.c: * src/nautilus-complex-search-bar.h: * src/nautilus-simple-search-bar.c: * src/nautilus-simple-search-bar.h: Added simple and complex search bar skeletons. these need to get filled out a lot more * src/nautilus-switchable-navigation-bar.c: (nautilus_switchable_navigation_bar_initialize): switchable navigation bar uses a switchable search bar instead of a normal search bar, since that class is now virtual * src/nautilus-navigation-bar.c: fixed comment typos * libnautilus-extensions/nautilus-directory.h: Exported nautilus_uri_is_search_uri function * libnautilus-extensions/Makefile.am: Added nautilus-search-uri.c and .h files The functions aren't filled out yet, though * libnautilus-extensions/nautilus-search-uri.c: (nautilus_search_uri_to_simple_search_criteria): * libnautilus-extensions/nautilus-search-uri.h: * libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_register_for_ui): * libnautilus-extensions/nautilus-global-preferences.h: Changed search bar preference names from NAUTILUS_SEARCH_BAR_ONE_BOX and NAUTILUS_SEARCH_BAR_MULTI_BOX to NAUTILUS_SIMPLE_SEARCH_BAR and NAUTILUS_COMPLEX_SEARCH_BAR to match respective object names
Diffstat (limited to 'src/nautilus-search-bar-criterion.c')
-rw-r--r--src/nautilus-search-bar-criterion.c64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/nautilus-search-bar-criterion.c b/src/nautilus-search-bar-criterion.c
new file mode 100644
index 000000000..048cf4879
--- /dev/null
+++ b/src/nautilus-search-bar-criterion.c
@@ -0,0 +1,64 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/* nautilus-search-bar-criterion.c - Code to bring up
+ the various kinds of criterion supported in the nautilus search
+ bar
+
+ Copyright (C) 2000 Eazel, Inc.
+
+ 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; see the file COPYING. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Rebecca Schulman <rebecka@eazel.com>
+*/
+
+#include "nautilus-search-bar-criterion.h"
+#include "nautilus-search-bar.h"
+
+
+struct NautilusSearchBarCriterionDisplay {
+ GtkOptionMenu *criteria_available;
+ GtkOptionMenu *operators_avaiable;
+ gboolean value_is_in_entry;
+ /* Only one of these are used at
+ any given time */
+ GtkOptionMenu *values_available;
+ GtkEntry *entry_value;
+};
+
+
+NautilusSearchBarCriterion *
+nautilus_search_bar_criterion_file_type_new (NautilusComplexSearchBar *bar)
+{
+ /* FIXME */
+ return NULL;
+
+}
+
+
+NautilusSearchBarCriterion *
+nautilus_search_bar_criterion_file_name_new (NautilusComplexSearchBar *bar)
+{
+
+ /* FIXME */
+ return NULL;
+
+}
+
+void
+nautilus_search_bar_criterion_add_to_container (GtkContainer *container, NautilusSearchBarCriterion *criterion)
+{
+
+}