/usr/share/gtk-doc/html/libgwyapp/libgwyapp-menu.html is in libgwyddion20-doc 2.34-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Gwyddion Application Library Reference Manual: menu</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="Gwyddion Application Library Reference Manual">
<link rel="up" href="index.html" title="Gwyddion Application Library Reference Manual">
<link rel="prev" href="libgwyapp-GwyGradientEditor.html" title="GwyGradientEditor">
<link rel="next" href="libgwyapp-meta.html" title="meta">
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left">
<a href="#" class="shortcut">Top</a>
|
<a href="#libgwyapp-menu.description" class="shortcut">Description</a>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
<td><a accesskey="p" href="libgwyapp-GwyGradientEditor.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libgwyapp-meta.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libgwyapp-menu"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgwyapp-menu.top_of_page"></a>menu</span></h2>
<p>menu — Menu and sensitivity functions</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libgwyapp-menu.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <app/gwyapp.h>
enum <a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags">GwyMenuSensFlags</a>;
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgwyapp-menu.html#gwy-app-build-process-menu" title="gwy_app_build_process_menu ()">gwy_app_build_process_menu</a> (<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gtk/gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-process-menu-add-run-last" title="gwy_app_process_menu_add_run_last ()">gwy_app_process_menu_add_run_last</a> (<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *menu</code></em>);
<a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="returnvalue">GwyRunType</span></a> <a class="link" href="libgwyapp-menu.html#gwy-app-run-process-func" title="gwy_app_run_process_func ()">gwy_app_run_process_func</a> (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-run-process-func-in-mode" title="gwy_app_run_process_func_in_mode ()">gwy_app_run_process_func_in_mode</a> (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code><a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="type">GwyRunType</span></a> run</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgwyapp-menu.html#gwy-app-build-graph-menu" title="gwy_app_build_graph_menu ()">gwy_app_build_graph_menu</a> (<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gtk/gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-run-graph-func" title="gwy_app_run_graph_func ()">gwy_app_run_graph_func</a> (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgwyapp-menu.html#gwy-app-build-volume-menu" title="gwy_app_build_volume_menu ()">gwy_app_build_volume_menu</a> (<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gtk/gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
<a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="returnvalue">GwyRunType</span></a> <a class="link" href="libgwyapp-menu.html#gwy-app-run-volume-func" title="gwy_app_run_volume_func ()">gwy_app_run_volume_func</a> (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-run-volume-func-in-mode" title="gwy_app_run_volume_func_in_mode ()">gwy_app_run_volume_func_in_mode</a> (<em class="parameter"><code>const <a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code><a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="type">GwyRunType</span></a> run</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-menu-recent-files-update" title="gwy_app_menu_recent_files_update ()">gwy_app_menu_recent_files_update</a> (<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *recent_files</code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="libgwyapp-menu.html#gwy-app-menu-recent-files-get" title="gwy_app_menu_recent_files_get ()">gwy_app_menu_recent_files_get</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkTooltips.html"><span class="returnvalue">GtkTooltips</span></a> * <a class="link" href="libgwyapp-menu.html#gwy-app-get-tooltips" title="gwy_app_get_tooltips ()">gwy_app_get_tooltips</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="../libgwydgets/GwySensitivityGroup.html"><span class="returnvalue">GwySensitivityGroup</span></a> * <a class="link" href="libgwyapp-menu.html#gwy-app-sensitivity-get-group" title="gwy_app_sensitivity_get_group ()">gwy_app_sensitivity_get_group</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-sensitivity-add-widget" title="gwy_app_sensitivity_add_widget ()">gwy_app_sensitivity_add_widget</a> (<em class="parameter"><code><a href="http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
<em class="parameter"><code><a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a> mask</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libgwyapp-menu.html#gwy-app-sensitivity-set-state" title="gwy_app_sensitivity_set_state ()">gwy_app_sensitivity_set_state</a> (<em class="parameter"><code><a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a> affected_mask</code></em>,
<em class="parameter"><code><a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a> state</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libgwyapp-menu.description"></a><h2>Description</h2>
<p>
Menu and toolbox item sensitivity is updated by main application whenever
its state changes. Possible states that may affect widget sesitivity are
defined in <a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a>.
</p>
</div>
<div class="refsect1">
<a name="libgwyapp-menu.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GwyMenuSensFlags"></a><h3>enum GwyMenuSensFlags</h3>
<pre class="programlisting">typedef enum {
GWY_MENU_FLAG_DATA = 1 << 0,
GWY_MENU_FLAG_UNDO = 1 << 1,
GWY_MENU_FLAG_REDO = 1 << 2,
GWY_MENU_FLAG_GRAPH = 1 << 3,
GWY_MENU_FLAG_LAST_PROC = 1 << 4,
GWY_MENU_FLAG_LAST_GRAPH = 1 << 5,
GWY_MENU_FLAG_DATA_MASK = 1 << 6,
GWY_MENU_FLAG_DATA_SHOW = 1 << 7,
GWY_MENU_FLAG_3D = 1 << 8,
GWY_MENU_FLAG_FILE = 1 << 9,
GWY_MENU_FLAG_VOLUME = 1 << 10,
GWY_MENU_FLAG_MASK = 0x3ff
} GwyMenuSensFlags;
</pre>
<p>
Global application sensitivity flags.
</p>
<p>
They represent various application states that may be preconditions for
widgets to become sensitive.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><a name="GWY-MENU-FLAG-DATA:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_DATA</code></span></p></td>
<td>There is at least a one data window present.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-UNDO:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_UNDO</code></span></p></td>
<td>There is something to undo (for current data window).
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-REDO:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_REDO</code></span></p></td>
<td>There is something to redo (for current data window).
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-GRAPH:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_GRAPH</code></span></p></td>
<td>There is at least a one graph window present.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-LAST-PROC:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_LAST_PROC</code></span></p></td>
<td>There is a last-run data processing function
to rerun.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-LAST-GRAPH:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_LAST_GRAPH</code></span></p></td>
<td>There is a last-run graph function to rerun.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-DATA-MASK:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_DATA_MASK</code></span></p></td>
<td>There is a mask on the data.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-DATA-SHOW:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_DATA_SHOW</code></span></p></td>
<td>There is a presentation on the data.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-3D:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_3D</code></span></p></td>
<td>A 3D view is present.
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-FILE:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_FILE</code></span></p></td>
<td>A file is open, with any type of data (Since 2.5).
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-VOLUME:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_VOLUME</code></span></p></td>
<td>There is at least one volume data window present
(Since 2.32).
</td>
</tr>
<tr>
<td><p><a name="GWY-MENU-FLAG-MASK:CAPS"></a><span class="term"><code class="literal">GWY_MENU_FLAG_MASK</code></span></p></td>
<td>All the bits combined.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-build-process-menu"></a><h3>gwy_app_build_process_menu ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gwy_app_build_process_menu (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
<p>
Constructs the application <span class="guimenu">Data Process</span> menu.
</p>
<p>
The menu is created from data processing functions registered by modules,
therefore module registration has to be performed first for this function
to make sense.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
<td>Acceleration group to be associated with the menu.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly ceated data processing menu (a <a href="/usr/share/gtk-doc/html/gtk3/GtkMenu.html"><span class="type">GtkMenu</span></a>).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-process-menu-add-run-last"></a><h3>gwy_app_process_menu_add_run_last ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_process_menu_add_run_last (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *menu</code></em>);</pre>
<p>
Adds <span class="guimenuitem">Re-show Last</span> and
<span class="guimenuitem">Repeat Last</span> items to application data process
menu.
</p>
<p>
This function is essentially useful only for toolbox construction.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
<td>Menu created with <a class="link" href="libgwyapp-menu.html#gwy-app-build-process-menu" title="gwy_app_build_process_menu ()"><code class="function">gwy_app_build_process_menu()</code></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-run-process-func"></a><h3>gwy_app_run_process_func ()</h3>
<pre class="programlisting"><a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="returnvalue">GwyRunType</span></a> gwy_app_run_process_func (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Runs a data processing function on the current data.
</p>
<p>
From the run modes function <em class="parameter"><code>name</code></em> supports, the most interactive one is
selected.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A data processing function name.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The actually used mode (nonzero), or 0 on failure.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-run-process-func-in-mode"></a><h3>gwy_app_run_process_func_in_mode ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_run_process_func_in_mode (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code><a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="type">GwyRunType</span></a> run</code></em>);</pre>
<p>
Runs a data processing function on current data in specified mode.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A data processing function name.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>run</code></em> :</span></p></td>
<td>A run mode.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-build-graph-menu"></a><h3>gwy_app_build_graph_menu ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gwy_app_build_graph_menu (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
<p>
Constructs the application <span class="guimenu">Graph</span> menu.
</p>
<p>
The menu is created from graph functions registered by modules,
therefore module registration has to be performed first for this function
to make sense.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
<td>Acceleration group to be associated with the menu.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly ceated graph menu (a <a href="/usr/share/gtk-doc/html/gtk3/GtkMenu.html"><span class="type">GtkMenu</span></a>).</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-run-graph-func"></a><h3>gwy_app_run_graph_func ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_run_graph_func (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Runs a graph function on the current graph.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A graph function name.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-build-volume-menu"></a><h3>gwy_app_build_volume_menu ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gwy_app_build_volume_menu (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/gtk3-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
<p>
Constructs the application <span class="guimenu">Volume Data</span> menu.
</p>
<p>
The menu is created from volume data processing functions registered by
modules, therefore module registration has to be performed first for this
function to make sense.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
<td>Acceleration group to be associated with the menu.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly ceated data processing menu (a <a href="/usr/share/gtk-doc/html/gtk3/GtkMenu.html"><span class="type">GtkMenu</span></a>).</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.32</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-run-volume-func"></a><h3>gwy_app_run_volume_func ()</h3>
<pre class="programlisting"><a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="returnvalue">GwyRunType</span></a> gwy_app_run_volume_func (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>);</pre>
<p>
Runs a volume data processing function on the current data.
</p>
<p>
From the run modes function <em class="parameter"><code>name</code></em> supports, the most interactive one is
selected.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A volume data processing function name.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The actually used mode (nonzero), or 0 on failure.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.32</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-run-volume-func-in-mode"></a><h3>gwy_app_run_volume_func_in_mode ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_run_volume_func_in_mode (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
<em class="parameter"><code><a href="../libgwymodule/libgwymodule-gwymoduleenums.html#GwyRunType"><span class="type">GwyRunType</span></a> run</code></em>);</pre>
<p>
Runs a volume data processing function on current data in specified mode.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A volume data processing function name.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>run</code></em> :</span></p></td>
<td>A run mode.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.32</p>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-menu-recent-files-update"></a><h3>gwy_app_menu_recent_files_update ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_menu_recent_files_update (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *recent_files</code></em>);</pre>
<p>
Updates recent file menu.
</p>
<p>
If the list of files is longer than the maximum number of recent file menu
items, only the maximum number is shown.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>recent_files</code></em> :</span></p></td>
<td>A list of recent file names, in UTF-8.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-menu-recent-files-get"></a><h3>gwy_app_menu_recent_files_get ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gwy_app_menu_recent_files_get (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the application recent files menu.
</p>
<p>
The menu is initially empty and can be updated
with <a class="link" href="libgwyapp-menu.html#gwy-app-menu-recent-files-update" title="gwy_app_menu_recent_files_update ()"><code class="function">gwy_app_menu_recent_files_update()</code></a>. This function is essentially
useful only for toolbox construction.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The recent files menu (a <a href="/usr/share/gtk-doc/html/gtk3/GtkMenu.html"><span class="type">GtkMenu</span></a>).</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-get-tooltips"></a><h3>gwy_app_get_tooltips ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gtk2/GtkTooltips.html"><span class="returnvalue">GtkTooltips</span></a> * gwy_app_get_tooltips (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the application-wide tooltips instance.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The global tooltips instance. No reference is added, you can
add yours, but the returned object will exist to the end of program
anyway.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-sensitivity-get-group"></a><h3>gwy_app_sensitivity_get_group ()</h3>
<pre class="programlisting"><a href="../libgwydgets/GwySensitivityGroup.html"><span class="returnvalue">GwySensitivityGroup</span></a> * gwy_app_sensitivity_get_group (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Gets the application-wide widget sensitvity group.
</p>
<p>
The flags to be used with this sensitvity group are defined in
<a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The global sensitvity group instead. No reference is added, you
can add yours, but the returned object will exist to the end of
program anyway.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-sensitivity-add-widget"></a><h3>gwy_app_sensitivity_add_widget ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_sensitivity_add_widget (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gtk3/GtkWidget.html"><span class="type">GtkWidget</span></a> *widget</code></em>,
<em class="parameter"><code><a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a> mask</code></em>);</pre>
<p>
Adds a widget to the application-wide widget sensitvity group.
</p>
<p>
The semantics of this function is the same as
<a href="../libgwydgets/GwySensitivityGroup.html#gwy-sensitivity-group-add-widget"><code class="function">gwy_sensitivity_group_add_widget()</code></a> (in fact, it's a simple wrapper around
it).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td>Widget to add.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
<td>Which flags the widget is sensitive to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gwy-app-sensitivity-set-state"></a><h3>gwy_app_sensitivity_set_state ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gwy_app_sensitivity_set_state (<em class="parameter"><code><a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a> affected_mask</code></em>,
<em class="parameter"><code><a class="link" href="libgwyapp-menu.html#GwyMenuSensFlags" title="enum GwyMenuSensFlags"><span class="type">GwyMenuSensFlags</span></a> state</code></em>);</pre>
<p>
Sets the state of application-wide widget sensitvity group.
</p>
<p>
The semantics of this function is the same as
<a href="../libgwydgets/GwySensitivityGroup.html#gwy-sensitivity-group-set-state"><code class="function">gwy_sensitivity_group_set_state()</code></a> (in fact, it's a simple wrapper around
it).
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>affected_mask</code></em> :</span></p></td>
<td>Which bits in <em class="parameter"><code>state</code></em> to copy to state.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>The new state (masked with <em class="parameter"><code>affected_mask</code></em>).</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.19</div>
</body>
</html>
|