Back to index

salome-gui  6.5.0
Public Member Functions | Private Attributes
WebViewSearcher Class Reference

A class is used with QtxSearchTool in order to search text within the web page. More...

Inheritance diagram for WebViewSearcher:
Inheritance graph
[legend]
Collaboration diagram for WebViewSearcher:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WebViewSearcher (QWebView *)
 ~WebViewSearcher ()
bool find (const QString &, QtxSearchTool *)
bool findNext (const QString &, QtxSearchTool *)
bool findPrevious (const QString &, QtxSearchTool *)
bool findFirst (const QString &, QtxSearchTool *)
bool findLast (const QString &, QtxSearchTool *)

Private Attributes

QWebView * myView

Detailed Description

A class is used with QtxSearchTool in order to search text within the web page.

Definition at line 43 of file QtxWebBrowser.cxx.


Constructor & Destructor Documentation

WebViewSearcher::WebViewSearcher ( QWebView *  view)

Definition at line 59 of file QtxWebBrowser.cxx.

                                                 : myView( view )
{
}

Definition at line 63 of file QtxWebBrowser.cxx.

{
}

Member Function Documentation

bool WebViewSearcher::find ( const QString &  text,
QtxSearchTool st 
)

Definition at line 67 of file QtxWebBrowser.cxx.

{
  QWebPage::FindFlags fl = 0;
  if ( st->isCaseSensitive() ) fl = fl | QWebPage::FindCaseSensitively;
  if ( st->isSearchWrapped() ) fl = fl | QWebPage::FindWrapsAroundDocument;
  return myView->findText( text, fl );
}

Here is the caller graph for this function:

bool WebViewSearcher::findFirst ( const QString &  ,
QtxSearchTool  
)

Definition at line 88 of file QtxWebBrowser.cxx.

{
  return false;
}
bool WebViewSearcher::findLast ( const QString &  ,
QtxSearchTool  
)

Definition at line 93 of file QtxWebBrowser.cxx.

{
  return false;
}
bool WebViewSearcher::findNext ( const QString &  text,
QtxSearchTool st 
)

Definition at line 75 of file QtxWebBrowser.cxx.

{
  return find( text, st );
}

Here is the call graph for this function:

bool WebViewSearcher::findPrevious ( const QString &  text,
QtxSearchTool st 
)

Definition at line 80 of file QtxWebBrowser.cxx.

{
  QWebPage::FindFlags fl = QWebPage::FindBackward;
  if ( st->isCaseSensitive() ) fl = fl | QWebPage::FindCaseSensitively;
  if ( st->isSearchWrapped() ) fl = fl | QWebPage::FindWrapsAroundDocument;
  return myView->findText( text, fl );
}

Member Data Documentation

QWebView* WebViewSearcher::myView [private]

Definition at line 56 of file QtxWebBrowser.cxx.


The documentation for this class was generated from the following file: