Mercurial > octave-nkf
diff libgui/src/welcome-wizard.h @ 17940:b3e4ee8f4d6d
respect option for opting out of web connections for community news
* main-window.h, main-window.cc (main_window::main_window): Check
settings for news/allow_web_connection. Don't load and display
community news at startup if the community news web connection is
disabled.
(news_reader::connect_to_web): New data member.
(news_reader_process): Display different messages for network
unavailable and disabled web connections. Don't connect to web if
connect_to_web is false.
(main_window::load_and_display_community_news): Check settings for
news/allow_web_connection and pass value to news_reader constructor.
* welcome-wizard.h, welcome-wizard.cc
(welcome_wizard::allow_web_connect_state): New data member.
(welcome_wizard::handle_web_connect_option): New slot.
(setup_community_news::setup_community_news): Connect checkbox signal
to welcome_wizard::handle_web_connect_option.
(welcome_wizard::accept): New slot. Initialize resources here.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 16 Nov 2013 12:05:26 -0500 |
parents | f87a7e161710 |
children | 866d3860724c |
line wrap: on
line diff
--- a/libgui/src/welcome-wizard.h Sat Nov 16 02:52:30 2013 -0500 +++ b/libgui/src/welcome-wizard.h Sat Nov 16 12:05:26 2013 -0500 @@ -42,13 +42,18 @@ QList<page_creator_fptr> page_ctor_list; QList<page_creator_fptr>::iterator page_list_iterator; - QWidget *current_page; + QWidget *current_page; + bool allow_web_connect_state; private slots: + void handle_web_connect_option (int state); + void show_page (void); void previous_page (void); void next_page (void); + + void accept (void); }; #endif // WELCOMEWIZARD_H