~ubuntu-branches/ubuntu/natty/kde-l10n-ptbr/natty-proposed

« back to all changes in this revision

Viewing changes to docs/kdegraphics/ksnapshot/index.docbook

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2010-03-31 04:52:10 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20100331045210-i2e9x9t2ydunn1lp
Tags: 4:4.4.2-0ubuntu1
* New upstream release
* Base all kde-l10n packages on a common packaging
  + add build script debian/build-l10n.sh to fetch source from upstream and
    build source packages from that
  + revise all files to be more auto-editable and include warnings
    where possible, to ensure that out-of-branch edits do not happen
* Switch to source format 3
  + add quilt as build-dep (get-desktop causes changes that end up as patches)

Show diffs side-by-side

added added

removed removed

Lines of Context:
141
141
>&FDLNotice;</legalnotice>
142
142
 
143
143
<date
144
 
>2006-07-05</date>
 
144
>2010-01-07</date>
145
145
<releaseinfo
146
 
>0.7</releaseinfo>
 
146
>0.8.1</releaseinfo>
147
147
 
148
148
<abstract>
149
149
<para
196
196
<itemizedlist>
197
197
<listitem>
198
198
<para
199
 
>You may start &ksnapshot; by selecting it from the <menuchoice
200
 
> <guimenu
201
 
>K-Menu</guimenu
202
 
><guisubmenu
203
 
>Applications</guisubmenu
204
 
><guisubmenu
205
 
>Graphics</guisubmenu
 
199
>Você pode iniciar o &ksnapshot; selecionando-o a partir do menu do lançador de aplicativos <menuchoice
 
200
><guisubmenu
 
201
>Aplicativos</guisubmenu
206
202
> <guimenuitem
207
 
>Screen Capture Program &ksnapshot;</guimenuitem
 
203
>Programa de captura de tela &ksnapshot;</guimenuitem
208
204
></menuchoice
209
205
>. </para
210
206
></listitem>
306
302
>.</para>
307
303
 
308
304
<para
309
 
>Similarly, to take a snapshot of a region, select the <guilabel
310
 
>Region</guilabel
311
 
> combo box entry and set the <guilabel
312
 
>Snapshot delay</guilabel
313
 
> to <guilabel
314
 
>No delay</guilabel
315
 
>, and then click on the <guibutton
316
 
>New Snapshot</guibutton
317
 
> button. The mouse cursor will then change into a cross, and you can then use the mouse to select the region you want to capture. </para>
 
305
>Da mesma forma, para capturar uma região, selecione a opção <guilabel
 
306
>Região</guilabel
 
307
> e defina o <guilabel
 
308
>Atraso na captura</guilabel
 
309
> para <guilabel
 
310
>Sem atraso</guilabel
 
311
>, e então, clique no botão <guibutton
 
312
>Nova captura de tela</guibutton
 
313
>. O ponteiro do mouse será alterado para uma cruz e pode ser usado para selecionar a região que deseja capturar. Para realizar uma captura pressione a tecla &Enter; ou pressione &Esc; para sair.</para>
318
314
 
319
315
<para
320
316
>Para obter uma nova captura de seção da janela, selecione a opção <guilabel
325
321
>Sem atraso</guilabel
326
322
> aparecerá uma cruz como ponteiro do mouse e você deverá clicar uma vez com o &LMB; na janela. A seção da janela sob o ponteiro do mouse será destacada com uma borda vermelha. Mova o mouse para a seção desejada e clique com o &LMB; para capturar a imagem. </para>
327
323
 
 
324
<para
 
325
>Se você tiver várias telas, a <guilabel
 
326
>Tela atual</guilabel
 
327
> captura a tela que contém o cursor do mouse, no momento em que é realizada a captura.</para>
328
328
</sect1>
329
329
 
330
330
<sect1 id="additional-features">
336
336
>Atraso na captura de tela</title>
337
337
 
338
338
<para
339
 
>The <guilabel
340
 
>Snapshot Delay</guilabel
341
 
> box allows you to enter an arbitrary time delay, in seconds, between the time that you press the <guibutton
342
 
>New Snapshot</guibutton
343
 
> button and the time that the snapshot is taken.</para>
 
339
>O campo <guilabel
 
340
>Atraso na captura</guilabel
 
341
> permite-lhe informar um tempo de espera, em segundos, entre o momento em que pressiona o botão <guibutton
 
