summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-07 13:01:29 +0530
committerRachit Gupta <rachitgupta1792@gmail.com>2014-08-04 20:27:46 +0530
commit27f4978a89ed7a13913da4749cd69f70f16084bd (patch)
tree2b44986f42918d867d02a1ea5b6df5da140ffa89
parent3947154c0cdef20ba6567348bfd3d20502402be1 (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 73c4e9c4fe2a..adc0c240afb5 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 4be8f8d88ea4..8b9dae61ef67 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* );
};