А какой в этом смысл? То есть смысл в кнопке которая завершает процессы таков, что если у тебя что-то повисло, ты мог бы это исправить, во первых когда запущено несколько процессов, неизвестно какой из них висит, во вторых конкретно в QSAGUI все процессы взаимосвязаны, то есть если завершить один процесс, то, от другого смысла не будет. В другом случае, когда у нас процессы друг от друга не зависят, правильнее спрашивать какое действие отменить, то есть предоставлять пользователю решать самому, какой процесс повис. Третий вариант, делать сложную логику, которая будет отслеживать активность процессов, и глушить тот процесс который явно висит, но тут есть проблема - процесс может и не висеть, а пользователь посчитает что его надо заглушить. Ну и в конце концов, по моему сейчас в этой кнопке смысла нет, потому что делали её когда GUI работал в одном потоке и всё время ждал когда закончится процесс, чтобы запустить другой, сейчас там всё работает в разных потоках, тоесть даже если один из процессов зависнет, на общий результат работы это не повлияет.
2010/5/27 Alexandr Gudulin <[email protected]> > Можно наверно сделать кнопку, которая будет убивать все запущенные > процессы, и кнопку, которая будет завершать последний запущенный процесс. > > 2010/5/27 Артём Шапоренко <[email protected]> > >> На самом деле я считаю что стоит подумать над этим, если есть кнопка >> останова, то она должна останавливать всё. Ибо сделана она для этого, >> предлагаю решить этот вопрос. >> >> >> On Thu, May 27, 2010 at 7:07 PM, SourceAnalyzer >> <[email protected]>wrote: >> >>> #434: QSAGUI: progress bar doesn't stop when proccess are crashed by user >>> >>> ------------------------+--------------------------------------------------- >>> Reporter: maslentype | Owner: kn0pka >>> Type: task | Status: closed >>> Priority: normal | Milestone: QSAGUI: Beta 2.0 preparation >>> Component: QSAGUI | Version: >>> Severity: normal | Resolution: invalid >>> Keywords: | >>> >>> ------------------------+--------------------------------------------------- >>> Changes (by maslentype): >>> >>> * status: new => closed >>> * resolution: => invalid >>> >>> Comment: >>> >>> Maybe... Closed as invalid. >>> >>> -- >>> Ticket URL: < >>> http://trac-hg.assembla.com/SourceAnalyzer/ticket/434#comment:6> >>> SourceAnalyzer <http://www.assembla.com/spaces/show/SourceAnalyzer> >>> Development of a tool to analyze the source code and to build call-graph >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "SourceAnalyzer Team" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<sa_team%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/sa_team?hl=en. >>> >>> >> >> >> -- >> Regards, Artem >> >> tel. +79200444558 >> icq 269910037 >> skype artem.shaporenko >> Source Analyzer Team >> >> -- >> You received this message because you are subscribed to the Google Groups >> "SourceAnalyzer Team" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<sa_team%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/sa_team?hl=en. >> > > > > -- > http://gudulin.ru > > -- > You received this message because you are subscribed to the Google Groups > "SourceAnalyzer Team" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<sa_team%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/sa_team?hl=en. > -- Regards, Artem tel. +79200444558 icq 269910037 skype artem.shaporenko Source Analyzer Team -- You received this message because you are subscribed to the Google Groups "SourceAnalyzer Team" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sa_team?hl=en.
