diff options
author | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-06-07 13:01:29 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-08-14 19:43:25 +0200 |
commit | 70300fed9b50fab922aee84455aba09fdc74608a (patch) | |
tree | 8ac2b1e582c3cfa901c0ad4b2e2891724d4ba23a /cui | |
parent | f143e343b7aeea5fad622e436eee9f8ffbb614d5 (diff) |
Little code cleanup.
Changed a little bit of documentation and some variable names.
Change-Id: I292bf63b41c2b7d0a5ee7f03eb8ca49bf42b64ee
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/personalization.cxx | 10 | ||||
-rw-r--r-- | cui/source/options/personalization.hxx | 13 |
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* ); }; |