mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 06:02:31 +00:00
Added file view.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@322 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+11
-4
@@ -92,6 +92,12 @@ load_arg_torrents(ui::Control* c, char** begin, char** end) {
|
||||
std::for_each(begin, end, std::bind1st(std::mem_fun(&core::Manager::insert), &c->get_core()));
|
||||
}
|
||||
|
||||
void
|
||||
initialize_display(ui::Control* c) {
|
||||
display::Canvas::init();
|
||||
display::Window::slot_adjust(sigc::mem_fun(c->get_display(), &display::Manager::adjust_layout));
|
||||
}
|
||||
|
||||
void
|
||||
initialize_core(ui::Control* c) {
|
||||
c->get_core().get_poll().slot_read_stdin(sigc::mem_fun(c->get_input(), &input::Manager::pressed));
|
||||
@@ -115,19 +121,18 @@ main(int argc, char** argv) {
|
||||
|
||||
int firstArg = parse_options(&uiControl, argc, argv);
|
||||
|
||||
display::Canvas::init();
|
||||
display::Window::slot_adjust(sigc::mem_fun(uiControl.get_display(), &display::Manager::adjust_layout));
|
||||
initialize_display(&uiControl);
|
||||
initialize_core(&uiControl);
|
||||
|
||||
uiRoot.init();
|
||||
|
||||
initialize_core(&uiControl);
|
||||
|
||||
load_session_torrents(&uiControl);
|
||||
load_arg_torrents(&uiControl, argv + firstArg, argv + argc);
|
||||
|
||||
uiControl.get_display().adjust_layout();
|
||||
|
||||
while (!is_shutting_down || !torrent::get(torrent::SHUTDOWN_DONE)) {
|
||||
|
||||
if (uiRoot.get_shutdown_received()) {
|
||||
do_shutdown(&uiControl);
|
||||
uiRoot.set_shutdown_received(false);
|
||||
@@ -188,6 +193,8 @@ void
|
||||
print_help() {
|
||||
std::cout << "Rakshasa's Torrent client. <Neko-Mimi Mode-o!>" << std::endl;
|
||||
std::cout << std::endl;
|
||||
std::cout << "All value pairs (f.ex rate and queue size) will be in the UP/DOWN order." << std::endl;
|
||||
std::cout << std::endl;
|
||||
std::cout << "Usage: rtorrent [OPTIONS]... [FILE]... [URL]..." << std::endl;
|
||||
std::cout << " -h Display this very helpful text" << std::endl;
|
||||
std::cout << " -i <a.b.c.d> Set the IP address that is sent to the tracker" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user