VaKeR CYBER ARMY
Logo of a company Server : Apache/2.4.41 (Ubuntu)
System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Directory :  /proc/self/root/usr/share/doc/renaissance-doc/examples/Examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/share/doc/renaissance-doc/examples/Examples/calculator.gsmarkup
<?xml version="1.0"?>
<!DOCTYPE gsmarkup>
<gsmarkup>

<objects>
  <!-- the main window -->
  <window title="Calculator" closable="no">

    <vbox>

      <textField editable="no" id="TextField" />

      <vbox halign="expand">
        <hbox halign="expand">
          <hspace />
          <button width="36" height="24" title="1" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="2" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="3" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="4" target="#Controller" action="digit:" />
          <hspace />
        </hbox>


        <hbox>
          <hspace />
          <button width="36" height="24" title="5" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="6" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="7" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="8" target="#Controller" action="digit:" />
          <hspace />
        </hbox>

        <hbox>
          <hspace />
          <button width="36" height="24" title="9" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="0" target="#Controller" action="digit:" />
          <hspace />
          <button width="36" height="24" title="+" target="#Controller" action="add:" />
          <hspace />
          <button width="36" height="24" title="=" target="#Controller" action="total:" />
          <hspace />
        </hbox>
      </vbox>

    </vbox>

  </window>

  <!-- an object of a custom class, which is instantiated when the nib
       is loaded.  Key-value coding is used to set textField to #TextField.
       In other words, the textField attribute is equivalent to having a
       NSNibOutletConnector with source #Controller, target #TextField, 
       and key textField -->
  <instance instanceOf="CalculatorController" id="Controller" 
            textField="#TextField" />

</objects>

<!-- in this example, connectors are not actually needed (or better
     all connectors are embedded in the objects section) - but we add
     the connectors section as an example.  -->
<connectors>

  <!-- an example of a standalone connector, needed to connect the Controller
       to the controller ivar (or setController: method) of the NSOwner (the
       object which loaded the nib).  This connector must be standalone
       because #NSOwner is not inside the nib.  (you can reference objects
       totally outside the nib in a connector, which are provided by the
       nameTable dictionary when the nib is loaded) -->
  <outlet source="#NSOwner" target="#Controller" key="controller" />

</connectors>

</gsmarkup>

VaKeR 2022