342
>Nova captura de tela</guibutton
 
343
> e o momento em que a imagem é capturada.</para>
344
344
 
345
345
<para
346
346
>Quando um tempo de espera é definido, você não precisa clicar o mouse para capturar a imagem. Isto permite-lhe abrir um menu e capturar uma imagem dele.</para>
431
431
 
432
432
<title
433
433
>Interface &DBus;</title>
 
434
 
 
435
<para
 
436
>O &ksnapshot; poderá ser programado a partir da sua interface &DBus;.</para>
 
437
 
 
438
<para
 
439
>Existem duas formas de usar a interface de &DBus;: a &GUI; do &Qt; <application
 
440
>qdbusviewer</application
 
441
> e o utilitário da linha de comando <application
 
442
>qdbus</application
 
443
>. </para>
 
444
 
 
445
<para
 
446
>Exemplos: <itemizedlist mark='opencircle'>
 
447
 
 
448
<listitem
 
449
><para
 
450
>O <prompt
 
451
>&percnt;</prompt
 
452
> <command
 
453
>qdbus</command
 
454
> irá mostrar todos os serviços disponíveis. </para
 
455
></listitem>
 
456
 
 
457
<listitem
 
458
><para
 
459
>O <prompt
 
460
>&percnt;</prompt
 
461
> <command
 
462
>qdbus</command
 
463
> <option
 
464
>org.kde.ksnapshot-`pidof -s ksnapshot`</option
 
465
> irá mostrar a interface &DBus; do &ksnapshot;. </para
 
466
></listitem>
 
467
 
 
468
<listitem
 
469
><para
 
470
>O <prompt
 
471
>&percnt;</prompt
 
472
> <command
 
473
>qdbus</command
 
474
> <option
 
475
>org.kde.ksnapshot-`pidof -s ksnapshot` /KSnapshot</option
 
476
> irá mostrar os métodos que controlam o &ksnapshot;. </para
 
477
></listitem>
 
478
 
 
479
</itemizedlist>
 
480
</para>
 
481
 
 
482
<para
 
483
>Para mais informações, vá por favor ao <ulink url="http://techbase.kde.org/Development/Tutorials/D-Bus/Introduction"
 
484
>tutorial sobre &DBus;</ulink
 
485
>. </para>
 
486
 
434
487
<!--
435
488
kdedev@rebutia:~/svn$ qdbus org.kde.ksnapshot-10484
436
489
/
477
530
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
478
531
method QString org.freedesktop.DBus.Introspectable.Introspect()
479
532
-->
480
 
<para
481
 
>&ksnapshot; can be scripted using its &DBus; interface. This chapter explains the various &DBus; calls that you can use, and provides some examples of how you can use them.</para>
482
 
 
483
 
<para
484
 
>As with all &DBus; calls, you need to specify the application you want to interface with, and the particular interface. With &ksnapshot; you need to identify which particular application, which is <literal
485
 
>ksnapshot-</literal
486
 
> followed by the process number.</para>
487
533
<!-- dbus-launch ksnapshot-->
488
534
<!-- ksnapshot qdbus org.kde.ksnapshot-20985-->
 
535
<!--
489
536
<para
490
 
>To start &ksnapshot; and obtain the right argument, use <command
 
537
>To start &ksnapshot; and obtain the right argument, use
 
538
<command
491
539
>dcopstart ksnapshot</command
492
 
>, which returns the argument (such as <computeroutput
 
540
>, which returns the 
 
541
argument (such as <computeroutput
493
542
>ksnapshot-20594</computeroutput
494
 
>) on standard output.</para>
 
543
>) on
 
544
standard output.</para>
495
545
 
496
546
<para
497
 
>You can get a list of the available &DCOP; interfaces, use the right arguments, as shown in this example: <screen width="60"
498
 
><prompt
499
 
>$</prompt
500
 
> <command
501
 
>dcop `dcopstart ksnapshot` interface</command
502
 
><computeroutput>
 
547
>You can get a list of the available &DCOP; interfaces, use
 
548
the right arguments, as shown in this example:
 
549
<screen width="60"
 
550
>
 
551
<prompt>$</prompt> <command>dcop `dcopstart ksnapshot` interface</command><computeroutput>
503
552
QCStringList interfaces()
504
553
QCStringList functions()
505
554
QString url()
516
565
int grabMode()
517
566
void slotMovePointer(int x,int y)
518
567
void exit()
519
 
