summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-07 13:01:29 +0530
committerRachit Gupta <rachitgupta1792@gmail.com>2014-06-07 13:01:29 +0530
commita7149bf35ea1254badb7f8f4b279f18096d012b2 (patch)
tree519e4ccce54a793762ac1cd501702b91074409ec
parente28749854b89a596f4da7aa710b2a5daf588c4f7 (diff)
Little code cleanup.
Changed a little bit of documentation and some variable names. Change-Id: I292bf63b41c2b7d0a5ee7f03eb8ca49bf42b64ee
-rw-r--r--cui/source/options/personalization.cxx10
-rw-r--r--cui/source/options/personalization.hxx13
2 files changed, 13 insertions, 10 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index c619624eaee5..677ff1157439 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -35,8 +35,8 @@ using namespace ::com::sun::star::ucb;
SelectPersonaDialog::SelectPersonaDialog( Window *pParent )
: ModalDialog( pParent, "SelectPersonaDialog", "cui/ui/select_persona_dialog.ui" )
{
- get( m_pButton, "search_personas" );
- m_pButton->SetClickHdl( LINK( this, SelectPersonaDialog, VisitPersonas ) );
+ get( m_pSearchButton, "search_personas" );
+ m_pSearchButton->SetClickHdl( LINK( this, SelectPersonaDialog, SearchPersonas ) );
get( m_pEdit, "search_term" );
m_pEdit->SetPlaceholderText( "Search term..." );
@@ -64,11 +64,11 @@ OUString SelectPersonaDialog::GetPersonaURL() const
return OUString();
}
-IMPL_LINK( SelectPersonaDialog, VisitPersonas, PushButton*, /*pButton*/ )
+IMPL_LINK( SelectPersonaDialog, SearchPersonas, PushButton*, /*pButton*/ )
{
OUString searchTerm = m_pEdit->GetText();
- OUString rURL = "https://addons.allizom.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/9";
- m_aSearchThread = new SearchAndParseThread( this, rURL );
+ OUString rSearchURL = "https://addons.allizom.org/en-US/firefox/api/1.5/search/" + searchTerm + "/9/9";
+ m_aSearchThread = new SearchAndParseThread( this, rSearchURL );
m_aSearchThread->launch();
return 0;
}
diff --git a/cui/source/options/personalization.hxx b/cui/source/options/personalization.hxx
index 9bc99a7e5edf..02364493ca53 100644
--- a/cui/source/options/personalization.hxx
+++ b/cui/source/options/personalization.hxx
@@ -62,10 +62,13 @@ https://addons.mozilla.org/firefox/themes ...
class SelectPersonaDialog : public ModalDialog
{
private:
- Edit *m_pEdit; ///< The input line for the Persona URL
- PushButton *m_pButton;
- FixedText *m_pProgressLabel;
- PushButton *m_vResultList[9];
+ Edit *m_pEdit; ///< The input line for the search term
+ PushButton *m_pSearchButton; ///< The search button
+ FixedText *m_pProgressLabel; ///< The label for showing progress of search
+ PushButton *m_vResultList[9]; ///< List of buttons to show search results
+
+ std::vector<OUString> m_vPersonaSettings;
+ OUString m_aSelectedPersona;
public:
SelectPersonaDialog( Window *pParent );
@@ -77,7 +80,7 @@ public:
void SetImages( std::vector<Image> &);
private:
- /// Handle the [Visit Firefox Personas] button
+ /// Handle the Search button
DECL_LINK( VisitPersonas, PushButton* );
};