23 #ifndef QTXSEARCHTOOL_H 
   24 #define QTXSEARCHTOOL_H 
   30 #include <QPersistentModelIndex> 
   67     Basic     = Search   | Next   | Prev | Close,    
 
   68     Standard  = Basic    | First  | Last,            
 
   69     Modifiers = Case     | RegExp | Wrap,            
 
   70     All       = Standard | Modifiers                 
 
   76     SlashKey    = 0x00000002,                                 
 
   77     StandardKey = 0x00000004,                                 
 
   78     PrintKey    = 0x00000008,                                 
 
   79     Any         = HotKey | SlashKey | StandardKey | PrintKey  
 
   87   void                setWatchedWidget( 
QWidget* );
 
   89   Searcher*           searcher() 
const;
 
   90   void                setSearcher( Searcher* );
 
   92   int                 activators() 
const;
 
   93   void                setActivators( 
const int );
 
   96   void                setControls( 
const int );
 
   99   void                setShortcuts( 
const QKeySequence& );
 
  102   int                 addCustomWidget( 
QWidget*, 
int = -1 );
 
  103   QWidget*            customWidget( 
int ) 
const;
 
  104   int                 customWidgetId( 
QWidget* ) 
const;
 
  106   bool                isAutoHideEnabled() 
const;
 
  107   void                enableAutoHide( 
bool );
 
  109   bool                isCaseSensitive() 
const;
 
  110   bool                isRegExpSearch() 
const;
 
  111   bool                isSearchWrapped() 
const;
 
  113   void                setCaseSensitive( 
bool );
 
  114   void                setRegExpSearch( 
bool );
 
  115   void                setSearchWrapped( 
bool );
 
  117   virtual bool        event( 
QEvent* );
 
  122   virtual void        findNext();
 
  123   virtual void        findPrevious();
 
  124   virtual void        findFirst();
 
  125   virtual void        findLast();
 
  128   void                find( 
const QString&, 
int = fAny );
 
  129   void                modifierSwitched();
 
  133   bool                focused() 
const;
 
  134   void                clearShortcuts();
 
  136   void                updateShortcuts();
 
  137   void                updateControls();
 
  184   int                    searchColumn() 
const;
 
  185   void                   setSearchColumn( 
int );
 
  198   QModelIndex            findNearest( 
const QModelIndex&, 
const QModelIndexList&, 
bool );
 
  199   void                   showItem( 
const QModelIndex& );
 
  200   QString                getId( 
const QModelIndex& );
 
  201   int                    compareIndices( 
const QModelIndex&, 
const QModelIndex& );
 
  209 #endif // QTXSEARCHTOOL_H