</computeroutput
520
 
>
 
568
</computeroutput>
521
569
</screen>
522
570
</para>
523
571
 
524
 
<para
525
 
>In the examples following, the process is always <computeroutput
 
572
<para>
 
573
In the examples following, the process is always
 
574
<computeroutput
526
575
>ksnapshot-23151</computeroutput
527
 
>. </para>
 
576
>.
 
577
</para>
528
578
 
529
579
<sect1 id="dcop-settings">
530
580
 
532
582
>&DCOP; Access to Settings</title>
533
583
 
534
584
<para
535
 
>For each of the settings that you can control with the &GUI;, you can both obtain the current status of that setting, and modify the setting, using &DCOP;. </para>
 
585
>For each of the settings that you can control with the
 
586
&GUI;, you can both obtain the current status of that setting,
 
587
and modify the setting, using &DCOP;.
 
588
</para>
536
589
 
537
590
<para
538
 
>You can obtain the current capture mode using <literal
 
591
>You can obtain the current capture mode using 
 
592
<literal
539
593
>grabMode</literal
540
 
>, as shown below: <screen width="60">
541
 
<prompt
542
 
>$</prompt
543
 
> <command
544
 
>dcop ksnapshot-23151 interface grabMode</command>
545
 
</screen
546
 
> This will return <computeroutput
 
594
>, as shown below:
 
595
<screen width="60"
 
596
>
 
597
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface grabMode</command>
 
598
</screen>
 
599
This will return <computeroutput
547
600
>0</computeroutput
548
 
> for full-screen capture, <computeroutput
 
601
> for full-screen capture,
 
602
<computeroutput
549
603
>1</computeroutput
550
604
> for window capture, and <computeroutput
551
 
>2</computeroutput
552
 
> for region capture. </para>
 
605
>2</computeroutput>
 
606
for region capture.
 
607
</para>
553
608
 
554
609
<para
555
610
>You can set the capture mode using <literal
556
611
>setGrabMode</literal
557
 
>, which requires an argument to identify the mode required (as for <literal
 
612
>,
 
613
which requires an argument to identify the mode required (as for <literal
558
614
>grabMode</literal
559
 
>). So you can set window capture mode (<command
 
615
>).
 
616
So you can set window capture mode (<command
560
617
>1</command
561
 
>), using: <screen width="60"
562
 
><prompt
563
 
>$</prompt
564
 
> <command
565
 
>dcop ksnapshot-23151 interface setGrabMode 1</command
 
618
>), using:
 
619
<screen width="60"
566
620
>
 
621
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface setGrabMode 1</command>
567
622
</screen>
568
623
</para>
569
624
 
570
625
<para
571
626
>You can obtain the current timeout setting (the <guilabel
572
 
>Snapshot delay:</guilabel
573
 
> &GUI; item) using <literal
 
627
>Snapshot delay:</guilabel>
 
628
&GUI; item) using <literal
574
629
>timeout</literal
575
 
>, as shown below: <screen width="60">
576
 
<prompt
577
 
>$</prompt
578
 
> <command
579
 
>dcop ksnapshot-23151 interface timeout</command>
580
 
</screen
581
 
> This will return the timeout setting in seconds, or zero if there is no delay (capture on click). </para>
 
630
>, as shown below:
 
631
<screen width="60"
 
632
>
 
633
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface timeout</command>
 
634
</screen>
 
635
This will return the timeout setting in seconds, or zero if there is no delay
 
636
(capture on click).
 
637
</para>
582
638
 
583
639
<para
584
640
>You can set the timeout using <literal
585
641
>setTime</literal
586
 
>, which requires an argument to identify the timeout duration. So you can set a delay of 4 seconds using: <screen width="60"
587
 
><prompt
588
 
>$</prompt
589
 
> <command
590
 
>dcop ksnapshot-23151 interface setTime 4</command
 
642
>,
 
643
which requires an argument to identify the timeout duration. So you can
 
644
set a delay of 4 seconds using:
 
645
<screen width="60"
591
646
>
 
647
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface setTime 4</command>
592
648
</screen>
593
649
</para>
594
650
 
595
651
<para
596
 
>You can obtain the path that the snapshot will be saved to using <literal
 
652
>You can obtain the path that the snapshot will be saved to using 
 
653
<literal
597
654
>url</literal
598
 
>, as shown below: <screen width="60">
599
 
<prompt
600
 
>$</prompt
601
 
><command
602
 
>dcop ksnapshot-23151 interface url</command>
603
 
</screen
604
 
> This will return the filename, as a &URL; (eg as <computeroutput
 
655
>, as shown below:
 
656
<screen width="60"
 
657
>
 
658
<prompt>$</prompt><command>dcop ksnapshot-23151 interface url</command>
 
659
</screen>
 
660
This will return the filename, as a &URL; (eg as 
 
661
<computeroutput
605
662
>file:///home/bradh/test2.png</computeroutput
606
 
>). </para>
 
663
>).
 
664
</para>
607
665
 
608
666
<para
609
667
>You can set the path using <literal
610
668
>setURL</literal
611
 
>, which requires a string argument to identify the new path. So you can set the path to <literal
612
 
>file:///home/bradh/snapshot.jpg</literal
613
 
> using: <screen width="60"
614
 
><prompt
615
 
>$</prompt
616
 
> <command
617
 
>dcop ksnapshot-23151 interface setURL file:///home/bradh/snapshot.jpg</command
 
669
>,
 
670
which requires a string argument to identify the new path. So you can
 
671
set the path to <literal
 
672
>file:///home/bradh/snapshot.jpg</literal>
 
673
using:
 
674
<screen width="60"
618
675
>
 
676
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface setURL file:///home/bradh/snapshot.jpg</command>
619
677
</screen>
620
678
</para>
621
679
 
625
683
<title
626
684
>Taking Screenshots with &DCOP;</title>
627
685
 
628
 
<para
629
 
>The key to taking screenshots with &DCOP; is use of <literal
 
686
<para>
 
687
The key to taking screenshots with &DCOP; is use of <literal
630
688
>slotGrab</literal
631
 
>, as shown below: <screen width="60"
632
 
><prompt
633
 
>$</prompt
634
 
> <command
635
 
>dcop ksnapshot-23151 interface slotGrab</command
 
689
>,
 
690
as shown below:
 
691
<screen width="60"
636
692
>
 
693
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface slotGrab</command>
637
694
</screen>
638
695
</para>
639
696
 
640
 
<para
641
 
