Documentation/Source/eric6.ViewManager.ViewManager.html

changeset 5606
da305d172769
parent 5108
f5cb9cb98e6a
child 5727
c8842a8d1167
equal deleted inserted replaced
5605:1950fe1a32c4 5606:da305d172769
1872 <dd> 1872 <dd>
1873 zoom value to be set (integer) 1873 zoom value to be set (integer)
1874 </dd> 1874 </dd>
1875 </dl><a NAME="ViewManager._addView" ID="ViewManager._addView"></a> 1875 </dl><a NAME="ViewManager._addView" ID="ViewManager._addView"></a>
1876 <h4>ViewManager._addView</h4> 1876 <h4>ViewManager._addView</h4>
1877 <b>_addView</b>(<i>win, fn=None, noName="", next=False</i>) 1877 <b>_addView</b>(<i>win, fn=None, noName="", addNext=False</i>)
1878 <p> 1878 <p>
1879 Protected method to add a view (i.e. window). 1879 Protected method to add a view (i.e. window).
1880 </p><dl> 1880 </p><dl>
1881 <dt><i>win</i></dt> 1881 <dt><i>win</i></dt>
1882 <dd> 1882 <dd>
1885 <dd> 1885 <dd>
1886 filename of this editor 1886 filename of this editor
1887 </dd><dt><i>noName</i></dt> 1887 </dd><dt><i>noName</i></dt>
1888 <dd> 1888 <dd>
1889 name to be used for an unnamed editor (string) 1889 name to be used for an unnamed editor (string)
1890 </dd><dt><i>next</i></dt> 1890 </dd><dt><i>addNext</i></dt>
1891 <dd> 1891 <dd>
1892 flag indicating to add the view next to the current 1892 flag indicating to add the view next to the current
1893 view (bool) 1893 view (bool)
1894 </dd> 1894 </dd>
1895 </dl><dl> 1895 </dl><dl>
2281 flag indicating focus in checks should be performed 2281 flag indicating focus in checks should be performed
2282 (boolean) 2282 (boolean)
2283 </dd> 2283 </dd>
2284 </dl><a NAME="ViewManager.eventFilter" ID="ViewManager.eventFilter"></a> 2284 </dl><a NAME="ViewManager.eventFilter" ID="ViewManager.eventFilter"></a>
2285 <h4>ViewManager.eventFilter</h4> 2285 <h4>ViewManager.eventFilter</h4>
2286 <b>eventFilter</b>(<i>object, event</i>) 2286 <b>eventFilter</b>(<i>qobject, event</i>)
2287 <p> 2287 <p>
2288 Public method called to filter an event. 2288 Public method called to filter an event.
2289 </p><dl> 2289 </p><dl>
2290 <dt><i>object</i></dt> 2290 <dt><i>qobject</i></dt>
2291 <dd> 2291 <dd>
2292 object, that generated the event (QObject) 2292 object, that generated the event (QObject)
2293 </dd><dt><i>event</i></dt> 2293 </dd><dt><i>event</i></dt>
2294 <dd> 2294 <dd>
2295 the event, that was generated by object (QEvent) 2295 the event, that was generated by object (QEvent)
2314 <dd> 2314 <dd>
2315 the APIs manager object (eric6.QScintilla.APIsManager) 2315 the APIs manager object (eric6.QScintilla.APIsManager)
2316 </dd> 2316 </dd>
2317 </dl><a NAME="ViewManager.getActions" ID="ViewManager.getActions"></a> 2317 </dl><a NAME="ViewManager.getActions" ID="ViewManager.getActions"></a>
2318 <h4>ViewManager.getActions</h4> 2318 <h4>ViewManager.getActions</h4>
2319 <b>getActions</b>(<i>type</i>) 2319 <b>getActions</b>(<i>actionSetType</i>)
2320 <p> 2320 <p>
2321 Public method to get a list of all actions. 2321 Public method to get a list of all actions.
2322 </p><dl> 2322 </p><dl>
2323 <dt><i>type</i></dt> 2323 <dt><i>actionSetType</i></dt>
2324 <dd> 2324 <dd>
2325 string denoting the action set to get. 2325 string denoting the action set to get.
2326 It must be one of "edit", "file", "search", 2326 It must be one of "edit", "file", "search", "view", "window",
2327 "view", "window", "macro", "bookmark" or 2327 "macro", "bookmark" or "spelling".
2328 "spelling".
2329 </dd> 2328 </dd>
2330 </dl><dl> 2329 </dl><dl>
2331 <dt>Returns:</dt> 2330 <dt>Returns:</dt>
2332 <dd> 2331 <dd>
2333 list of all actions (list of E5Action) 2332 list of all actions (list of E5Action)
2342 <dd> 2341 <dd>
2343 filename of active window (string) 2342 filename of active window (string)
2344 </dd> 2343 </dd>
2345 </dl><a NAME="ViewManager.getEditor" ID="ViewManager.getEditor"></a> 2344 </dl><a NAME="ViewManager.getEditor" ID="ViewManager.getEditor"></a>
2346 <h4>ViewManager.getEditor</h4> 2345 <h4>ViewManager.getEditor</h4>
2347 <b>getEditor</b>(<i>fn, filetype="", next=False</i>) 2346 <b>getEditor</b>(<i>fn, filetype="", addNext=False</i>)
2348 <p> 2347 <p>
2349 Public method to return the editor displaying the given file. 2348 Public method to return the editor displaying the given file.
2350 </p><p> 2349 </p><p>
2351 If there is no editor with the given file, a new editor window is 2350 If there is no editor with the given file, a new editor window is
2352 created. 2351 created.
2355 <dd> 2354 <dd>
2356 filename to look for 2355 filename to look for
2357 </dd><dt><i>filetype</i></dt> 2356 </dd><dt><i>filetype</i></dt>
2358 <dd> 2357 <dd>
2359 type of the source file (string) 2358 type of the source file (string)
2360 </dd><dt><i>next</i></dt> 2359 </dd><dt><i>addNext</i></dt>
2361 <dd> 2360 <dd>
2362 flag indicating that if a new editor needs to be created, 2361 flag indicating that if a new editor needs to be
2363 it should be added next to the current editor (bool) 2362 created, it should be added next to the current editor (bool)
2364 </dd> 2363 </dd>
2365 </dl><dl> 2364 </dl><dl>
2366 <dt>Returns:</dt> 2365 <dt>Returns:</dt>
2367 <dd> 2366 <dd>
2368 tuple of two values giving a flag indicating a new window 2367 tuple of two values giving a flag indicating a new window
2708 <dd> 2707 <dd>
2709 name of file to be opened (string) 2708 name of file to be opened (string)
2710 </dd> 2709 </dd>
2711 </dl><a NAME="ViewManager.openSourceFile" ID="ViewManager.openSourceFile"></a> 2710 </dl><a NAME="ViewManager.openSourceFile" ID="ViewManager.openSourceFile"></a>
2712 <h4>ViewManager.openSourceFile</h4> 2711 <h4>ViewManager.openSourceFile</h4>
2713 <b>openSourceFile</b>(<i>fn, lineno=-1, filetype="", selStart=0, selEnd=0, pos=0, next=False</i>) 2712 <b>openSourceFile</b>(<i>fn, lineno=-1, filetype="", selStart=0, selEnd=0, pos=0, addNext=False</i>)
2714 <p> 2713 <p>
2715 Public slot to display a file in an editor. 2714 Public slot to display a file in an editor.
2716 </p><dl> 2715 </p><dl>
2717 <dt><i>fn</i></dt> 2716 <dt><i>fn</i></dt>
2718 <dd> 2717 <dd>
2732 <dd> 2731 <dd>
2733 end of an area to be selected (integer) 2732 end of an area to be selected (integer)
2734 </dd><dt><i>pos</i></dt> 2733 </dd><dt><i>pos</i></dt>
2735 <dd> 2734 <dd>
2736 position within the line to place the cursor at (integer) 2735 position within the line to place the cursor at (integer)
2737 </dd><dt><i>next</i></dt> 2736 </dd><dt><i>addNext</i></dt>
2738 <dd> 2737 <dd>
2739 flag indicating to add the file next to the current 2738 flag indicating to add the file next to the current
2740 editor (bool) 2739 editor (bool)
2741 </dd> 2740 </dd>
2742 </dl><a NAME="ViewManager.preferencesChanged" ID="ViewManager.preferencesChanged"></a> 2741 </dl><a NAME="ViewManager.preferencesChanged" ID="ViewManager.preferencesChanged"></a>
2806 <b>projectOpened</b>(<i></i>) 2805 <b>projectOpened</b>(<i></i>)
2807 <p> 2806 <p>
2808 Public slot to handle the projectOpened signal. 2807 Public slot to handle the projectOpened signal.
2809 </p><a NAME="ViewManager.receive" ID="ViewManager.receive"></a> 2808 </p><a NAME="ViewManager.receive" ID="ViewManager.receive"></a>
2810 <h4>ViewManager.receive</h4> 2809 <h4>ViewManager.receive</h4>
2811 <b>receive</b>(<i>hash, fileName, command</i>) 2810 <b>receive</b>(<i>projectHash, fileName, command</i>)
2812 <p> 2811 <p>
2813 Public slot to handle received editor commands. 2812 Public slot to handle received editor commands.
2814 </p><dl> 2813 </p><dl>
2815 <dt><i>hash</i></dt> 2814 <dt><i>projectHash</i></dt>
2816 <dd> 2815 <dd>
2817 hash of the project (string) 2816 hash of the project (string)
2818 </dd><dt><i>fileName</i></dt> 2817 </dd><dt><i>fileName</i></dt>
2819 <dd> 2818 <dd>
2820 project relative file name of the editor (string) 2819 project relative file name of the editor (string)

eric ide

mercurial