[280] | 1 | /* rgfindwindow.h |
---|
| 2 | * |
---|
| 3 | * Copyright (c) 2003 Michael Vogt |
---|
| 4 | * |
---|
| 5 | * Author: Michael Vogt <mvo@debian.org> |
---|
| 6 | * |
---|
| 7 | * This program is free software; you can redistribute it and/or |
---|
| 8 | * modify it under the terms of the GNU General Public License as |
---|
| 9 | * published by the Free Software Foundation; either version 2 of the |
---|
| 10 | * License, or (at your option) any later version. |
---|
| 11 | * |
---|
| 12 | * This program is distributed in the hope that it will be useful, |
---|
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 15 | * GNU General Public License for more details. |
---|
| 16 | * |
---|
| 17 | * You should have received a copy of the GNU General Public License |
---|
| 18 | * along with this program; if not, write to the Free Software |
---|
| 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
| 20 | * USA |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | #include "rggladewindow.h" |
---|
| 25 | #include "rpackagefilter.h" |
---|
| 26 | |
---|
| 27 | class RGFindWindow; |
---|
| 28 | |
---|
| 29 | typedef void RGFindWindowFindAction(void *self, RGFindWindow * win); |
---|
| 30 | |
---|
| 31 | class RGFindWindow:public RGGladeWindow { |
---|
| 32 | |
---|
| 33 | //RPatternPackageFilter::DepType _searchType; |
---|
| 34 | GList *_prevSearches; |
---|
| 35 | GtkWidget *_entry, *_findB; |
---|
| 36 | |
---|
| 37 | static void doFind(GtkWindow *widget, void *data); |
---|
| 38 | static void doClose(GtkWindow *widget, void *data); |
---|
| 39 | static void cbEntryChanged(GtkWindow *widget, void *data); |
---|
| 40 | |
---|
| 41 | public: |
---|
| 42 | RGFindWindow(RGWindow *owner); |
---|
| 43 | virtual ~RGFindWindow() { |
---|
| 44 | }; |
---|
| 45 | |
---|
| 46 | int getSearchType(); |
---|
| 47 | |
---|
| 48 | string getFindString(); |
---|
| 49 | void selectText(); |
---|
| 50 | }; |
---|