>This will take a snapshot using the current snapshot mode and timeout settings (as described above). If you want to save the snapshot image, there are a number of calls you can use. If you just want to save the image to the current path (as returned by <literal
 
697
<para>
 
698
This will take a snapshot using the current snapshot mode and timeout settings
 
699
(as described above). If you want to save the snapshot image, there are a
 
700
number of calls you can use. If you just want to save the image to the current
 
701
path (as returned by <literal
642
702
>url</literal
643
 
> or changed by <literal
 
703
> or changed by
 
704
<literal
644
705
>setURL</literal
645
706
>), you can use <literal
646
707
>slotSave</literal
647
 
>, as shown below: <screen width="60"
648
 
><prompt
649
 
>$</prompt
650
 
> <command
651
 
>dcop ksnapshot-23151 interface slotSave</command
 
708
>, as shown
 
709
below:
 
710
<screen width="60"
652
711
>
 
712
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface slotSave</command>
653
713
</screen>
654
714
</para>
655
715
 
656
 
<para
657
 
>If you want the user to be able to specify a filename (and path), you can use <literal
 
716
<para>
 
717
If you want the user to be able to specify a filename (and path), you can use
 
718
<literal
658
719
>slotSaveAs</literal
659
 
>, which will bring up a standard &kde; file save dialog.</para>
 
720
>, which will bring up a standard &kde; file
 
721
save dialog.</para>
660
722
 
661
 
<para
662
 
>If you want to save the image to a different name (or path) without changing the path with <literal
 
723
<para>
 
724
If you want to save the image to a different name (or path) without
 
725
changing the path with <literal
663
726
>setURL</literal
664
 
>, you can use <literal
 
727
>, you can use
 
728
<literal
665
729
>save</literal
666
 
>, providing the &URL; to save to as an argument. So if you want to save the snapshot to <filename
 
730
>, providing the &URL; to save to as an argument. So if you
 
731
want to save the snapshot to <filename
667
732
>file:///tmp/tempshot.png</filename
668
 
>, you can do the following: <screen width="60">
669
 
<prompt
670
 
>$</prompt
671
 
> <command
672
 
>dcop ksnapshot-23151 interface save file:///tmp/tempshot.png</command>
673
 
</screen
674
 
> Note that this will return true if the snapshot was successfully saved, and false otherwise. Also, you should be aware that if the file already exists, the user will get a standard &kde; dialog that requires the user to decide whether to overwrite or not. </para>
 
733
>, you
 
734
can do the following:
 
735
<screen width="60"
 
736
>
 
737
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface save file:///tmp/tempshot.png</command>
 
738
</screen>
 
739
Note that this will return true if the snapshot was successfully saved, and false
 
740
otherwise. Also, you should be aware that if the file already exists, the user
 
741
will get a standard &kde; dialog that requires the user to decide whether to overwrite
 
742
or not.
 
743
</para>
675
744
 
676
 
<para
677
 
>In addition to saving the snapshot, you can also copy it to the clipboard, using <literal
 
745
<para>
 
746
In addition to saving the snapshot, you can also copy it to the clipboard, using 
 
747
<literal
678
748
>slotCopy</literal
679
 
>, as shown below: <screen width="60"
680
 
><prompt
681
 
>$</prompt
682
 
> <command
683
 
>dcop ksnapshot-23151 interface slotCopy</command
 
749
>, as shown below:
 
750
<screen width="60"
684
751
>
 
752
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface slotCopy</command>
685
753
</screen>
686
754
</para>
687
755
 
688
 
<para
689
 
>If you need to select a window that may not be under the mouse cursor, you can use <literal
 
756
<para>
 
757
If you need to select a window that may not be under the mouse cursor, you
 
758
can use <literal
690
759
>slotMovePointer</literal
691
 
>, passing the x position (in screen pixels) and the y position (also in screen pixels) as arguments. So to move the mouse to the top left hand corner of the screen (0,0), you can do the following: <screen width="60"
692
 
><prompt
693
 
>$</prompt
694
 
> <command
695
 
>dcop ksnapshot-23151 interface slotMoveMouse 0 0</command
 
760
>, passing the x position
 
761
(in screen pixels) and the y position (also in screen pixels) as arguments.
 
762
So to move the mouse to the top left hand corner of the screen (0,0), you
 
763
can do the following:
 
764
<screen width="60"
696
765
>
 
766
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface slotMoveMouse 0 0</command>
697
767
</screen>
698
768
</para>
699
769
</sect1>
702
772
<title
703
773
>Printing Screenshots with &DCOP;</title>
704
774
 
705
 
<para
706
 
>You can print the current screenshot (which may or may not have been saved) using <literal
 
775
<para>
 
776
You can print the current screenshot (which may or may not have been saved)
 
777
using <literal
707
778
>printSlot</literal
708
 
>, as shown below: <screen width="60"
709
 
><prompt
710
 
>$</prompt
711
 
> <command
712
 
>dcop ksnapshot-23151 interface slotPrint</command
 
779
>, as shown below:
 
780
<screen width="60"
713
781
>
 
782
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface slotPrint</command>
714
783
</screen>
715
784
</para>
716
785
 
717
 
<para
718
 
>Note that this will bring up the normal &kde; print dialog, which may require user interaction. </para>
 
786
<para>
 
787
Note that this will bring up the normal &kde; print dialog, which may require
 
788
user interaction.
 
789
</para>
719
790
 
720
791
</sect1>
721
792
 
723
794
<title
724
795
>&DCOP; Application control</title>
725
796
 
726
 
<para
727
 
>You can cause &ksnapshot; to exit by using <literal
 
797
<para>
 
798
You can cause &ksnapshot; to exit by using <literal
728
799
>exit</literal
729
 
>, as shown below. <screen width="60"
730
 
><prompt
731
 
>$</prompt
732
 
> <command
733
 
>dcop ksnapshot-23151 interface exit</command
 
800
>,
 
801
as shown below.
 
802
<screen width="60"
734
803
>
 
804
<prompt>$</prompt> <command>dcop ksnapshot-23151 interface exit</command>
735
805
</screen>
736
806
</para>
737
807
 
738
808
</sect1>
739
 
 
 
809
-->
740
810
</chapter>
741
811
 
742
812
<chapter id="credits">