Display and implicit control method for menu bar
By detecting the menu bar display command and window control status, the menu bar display state of the signal source window is flexibly controlled, which solves the occlusion problem caused by the fixed display of the menu bar of the signal source window and improves the visibility of the signal source screen on Android devices. .
Patent Information
- Application Number
- CN202410836883.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, the menu bar of the signal source window is fixedly displayed, which leads to the problem of small signal source screen area and occlusion of the menu bar. Especially on devices with small display sizes such as Android devices, it is difficult to flexibly control the menu bars of multiple signal source windows. .
By detecting the menu bar display and hiding instructions, the window control status of each signal source window is determined, the menu bar is displayed or hidden according to the status, and the menu bar is displayed or hidden in response to the instructions, thereby realizing flexible control of the menu bar.
In the display scenario of multiple signal source windows, through the menu bar display and hiding instructions and window control status, the menu bar can be flexibly displayed or hidden, reducing the occlusion range, improving the visual range and visualization degree of the signal source screen, and making full use of limited resources. display interface.
Smart Images

Figure CN118656161A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for controlling the display and hiding of a menu bar. Background Art
[0002] In the prior art, the menu bar of the signal source window is usually fixedly displayed in the corresponding signal source window, that is, the menu bar is usually continuously displayed in the signal source window, and the menu bar is used to control the functions set for the signal source window. As a result, the area for displaying the signal source picture is small, and the signal source picture is blocked by the menu bar during playback, which greatly limits the control method of the menu bar. In addition, although the display screen size of some devices (such as Android devices) is small, multiple signal source pictures can be displayed on such devices at the same time.
[0003] It can be seen that how to more flexibly control the menu bars of multiple signal source windows is a technical issue worthy of attention. Summary of the invention
[0004] In view of this, in order to solve some or all of the above-mentioned technical problems, an embodiment of the present application provides a method for controlling the visibility of a menu bar.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling the display and hiding of a menu bar, the method comprising:
[0006] Detecting a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates displaying the menu bar or hiding the menu bar;
[0007] In the case where the menu bar display and hiding instruction indicates hiding the menu bar, determining a window control state of each signal source window among the multiple signal source windows currently displayed, wherein the window control state indicates whether the signal source window is in a controlled state;
[0008] Determine the menu bar visibility state of each signal source window based on the window control state of each signal source window, wherein the menu bar visibility state indicates whether the menu bar of the signal source window is in a display state or a hidden state;
[0009] In response to the menu bar display and hiding instruction, the menu bar of each signal source window is controlled to be displayed or hidden according to the display and hiding state of the menu bar of each signal source window.
[0010] In a possible implementation, determining the menu bar visibility state of each signal source window based on the window control state of each signal source window includes:
[0011] When the window control state of the signal source window indicates that the signal source window is in a controlled state, determining that the menu bar visibility state of the signal source window indicates a display state;
[0012] When the window control state of the signal source window indicates that the signal source window is not in a controlled state, determining that the menu bar display state of the signal source window indicates a hidden state.
[0013] In a possible implementation manner, each signal source window is provided with a listener for listening to the menu bar display and hide instructions; and
[0014] After detecting the menu bar display and hiding instruction, the method further includes:
[0015] When the menu bar display / hide instruction is detected, a broadcast indicating that the menu bar display / hide instruction is detected is generated, so that the listener set in each signal source window can listen to the broadcast.
[0016] In a possible implementation, after detecting the menu bar display and hiding instruction, the method further includes:
[0017] In the case where the menu bar display and hiding instruction indicates to display the menu bar, in response to the menu bar display and hiding instruction, the menu bar of each signal source window currently displayed is displayed.
[0018] In a possible implementation, the method further includes:
[0019] In the case of detecting a signal source adding instruction, taking a signal source window of a first added signal source indicated by the signal source adding instruction as a target signal source window, and determining that a window control state of the target signal source window is a first preset state, wherein the first added signal source indicates a signal source added by the signal source adding instruction, and the first preset state indicates that the target signal source window is not in a controlled state;
[0020] In response to the signal source adding instruction, hiding the menu bar of the target signal source window.
[0021] In a possible implementation, the method further includes:
[0022] In the case where a signal source replacement instruction is detected, determining a window control state of a signal source window of a replaced signal source indicated by the signal source replacement instruction;
[0023] Determine the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source, wherein the second added signal source indicates the signal source added by the signal source replacement instruction;
[0024] In response to the signal source replacement instruction, the menu bar of the signal source window of the second added signal source is controlled to be displayed or hidden according to the display status of the menu bar of the signal source window of the second added signal source.
[0025] In a possible implementation, determining the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source includes:
[0026] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is in a controlled state, determining that the menu bar visibility state of the signal source window of the second added signal source indicates a display state;
[0027] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is not in a controlled state, it is determined that the menu bar display state of the signal source window of the second added signal source indicates a hidden state.
[0028] In a possible implementation manner, determining the window control state of each signal source window among the multiple signal source windows currently displayed includes:
[0029] Determine whether a controlled key of each signal source window among the multiple signal source windows currently displayed is in an on state;
[0030] In the case where the controlled key is in the on state, determining the window control state of the signal source window indicates that the signal source window is in the controlled state;
[0031] In the case that the controlled key is not in the on state, determining the window control state of the signal source window indicates that the signal source window is not in the controlled state.
[0032] In a second aspect, an embodiment of the present application provides a menu bar display and hiding control device, the device comprising:
[0033] A detection unit, used for detecting a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates displaying the menu bar or hiding the menu bar;
[0034] A first determining unit is used to determine the window control state of each signal source window of the multiple signal source windows currently displayed when the menu bar display and hiding instruction indicates to hide the menu bar, wherein the window control state indicates whether the signal source window is in a controlled state;
[0035] A second determining unit is used to determine the menu bar display state of each signal source window based on the window control state of each signal source window, wherein the menu bar display state indicates whether the menu bar of the signal source window is in a display state or a hidden state;
[0036] The first control unit is used to control the display or hiding of the menu bar of each signal source window in response to the menu bar display and hiding instruction according to the display and hiding state of the menu bar of each signal source window.
[0037] In a possible implementation, determining the menu bar visibility state of each signal source window based on the window control state of each signal source window includes:
[0038] When the window control state of the signal source window indicates that the signal source window is in a controlled state, determining that the menu bar visibility state of the signal source window indicates a display state;
[0039] When the window control state of the signal source window indicates that the signal source window is not in a controlled state, determining that the menu bar display state of the signal source window indicates a hidden state.
[0040] In a possible implementation manner, each signal source window is provided with a listener for listening to the menu bar display and hide instructions; and
[0041] After the menu bar display and hiding instruction is detected, the device further includes:
[0042] The generating unit is used for generating a broadcast indicating that the menu bar display / hide instruction is detected when the menu bar display / hide instruction is detected, so that the listener set in each signal source window can listen to the broadcast.
[0043] In a possible implementation, after detecting the menu bar display / hide instruction, the device further includes:
[0044] The display unit is used for displaying the menu bar of each currently displayed signal source window in response to the menu bar display / hiding instruction when the menu bar display / hiding instruction indicates to display the menu bar.
[0045] In a possible implementation, the device further includes:
[0046] A third determining unit is used for, when a signal source adding instruction is detected, taking a signal source window of a first added signal source indicated by the signal source adding instruction as a target signal source window, and determining that a window control state of the target signal source window is a first preset state, wherein the first added signal source indicates a signal source added by the signal source adding instruction, and the first preset state indicates that the target signal source window is not in a controlled state;
[0047] A hiding unit is used to hide the menu bar of the target signal source window in response to the signal source adding instruction.
[0048] In a possible implementation, the device further includes:
[0049] A fourth determining unit is used to determine the window control state of the signal source window of the replaced signal source indicated by the signal source replacement instruction when the signal source replacement instruction is detected;
[0050] A fifth determining unit, configured to determine, based on the window control state of the signal source window of the replaced signal source, a menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction, wherein the second added signal source indicates the signal source added by the signal source replacement instruction;
[0051] The second control unit is used to control the display or hiding of the menu bar of the signal source window of the second added signal source in response to the signal source replacement instruction according to the display or hiding state of the menu bar of the signal source window of the second added signal source.
[0052] In a possible implementation, determining the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source includes:
[0053] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is in a controlled state, determining that the menu bar visibility state of the signal source window of the second added signal source indicates a display state;
[0054] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is not in a controlled state, it is determined that the menu bar display state of the signal source window of the second added signal source indicates a hidden state.
[0055] In a possible implementation manner, determining the window control state of each signal source window among the multiple signal source windows currently displayed includes:
[0056] Determine whether a controlled key of each signal source window among the multiple signal source windows currently displayed is in an on state;
[0057] In the case where the controlled key is in the on state, determining the window control state of the signal source window indicates that the signal source window is in the controlled state;
[0058] In the case that the controlled key is not in the on state, determining the window control state of the signal source window indicates that the signal source window is not in the controlled state.
[0059] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0060] Memory for storing computer programs;
[0061] The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method of any embodiment of the menu bar display and hiding control method of the first aspect of the present application is implemented.
[0062] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method of any embodiment of the menu bar display and hiding control method of the first aspect described above is implemented.
[0063] In a fifth aspect, an embodiment of the present application provides a computer program, which includes a computer-readable code. When the computer-readable code is executed on a device, the processor in the device implements a method as in any embodiment of the method for controlling the display and hiding of a menu bar as described in the first aspect above.
[0064] The menu bar display and hiding control method provided in the embodiment of the present application can detect a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates to display the menu bar or hide the menu bar. Then, when the menu bar display and hiding instruction indicates to hide the menu bar, the window control state of each signal source window among the multiple signal source windows currently displayed is determined, wherein the window control state indicates whether the signal source window is in a controlled state. Then, based on the window control state of each signal source window, the menu bar display and hiding state of each signal source window is determined, wherein the menu bar display and hiding state indicates whether the menu bar of the signal source window is in a display state or a hidden state. Subsequently, in response to the menu bar display and hiding instruction, the menu bar of each signal source window is controlled to be displayed or hidden according to the menu bar display and hiding state of each signal source window. Therefore, in a display scenario where multiple signal source screens are displayed on an Android device, the menu bar display or hiding of each signal source window can be controlled through the menu bar display and hiding instructions and the window control status of each signal source window. In this way, the menu bars of multiple signal source windows can be controlled to be displayed or hidden more flexibly at one time. When hiding the menu bar, the occlusion range of the signal source window can be reduced, thereby increasing the visible range or visualization degree of the signal source window displaying the signal source screen, and making full use of the limited display interface of the Android terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0066] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0067] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0068] Figure 1 A flowchart of a method for controlling the display and hiding of a menu bar provided in an embodiment of the present application;
[0069] Figure 2 A flowchart of another method for controlling the display and hiding of a menu bar provided in an embodiment of the present application;
[0070] Figure 3A A flowchart of another method for controlling the display and hiding of a menu bar provided in an embodiment of the present application;
[0071] Figure 3B-Figure 3I A schematic diagram of an application scenario of a method for controlling the display and hiding of a menu bar provided in an embodiment of the present application;
[0072] Figure 4 A schematic diagram of the structure of a menu bar display and hiding control device provided in an embodiment of the present application;
[0073] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0074] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. It should be noted that unless otherwise specifically stated, the relative arrangement of the components and steps, the numerical expressions and the numerical values described in these embodiments do not limit the scope of the present application.
[0075] Those skilled in the art will understand that the terms "first" and "second" in the embodiments of the present application are only used to distinguish between different steps, devices, modules and other objects, and do not represent any specific technical meanings, nor do they indicate the logical order between them.
[0076] It should also be understood that in this embodiment, “plurality” may refer to two or more than two, and “at least one” may refer to one, two or more than two.
[0077] It should also be understood that any component, data or structure mentioned in the embodiments of the present application can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0078] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.
[0079] It should also be understood that the description of the various embodiments in this application focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0080] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0081] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the above-mentioned technologies, methods, and equipment should be considered as part of the specification.
[0082] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0083] It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. To facilitate the understanding of the embodiments of the present application, the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0084] In order to solve the technical problem of how to more flexibly control the menu bars of multiple signal source windows in the prior art, the present application provides a menu bar visibility control method and device, which can more flexibly control the visibility of the menu bars of multiple signal source windows at one time.
[0085] Figure 1A flowchart of a method for controlling the display and hiding of a menu bar provided in an embodiment of the present application. This method can be applied to one or more electronic devices such as Android smartphones, laptops, desktop computers, portable computers, servers, etc. In addition, the execution subject of this method can be hardware or software. When the above-mentioned execution subject is hardware, the execution subject can be one or more of the above-mentioned electronic devices. For example, a single electronic device can execute this method, or multiple electronic devices can cooperate with each other to execute this method. When the above-mentioned execution subject is software, this method can be implemented as multiple software or software modules, or as a single software or software module. It is not specifically limited here.
[0086] As an implementation method, the above menu bar display and hiding control method can be applied to an Android device. The Android device can be connected to a server. In addition, the Android device can also be connected to one or more acquisition terminals through a switch (network), and one or more signal source terminals are connected to the acquisition terminal. Each signal source terminal can be connected to a collection terminal.
[0087] Among them, each of the multiple signal source windows displayed by the Android device may include a signal source screen of a signal source end and a menu bar for controlling the signal source screen. After the user or other objects operate any signal source screen displayed on it through the Android device, the Android device can transmit the corresponding operation instruction to the corresponding acquisition end through the switch. After receiving the operation instruction, the acquisition end sends the operation instruction to the corresponding signal source end, and the corresponding signal source end displays the screen content of the corresponding signal source according to the above operation instruction. The acquisition end obtains the screen content of the signal source and encodes the screen content of the signal source to obtain a coded video stream, which is transmitted (for example, via the RTSP network protocol) to the Android device. After receiving the coded video stream, the Android device decodes the coded video stream and displays the decoded signal source screen content. The above-mentioned service end can be used to manage account information, store data, etc., such as storing data such as signal source screen information. Multiple signal source windows can be displayed on one screen on the Android device, and these signal source windows can be tiled without crossing layout styles, or can be interlaced layout styles.
[0088] like Figure 1 As shown, the method specifically includes:
[0089] Step 101, detecting a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates displaying the menu bar or hiding the menu bar.
[0090] In this embodiment, the menu bar display and hiding instruction may indicate displaying or hiding the menu bar of one or more signal source windows currently displayed.
[0091] Each signal source window can be used to display a signal source picture. In addition, each signal source window can display a menu bar or not display (i.e., hide) a menu bar.
[0092] As an example, see Figure 3B and Figure 3C ,exist Figure 3B In the case of detecting a menu bar display and hiding instruction indicating display of the menu bar, you can use Figure 3B The icon 10 in the figure indicates that Figure 3C In the case of detecting a menu bar display and hiding instruction indicating hiding the menu bar, you can use Figure 3C The icon 20 in FIG. Figure 3C A corresponding physical picture can be Figure 3G shown.
[0093] In addition, Figure 3B , signal source window 1 displays signal source screen 1 and menu bar 1, signal source window 2 displays signal source screen 2 and menu bar 2, signal source window 3 displays signal source screen 3 and menu bar 3, signal source window 4 displays signal source screen 4 and menu bar 4, signal source window 5 displays signal source screen 5 and menu bar 5, and signal source window 6 displays signal source screen 6 and menu bar 6.
[0094] When the menu bar display and hiding instruction indicates to hide the menu bar, the signal source corresponding to the window where the menu bar is located can be enlarged to fill the original menu bar area.
[0095] In addition, you can set the menu bar of one or several windows to freeze. Freezing includes freezing hiding and freezing displaying. Regardless of whether the user controls the window or not, as long as it is set to freeze, it will always be displayed in this style.
[0096] When the menu bar display and hiding instruction indicates to hide the menu bar, if the signal source is updated from the control state to the non-control state, the menu bar is automatically adjusted from the display state to the hidden state.
[0097] Step 102, when the menu bar display and hiding instruction indicates hiding the menu bar, determining the window control state of each signal source window among the multiple signal source windows currently displayed, wherein the window control state indicates whether the signal source window is in a controlled state.
[0098] In this embodiment, the window control state of the signal source window can be determined by a switch or icon indicating whether the signal source window is in a controlled state, or by automatic detection.
[0099] The control state may refer to the user actually manipulating the signal source screen content by selecting controls on the menu bar, for example, opening a file on the signal source screen content, marking the signal source screen content, and the like.
[0100] The non-control state may mean that only the signal source screen content is played for the user to browse, and the user's commands for editing, drawing, zooming in, zooming out, etc. to manipulate the signal source screen content are not processed.
[0101] As an example, here, within the preset time period, if it is detected that the mouse performs any operation in the signal source window, then it can be determined that the window control state of the signal source window indicates that the signal source window is in a controlled state. The duration of the preset time period may be a predetermined duration, and the end time of the preset time period may be the current time.
[0102] In some optional implementations of this embodiment, the window control state of each signal source window in the multiple signal source windows currently displayed may be determined in the following manner:
[0103] The first step is to determine whether the controlled key of each signal source window among the multiple signal source windows currently displayed is in an open state.
[0104] In the second step, when the controlled key is in the on state, determining the window control state of the signal source window indicates that the signal source window is in a controlled state; when the controlled key is not in the on state, determining the window control state of the signal source window indicates that the signal source window is not in a controlled state.
[0105] As an example, Figure 3B and Figure 3D As shown, when the signal source window is not in a controlled state, determining the window control state of the signal source window indicates that the signal source window is not in a controlled state. Figure 3B The reference numeral 30 in the figure indicates that the controlled key is not in the on state; when the signal source window is in the controlled state, determining the window control state of the signal source window indicates that the signal source window is in the controlled state, and then the Figure 3D The reference numeral 40 in the figure indicates that the controlled key is in the on state. Figure 3D A corresponding physical picture can be Figure 3H shown.
[0106] In addition, the number of signal source windows in the controlled state can be multiple, such as Figure 3E As shown, Figure 3E In the example, the number of signal source windows in the controlled state is 3. Figure 3E A corresponding physical picture can be Fig. 3I shown.
[0107] It can be understood that in the above optional implementation manner, whether the signal source window is in a controlled state can be more accurately determined by the state of the controlled key.
[0108] In addition, the currently displayed signal source window can be displayed in a tiled manner without overlapping multiple windows or in a staggered manner. Figure 3B In the figure, signal source window 1, signal source window 2, signal source window 3, signal source window 4, signal source window 5 and signal source window 6 are displayed in a multi-window non-overlapping tiled manner, and signal source window 2, signal source window 3, signal source window 5 and signal source window 6 are respectively displayed with signal source window 7 in a multi-window staggered superimposed manner. Figure 3B A corresponding physical picture can be Figure 3F shown.
[0109] Step 103, based on the window control state of each signal source window, determining the menu bar visibility state of each signal source window, wherein the menu bar visibility state indicates whether the menu bar of the signal source window is in a display state or a hidden state.
[0110] In this embodiment, the window control states of each currently displayed signal source window can be traversed to determine the menu bar visibility state of each signal source window, and the menu bar visibility state of each signal source window can be determined according to the window control state of each signal source window.
[0111] In some optional implementations of this embodiment, the following method may be used to determine the menu bar visibility state of each signal source window based on the window control state of each signal source window:
[0112] When the window control state of the signal source window indicates that the signal source window is in a controlled state, determining the display state of the menu bar of the signal source window indicates the display state; when the window control state of the signal source window indicates that the signal source window is not in a controlled state, determining the display state of the menu bar of the signal source window indicates the hidden state.
[0113] Here, among the multiple signal source windows displayed in the Android device, the menu bar on the signal source window can be selectively hidden. For example, when a certain signal source window is currently in a controlled state, the menu bar of this signal source window is not hidden, and only the menu bar of the signal source window that is not in a controlled state is hidden.
[0114] It can be understood that in the above optional implementation method, for the signal source window in a controlled state, its menu bar can be displayed to facilitate user control thereof, and for the signal source window that is not in a controlled state, its menu bar can be hidden to expand the visible range or visualization degree of the signal source picture in the signal source window.
[0115] Step 104, in response to the menu bar display and hiding instruction, the menu bar of each signal source window is controlled to be displayed or hidden according to the display and hiding status of the menu bar of each signal source window.
[0116] In this embodiment, as a response to the menu bar display and hide instruction, the menu bar of each signal source window can be controlled to be displayed or hidden according to the display and hide status of the menu bar of each signal source window in the currently displayed signal source windows. For example, if the menu bar of the signal source window is in the display state, the menu bar of the signal source window is controlled to be displayed; if the menu bar of the signal source window is in the hidden state, the menu bar of the signal source window is controlled to be hidden. For example, if the menu bars of two signal source windows are in the display state and the menu bars of four signal source windows are in the hidden state, the menu bars of the two signal source windows are controlled to be displayed, and the menu bars of the four signal source windows are controlled to be hidden.
[0117] Here, in some cases, after executing the above step 104, the following steps may also be executed:
[0118] The first step is to determine whether a target operation for the menu bar of at least two signal source windows is detected. The target operation can be preset, for example, the target operation can be a display operation or a hide operation. Alternatively, the target operation can be any operation.
[0119] Here, multiple methods can be used to determine whether a target operation on the menu bars of at least two signal source windows is detected:
[0120] As an example, if a first operation (e.g., display operation, hiding operation, resolution adjustment operation, etc.) for a first signal source window (any signal source window currently displayed) is detected within a preset time period (e.g., 1 minute), a first operation for a second signal source window (another signal source window currently displayed and different from the first signal source window) is detected, then it can be determined that a target operation for the menu bar of at least two signal source windows is detected. In this case, the above-mentioned first operation can be used as the target operation.
[0121] As another example, if after detecting a second operation (e.g., display operation, hiding operation, resolution adjustment operation, etc.) for a first signal source window (any signal source window currently displayed), a second operation for a second signal source window (another signal source window currently displayed and different from the first signal source window) is detected, and no other operation exists except for mouse movement within the time interval between the execution of the two second operations, then it can be determined that a target operation for the menu bar of at least two signal source windows is detected. In this case, the above second operation can be used as the target operation.
[0122] In the second step, when the target operation on the menu bar of at least two signal source windows is detected, it is determined whether the control states of the at least two signal source windows are the same, and whether the similarity between the preset features of the at least two signal source windows is greater than or equal to a preset similarity threshold. The preset features may be, for example, window names.
[0123] In the third step, when the control states of the at least two signal source windows are the same, and the similarities between the preset features of the at least two signal source windows are greater than or equal to the preset similarity threshold, one or more candidate signal source windows are determined from the currently displayed signal source windows. The candidate signal source windows are signal source windows in the currently displayed signal source windows that have the same control states as the at least two signal source windows, and the similarity between the preset features of at least one signal window of the at least two signal source windows is greater than or equal to the preset similarity threshold.
[0124] The fourth step is to perform the target operation on the menu bar of the candidate window.
[0125] It can be understood that in the above scheme, the target operations performed multiple times by users and other objects can be used to predict the menu bar in the menu bar of the currently displayed signal source window that also needs to perform the target operation. After that, the target operation is executed in batches on the menu bars of the multiple predicted signal source windows, thereby improving the efficiency and accuracy of menu bar control.
[0126] In some optional implementations of this embodiment, each signal source window is provided with a listener for listening to the menu bar display and hide instructions.
[0127] On this basis, after the menu bar display and hiding instruction is detected, when the menu bar display and hiding instruction is detected, a broadcast indicating that the menu bar display and hiding instruction is detected is generated, so that the listener set in each signal source window can listen to the broadcast.
[0128] Here, you can use BroadcastReceiver (broadcast receiver) or LocalBroadcastManager (local broadcast manager) to achieve the generation and sending of broadcasts. The difference between BroadcastReceiver and LocalBroadcastManager is that BroadcastReceiver is a global broadcast (all applications can receive it), while LocalBroadcastManager is an in-program broadcast (only its own application can receive it).
[0129] It can be understood that in the above optional implementation, by setting a listener for the signal source window, each signal source window can perceive the broadcast of the menu bar display and hide instructions, and display and hide its menu bar more timely accordingly.
[0130] In some optional implementations of this embodiment, the following steps may also be performed:
[0131] The first step is, when a signal source adding instruction is detected, taking the signal source window of the first added signal source indicated by the signal source adding instruction as the target signal source window, and determining the window control state of the target signal source window to be the first preset state.
[0132] The first added signal source indicates the signal source added by the signal source adding instruction, and the first preset state indicates that the target signal source window is not in a controlled state.
[0133] Here, the signal source adding instruction may include a signal source ID (Identity document). Therefore, the signal source address corresponding to the signal source ID may be determined according to the signal source ID included in the signal source adding instruction, and the encoded video stream of the corresponding signal source (including the first added signal source) may be obtained by accessing the signal source address and decoding it, thereby obtaining the picture content of the signal source (including the first added signal source).
[0134] In addition, when the target signal source window is in a controlled state, in response to a signal source adding instruction, a menu bar of the target signal source window may be displayed.
[0135] The second step is to hide the menu bar of the target signal source window in response to the signal source adding instruction.
[0136] Here, as a response to the signal source adding instruction, the menu bar of the target signal source window may be hidden.
[0137] It can be understood that in the above optional implementation, when the newly added signal source window displays the signal source picture, its menu bar can be hidden by default to increase the visible area and visualization level of the newly added signal source picture.
[0138] In some optional implementations of this embodiment, the following steps may also be performed:
[0139] The first step is to determine the window control state of the signal source window of the replaced signal source indicated by the signal source replacement instruction when a signal source replacement instruction is detected.
[0140] The second step is to determine the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source.
[0141] The second added signal source indicates the signal source added by the signal source replacement instruction.
[0142] Here, the signal source adding instruction may include a signal source ID (Identity document). Therefore, the signal source address corresponding to the signal source ID can be determined according to the signal source ID included in the signal source adding instruction, and the encoded video stream of the corresponding signal source (including the second added signal source) is obtained by accessing the signal source address and decoding it, thereby obtaining the picture content of the signal source (including the second added signal source).
[0143] Furthermore, when the target signal source window is in a controlled state, in response to a signal source replacement instruction, a menu bar of the target signal source window may be displayed.
[0144] The third step is to control the display or hiding of the menu bar of the signal source window of the second added signal source in response to the signal source replacement instruction according to the display or hiding status of the menu bar of the signal source window of the second added signal source.
[0145] Here, as a response to the signal source replacement instruction, the menu bar of the signal source window of the second added signal source can be controlled to be displayed or hidden according to the display state of the menu bar of the signal source window of the second added signal source. For example, if the menu bar of the signal source window of the second added signal source is in the display state, the menu bar of the signal source window of the second added signal source can be controlled to be displayed; if the menu bar of the signal source window of the second added signal source is in the hidden state, the menu bar of the signal source window of the second added signal source can be controlled to be hidden.
[0146] It can be understood that in the above optional implementation, the menu bar visibility status of the signal source window of the added signal source can be automatically determined based on the window control status of the signal source window of the replaced signal source.
[0147] In some application scenarios of the above optional implementations, the following method may be adopted to determine the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source:
[0148] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is in a controlled state, it is determined that the menu bar visibility state of the signal source window of the second added signal source represents a display state; when the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is not in a controlled state, it is determined that the menu bar visibility state of the signal source window of the second added signal source represents a hidden state.
[0149] It can be understood that in the above application scenario, for the newly added signal source screen determined by the replacement method, the menu bar corresponding to the new signal source window can be controlled to be permanent to prevent misoperation.
[0150] In the related art, the terminal screen can be divided into multiple areas (for example, dual screens), and each area can display different pictures. However, in the above scheme, users and other objects control each of the above areas separately. The above scheme of the present application can control multiple signal source windows as a whole, that is, control the display or hiding of the menu bars of multiple signal source windows at one time.
[0151] The menu bar display and hiding control method provided in the embodiment of the present application can detect a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates to display the menu bar or hide the menu bar. Then, when the menu bar display and hiding instruction indicates to hide the menu bar, the window control state of each signal source window among the multiple signal source windows currently displayed is determined, wherein the window control state indicates whether the signal source window is in a controlled state. Then, based on the window control state of each signal source window, the menu bar display and hiding state of each signal source window is determined, wherein the menu bar display and hiding state indicates whether the menu bar of the signal source window is in a displayed state or a hidden state. Subsequently, in response to the menu bar display and hiding instruction, according to the menu bar display and hiding state of each signal source window, the menu bars of multiple signal source windows can be controlled to be displayed or hidden at one time. Therefore, in the display scenario of multiple signal sources, the menu bar display and hiding instructions and the window control status of each signal source window can be used to control the display or hiding of the menu bar of each signal source window. In this way, the menu bars of multiple signal source windows can be controlled to be displayed or hidden more flexibly at one time. When hiding the menu bar, the occlusion range of the signal source window can be reduced, thereby increasing the visible range or visualization degree of the signal source window displaying the signal source picture, making full use of the limited display interface of the Android terminal.
[0152] Figure 2 A flowchart of another method for controlling the display and hiding of a menu bar provided in an embodiment of the present application. Figure 2 As shown, the method specifically includes:
[0153] Step 201, detecting a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates displaying the menu bar or hiding the menu bar.
[0154] In this embodiment, step 201 and Figure 1 Step 101 in the corresponding embodiment is basically the same and will not be described again here.
[0155] Step 202, when the menu bar display and hiding instruction indicates to hide the menu bar, determining the window control state of each signal source window among the multiple signal source windows currently displayed, wherein the window control state indicates whether the signal source window is in a controlled state.
[0156] In this embodiment, step 202 and Figure 1 Step 102 in the corresponding embodiment is basically the same and will not be described again here.
[0157] Step 203, based on the window control state of each signal source window, determining the menu bar visibility state of each signal source window, wherein the menu bar visibility state indicates whether the menu bar of the signal source window is in a display state or a hidden state.
[0158] In this embodiment, step 203 and Figure 1 Step 103 in the corresponding embodiment is basically the same and will not be described again here.
[0159] Step 204, in response to the menu bar display and hiding instruction, the menu bar of each signal source window is controlled to be displayed or hidden according to the display and hiding status of the menu bar of each signal source window.
[0160] In this embodiment, step 204 and Figure 1 Step 104 in the corresponding embodiment is basically the same and will not be described again here.
[0161] Step 205: When the menu bar display and hiding instruction indicates to display the menu bar, in response to the menu bar display and hiding instruction, display the menu bar of each signal source window currently displayed.
[0162] In this embodiment, when the menu bar display and hiding instruction indicates to display the menu bar, the menu bar of each signal source window currently displayed may be displayed as a response to the menu bar display and hiding instruction.
[0163] Here, displaying the menu bar of each signal source window currently displayed means adjusting only the signal source window of the menu bar that is not in the displayed state (not in the controlled state) to the displayed state, and not re-displaying the menu bar that is already in the displayed state (in the controlled state) (that is, for the menu bar that is already in the displayed state, it does not respond or process after the menu bar display and hide instructions are issued).
[0164] As an example, see Figure 3A , you can first add a listener for each signal source window to notify whether the menu bar is visible or invisible. After that, when a menu bar visibility operation is detected, it can be determined that a menu bar visibility command has been detected. If the menu bar visibility command indicates to display the menu bar, then the menu bar of the signal source window can be triggered to display. After the signal source window receives the display menu bar command, the menu bar can be displayed. If the menu bar visibility command indicates to hide the menu bar, then the menu bar of the signal source window can be triggered to hide. After the signal source window receives the hide menu bar command, it can be determined whether the signal source window is controlled. If the signal source window is in a controlled state, the menu bar hiding operation will not be performed, that is, the menu bar will be kept displayed; if the signal source window is not controlled, the menu bar can be hidden.
[0165] In addition, the command monitoring layer can monitor whether the menu bar is triggered to show or hide. When the show or hide switch indicates to show the menu bar, the logic processing layer does not need to make a judgment and directly displays the menu bar through the interface processing layer. When the show or hide switch indicates to hide the menu bar, the logic processing layer can determine whether the current window is being controlled. If it is being controlled, the menu bar is displayed through the interface processing layer. If it is not being controlled, the menu bar is hidden through the interface processing layer.
[0166] The menu bar can be displayed or hidden by triggering the display switch.
[0167] It should be noted that, in addition to the above contents, this embodiment may also include Figure 1 The corresponding technical features described in the corresponding embodiments are realized Figure 1 For details, please refer to Figure 1 For the sake of brevity, the relevant description is not repeated here.
[0168] The menu bar display and hiding control method provided in the embodiment of the present application can uniformly display the menu bars of each signal source window currently displayed when the menu bar display and hiding instruction indicates to display the menu bar, so as to display relevant information of each signal source window, such as the signal source name, etc.
[0169] Figure 4 A schematic diagram of the structure of a menu bar display and hiding control device provided in an embodiment of the present application. Specifically comprising:
[0170] A detection unit 401 is used to detect a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates to display the menu bar or hide the menu bar;
[0171] A first determining unit 402 is configured to determine a window control state of each signal source window of a plurality of signal source windows currently displayed when the menu bar display and hiding instruction indicates hiding the menu bar, wherein the window control state indicates whether the signal source window is in a controlled state;
[0172] The second determining unit 403 is used to determine the menu bar display state of each signal source window based on the window control state of each signal source window, wherein the menu bar display state indicates whether the menu bar of the signal source window is in a display state or a hidden state;
[0173] The first control unit 404 is used to control the display or hiding of the menu bar of each signal source window in response to the menu bar display and hiding instruction according to the display and hiding state of the menu bar of each signal source window.
[0174] In a possible implementation, determining the menu bar visibility state of each signal source window based on the window control state of each signal source window includes:
[0175] When the window control state of the signal source window indicates that the signal source window is in a controlled state, determining that the menu bar visibility state of the signal source window indicates a display state;
[0176] When the window control state of the signal source window indicates that the signal source window is not in a controlled state, determining that the menu bar display state of the signal source window indicates a hidden state.
[0177] In a possible implementation manner, each signal source window is provided with a listener for listening to the menu bar display and hide instructions; and
[0178] After the menu bar display and hiding instruction is detected, the device further includes:
[0179] A generating unit (not shown in the figure) is used to generate a broadcast indicating that the menu bar display and hide instruction is detected when the menu bar display and hide instruction is detected, so that the listener set in each signal source window can listen to the broadcast.
[0180] In a possible implementation, after detecting the menu bar display / hide instruction, the device further includes:
[0181] A display unit (not shown in the figure) is used for displaying the menu bar of each currently displayed signal source window in response to the menu bar display / hiding instruction when the menu bar display / hiding instruction indicates to display the menu bar.
[0182] In a possible implementation, the device further includes:
[0183] A third determining unit (not shown in the figure) is used for, when a signal source adding instruction is detected, taking a signal source window of a first added signal source indicated by the signal source adding instruction as a target signal source window, and determining that a window control state of the target signal source window is a first preset state, wherein the first added signal source indicates a signal source added by the signal source adding instruction, and the first preset state indicates that the target signal source window is not in a controlled state;
[0184] A hiding unit (not shown in the figure) is used to hide the menu bar of the target signal source window in response to the signal source adding instruction.
[0185] In a possible implementation, the device further includes:
[0186] a fourth determining unit (not shown in the figure), configured to determine, when a signal source replacement instruction is detected, a window control state of a signal source window of a replaced signal source indicated by the signal source replacement instruction;
[0187] a fifth determining unit (not shown in the figure), configured to determine, based on the window control state of the signal source window of the replaced signal source, a menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction, wherein the second added signal source indicates a signal source added by the signal source replacement instruction;
[0188] A second control unit (not shown in the figure) is used to control the display or hiding of the menu bar of the signal source window of the second added signal source in response to the signal source replacement instruction according to the display or hiding state of the menu bar of the signal source window of the second added signal source.
[0189] In a possible implementation, determining the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source includes:
[0190] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is in a controlled state, determining that the menu bar visibility state of the signal source window of the second added signal source indicates a display state;
[0191] When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is not in a controlled state, it is determined that the menu bar display state of the signal source window of the second added signal source indicates a hidden state.
[0192] In a possible implementation manner, determining the window control state of each signal source window among the multiple signal source windows currently displayed includes:
[0193] Determine whether a controlled key of each signal source window among the multiple signal source windows currently displayed is in an on state;
[0194] In the case where the controlled key is in the on state, determining the window control state of the signal source window indicates that the signal source window is in the controlled state;
[0195] In the case that the controlled key is not in the on state, determining the window control state of the signal source window indicates that the signal source window is not in the controlled state.
[0196] The menu bar display and hiding control device provided in this embodiment can be as follows: Figure 4 The menu bar display and hiding control device shown in can execute all the steps of the display and hiding control methods of each menu bar described above, thereby achieving the technical effects of the display and hiding control methods of each menu bar described above. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0197] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, Figure 5 The electronic device 500 shown includes: at least one processor 501, a memory 502, at least one network interface 504 and other user interfaces 503. The various components in the electronic device 500 are coupled together via a bus system 505. It is understood that the bus system 505 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 505 is not shown in FIG. Figure 5 Various buses are labeled as bus system 505 .
[0198] The user interface 503 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0199] It can be understood that the memory 502 in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct RAM bus random access memory (DRRAM). The memory 502 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0200] In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and an application program 5022 .
[0201] Among them, the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present application can be included in the application 5022.
[0202] In this embodiment, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application 5022, the processor 501 is used to execute the method steps provided by each method embodiment.
[0203] The method disclosed in the above embodiment of the present application can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 501. The above processor 501 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the above method in combination with its hardware.
[0204] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the above functions of the present application, or a combination thereof.
[0205] For software implementation, the technology described above in this article can be implemented by a unit that performs the functions described above in this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0206] The electronic device provided in this embodiment may be Figure 5 The electronic device shown in can execute all steps of the above-mentioned method for controlling the display and hiding of each menu bar, thereby achieving the technical effect of the above-mentioned method for controlling the display and hiding of each menu bar. Please refer to the above related description for details. For the sake of brevity, it will not be repeated here.
[0207] The embodiment of the present application also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0208] When one or more programs in the storage medium can be executed by one or more processors, the menu bar display and hiding control method executed on the electronic device side can be implemented.
[0209] The processor is used to execute the menu bar display and hiding control program stored in the memory to implement the following steps of the menu bar display and hiding control method executed on the electronic device side.
[0210] The professionals should also be further aware that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0211] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0212] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0213] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for controlling the display and hiding of a menu bar, characterized in that: The method comprises: Detecting a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates displaying the menu bar or hiding the menu bar; In the case where the menu bar display and hiding instruction indicates hiding the menu bar, determining a window control state of each signal source window among the multiple signal source windows currently displayed, wherein the window control state indicates whether the signal source window is in a controlled state; Determine the menu bar visibility state of each signal source window based on the window control state of each signal source window, wherein the menu bar visibility state indicates whether the menu bar of the signal source window is in a display state or a hidden state; In response to the menu bar display and hiding instruction, the menu bar of each signal source window is controlled to be displayed or hidden according to the display and hiding state of the menu bar of each signal source window.
2. The method according to claim 1, characterized in that The determining the menu bar visibility state of each signal source window based on the window control state of each signal source window includes: When the window control state of the signal source window indicates that the signal source window is in a controlled state, determining that the menu bar visibility state of the signal source window indicates a display state; When the window control state of the signal source window indicates that the signal source window is not in a controlled state, determining that the menu bar display state of the signal source window indicates a hidden state.
3. The method according to claim 1, characterized in that Each signal source window is provided with a listener for monitoring the menu bar display and hide instructions; as well as After detecting the menu bar display and hiding instruction, the method further includes: When the menu bar display / hide instruction is detected, a broadcast indicating that the menu bar display / hide instruction is detected is generated, so that the listener set in each signal source window can listen to the broadcast.
4. The method according to claim 1, characterized in that: After detecting the menu bar display and hiding instruction, the method further includes: In the case where the menu bar display and hiding instruction indicates to display the menu bar, in response to the menu bar display and hiding instruction, the menu bar of each signal source window currently displayed is displayed.
5. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In the case of detecting a signal source adding instruction, taking a signal source window of a first added signal source indicated by the signal source adding instruction as a target signal source window, and determining that a window control state of the target signal source window is a first preset state, wherein the first added signal source indicates a signal source added by the signal source adding instruction, and the first preset state indicates that the target signal source window is not in a controlled state; In response to the signal source adding instruction, hiding the menu bar of the target signal source window.
6. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In the case where a signal source replacement instruction is detected, determining a window control state of a signal source window of a replaced signal source indicated by the signal source replacement instruction; Determine the menu bar visibility state of the signal source window of the second added signal source indicated by the signal source replacement instruction based on the window control state of the signal source window of the replaced signal source, wherein the second added signal source indicates the signal source added by the signal source replacement instruction; In response to the signal source replacement instruction, the menu bar of the signal source window of the second added signal source is controlled to be displayed or hidden according to the display status of the menu bar of the signal source window of the second added signal source.
7. The method according to claim 6, characterized in that The determining, based on the window control state of the signal source window of the replaced signal source, the menu bar display state of the signal source window of the second added signal source indicated by the signal source replacement instruction comprises: When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is in a controlled state, determining that the menu bar visibility state of the signal source window of the second added signal source indicates a display state; When the window control state of the signal source window of the replaced signal source indicates that the signal source window of the replaced signal source is not in a controlled state, it is determined that the menu bar display state of the signal source window of the second added signal source indicates a hidden state.
8. The method according to any one of claims 1 to 4, characterized in that: The determining of the window control state of each signal source window among the multiple signal source windows currently displayed comprises: Determine whether a controlled key of each signal source window among the multiple signal source windows currently displayed is in an on state; In the case where the controlled key is in the on state, determining the window control state of the signal source window indicates that the signal source window is in the controlled state; In the case that the controlled key is not in the on state, determining the window control state of the signal source window indicates that the signal source window is not in the controlled state.
9. A menu bar display and hiding control device, characterized in that: The device comprises: A detection unit, used for detecting a menu bar display and hiding instruction, wherein the menu bar display and hiding instruction indicates displaying the menu bar or hiding the menu bar; A first determining unit is used to determine the window control state of each signal source window of the multiple signal source windows currently displayed when the menu bar display and hiding instruction indicates to hide the menu bar, wherein the window control state indicates whether the signal source window is in a controlled state; A second determining unit is used to determine the menu bar display state of each signal source window based on the window control state of each signal source window, wherein the menu bar display state indicates whether the menu bar of the signal source window is in a display state or a hidden state; The first control unit is used to control the display or hiding of the menu bar of each signal source window in response to the menu bar display and hiding instruction according to the display and hiding state of the menu bar of each signal source window.
10. An electronic device, characterized in that: include: Memory for storing computer programs; The processor is used to execute the computer program stored in the memory, and when the computer program is executed, the method for controlling the display and hiding of the menu bar of any one of claims 1 to 8 is implemented.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for controlling the display and hiding of the menu bar of any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method for controlling navigation bar of intelligent terminal to be hidden and displayed
CN108279827A
Tool bar display method and device and client device
CN109947326A
Multi-window interaction method and system, readable storage medium and electronic equipment
CN112947815A
Menu bar implementation method and system, computer program product and readable storage medium
CN113641277A
User interfaces for multiple displays
US20140365957A1
