CN115454368A - Client control method and device for double-display-screen operation console - Google Patents

Client control method and device for double-display-screen operation console Download PDF

Info

Publication number
CN115454368A
CN115454368A CN202211165444.1A CN202211165444A CN115454368A CN 115454368 A CN115454368 A CN 115454368A CN 202211165444 A CN202211165444 A CN 202211165444A CN 115454368 A CN115454368 A CN 115454368A
Authority
CN
China
Prior art keywords
menu
window
display
linker
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211165444.1A
Other languages
Chinese (zh)
Inventor
周思远
王玉琳
陈倩
许晔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yangzhou Wanfang Technology Co ltd
Original Assignee
Yangzhou Wanfang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yangzhou Wanfang Technology Co ltd filed Critical Yangzhou Wanfang Technology Co ltd
Priority to CN202211165444.1A priority Critical patent/CN115454368A/en
Publication of CN115454368A publication Critical patent/CN115454368A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention belongs to the field of information systems, and provides a client control method and a device for a double-display-screen operating platform, aiming at solving the problems that a client based on the operating platform cannot give full play to the advantages of double display screens of the operating platform and cannot provide a friendly and easy-to-use operating window for a user, wherein the device is used for: detecting the number of display screens connected with an operation table during starting; opening one or two client interfaces according to the number of the operation table connected with the display screens; and receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar. According to the method and the device, the number of the operation tables can be self-adapted, 1 to 2 client interfaces are opened according to the number of the display devices, and a menu click bar is provided, so that display information of a main screen and an auxiliary screen can be switched randomly, a friendly and easy-to-use operation window is provided for a user, and convenience of the user in using the double-display-screen operation table is improved.

Description

Client control method and device for double-display-screen operation console
Technical Field
The invention belongs to the field of information systems, and particularly relates to a client control method and device for a double-display-screen operating console.
Background
With the rapid development of soft and hard technologies such as a domestic display card, an operation console, a server, cloud computing and the like, a 'cloud + end' application mode gradually becomes a mainstream use mode of a domestic information system, a server end of the domestic information system is uniformly managed, scheduled and arranged by a cloud platform, the stability and the high efficiency of the server end are guaranteed, and a client end of the domestic information system based on the domestic operation console is used as an important human-computer interaction window, but the problems of weak self-adaption capability, poor expansibility, complicated code repetition, non-uniform interface, difficult secondary development and the like exist, the advantages of double display screens of the domestic operation console cannot be fully exerted, and a friendly and easy-to-use operation window cannot be provided for a user.
Disclosure of Invention
The embodiment of the application provides a client control method and device for a dual-display-screen operation console, the number of operation consoles connected with display equipment can be self-adapted, 1-2 client interfaces are opened according to the number of the display equipment, a menu click bar is provided, display information of a main screen and an auxiliary screen can be switched randomly, a friendly and easy-to-use operation window is provided for a user, and convenience of the user in using the dual-display-screen operation console is improved.
In a first aspect, the present application provides a client control device for a dual-display console, where the device is configured to: detecting the number of the display screens connected with the operation table during starting; opening one or two client interfaces according to the number of the operation table connecting display screens; and receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar.
The device comprises a controller, a layout device, a linker, a service logic interface and a communication library;
the controller is used for initializing and constructing a service logic interface, controlling a main screen linker menu and controlling an auxiliary screen linker menu;
the layout device is positioned between the business logic interface and the controller, a layout device window is created and initialized according to the online quantity of the operation table connecting display screens, and the business logic interface is embedded in the layout device window;
the linker is used for constructing a linker menu, menu items contained in the linker menu correspond to the service logic interfaces one by one, and based on the window of the layout device, the linker receives an instruction for clicking the menu items in the linker menu and switches the service logic interfaces of the main screen and the auxiliary screen according to the received instruction;
the business logic interface is used for reserving actual logic functions for user development;
the communication library is used for communication with other software.
Wherein the controller of the apparatus is to: constructing N business logic interfaces; acquiring the number of display screens connected with an operation platform through a system function; initializing a layout device window and a linker menu according to the number of the operation table connecting display screens; setting a first service logic interface as an open window, and synchronizing the state of a menu through a signal slot mechanism;
the controller is further configured to control the home screen linker menu:
receiving an instruction of clicking a menu item in a main screen linker menu;
if the operation desk is connected with only one display device, directly switching the business logic interface of the main screen layout device window; if the operation desk is connected with two display devices, judging whether an auxiliary screen layout device window is opened or not, if the auxiliary screen layout device window is not opened, opening the auxiliary screen layout device window and switching the service logic interface to the auxiliary screen layout device window; if the auxiliary screen layout device window is opened, switching the service logic interface to the auxiliary screen layout device window;
and after the service logic interface is switched, switching the state of the menu of the linker through the signal slot.
Wherein the controller of the device is configured to control the auxiliary screen linker menu:
receiving an instruction of clicking a menu item in an auxiliary screen linker menu;
judging whether a main screen layout device window is opened or not, if the main screen layout device window is not opened, opening the main screen layout device window and switching a business logic interface to the main screen layout device window; if the main screen layout device window is opened, switching the business logic interface to the main screen layout device window;
and after the business logic interface is switched, switching the state of the linker through the signal slot.
Wherein the placer of the apparatus is configured to:
setting window layout, background pictures, window minimization and hidden navigation bars, reading configuration files and setting titles of clients;
calling a system function to acquire the attribute of the clicked QToolButton button, traversing all menu buttons to match the clicked buttons, modifying the state of the menu buttons, and calling a corresponding signal to trigger a slot function to switch a service logic interface;
the mouse moves to the leftmost frame of the window, a mouse movement display event is triggered, a slot function opens a menu switching bar, the state of the menu bar is reset, the current business logic interface is obtained, the state of the menu is modified, the mouse leaves the leftmost frame, and a signal slot triggers and hides the menu bar;
clicking an exit button by a mouse to trigger a mouse click event, removing a service logic interface on a window of a layout device, and sending a closing signal to enter a slot function to realize a function; judging whether the operation platform is accessed to two display devices, if only one display device is accessed, directly quitting the program; if the two display devices are accessed, judging whether the layout device opens two service logic interfaces, if only one service logic interface is opened, closing and releasing the window; if two business logic interfaces are opened, the two business logic interfaces need to be closed at the same time and the window needs to be released.
Wherein the linker of the apparatus is to:
a linker menu bar button binding signal slot; a user clicks a menu button to trigger a click event, a slot function sends a page switching signal to a layout device window, and the layout device window switches a service logic interface after receiving a message; switching a business logic interface on a layout device window where a current menu bar is located; judging whether the operation platform is connected with a plurality of display devices, and if only one display device is connected, directly changing the menu state of the main screen; if the operation table is connected with two display devices, the states of the menu bars of the main screen and the auxiliary screen are synchronously changed.
Wherein the linker of the apparatus is to:
initializing the state of a menu button; judging whether the operation platform is connected with a plurality of display devices, and if only one display device is connected, directly changing the menu state of the main screen; if the operation console is connected with two display devices, a synchronization signal is sent to the layout device window, the layout device window sends the synchronization signal to the linker menu of the non-click screen, and the menu button states of the two screens are synchronized.
In a second aspect, the present application provides a client control method for a dual-display console, including: detecting the number of display screens connected with an operation table during starting; opening one or two client interfaces according to the number of the operation table connecting display screens; and receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used for implementing the steps of any one of the above methods when executed by a processor.
In a fourth aspect, the present application provides a client, including the client control device of any one of the above dual-display console.
The client control method and the client control device for the double-display-screen operating console have the following beneficial effects:
according to the method and the device, the number of the operation tables can be self-adapted to the number of the display devices, 1 to 2 client interfaces are opened according to the number of the display devices, and the menu click bar is provided, so that the display information of the main screen and the auxiliary screen can be switched randomly, a friendly and easy-to-use operation window is provided for a user, and the convenience of using the double-display-screen operation tables by the user is improved.
Drawings
Fig. 1 is a schematic structural diagram of a client control device of a dual-display console according to an embodiment of the present application;
fig. 2 is a schematic flowchart of an interface initialization by the controller in the embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a process for controlling a home screen link menu by a controller according to an embodiment of the present disclosure;
FIG. 4 is a diagram illustrating an exit flow of a layout window in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a flow of a link acquisition button state in an embodiment of the present application;
fig. 6 is a flow of sending information by a communication library in the embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a process of setting an astronomical time by an astronomical time plugin according to an embodiment of the present application;
fig. 8 is a flowchart illustrating a client control method for a dual-display console according to an embodiment of the present application.
Detailed Description
The present application is further described with reference to the following figures and examples.
The following description provides examples, and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements described without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as appropriate. For example, the described methods may be performed in an order different than the order described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.
Example one
The application provides a client control device of two display screen operation panels, the device is used for: detecting the number of the display screens connected with the operation table during starting; opening one or two client interfaces according to the number of the operation table connected with the display screens; and receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar.
According to the method and the device, the number of the operation tables connected with the display equipment can be self-adapted, a friendly and easy-to-use operation window is provided for a user, and the convenience of the user in using the double-display-screen operation table is improved.
Example two
The method and the system provide a software framework for secondary development of the self-adaptive single-screen and double-screen client main framework and the universal extension plug-in library for the user, and facilitate the user to freely write logic codes in the framework according to specific actual requirements to complete secondary development of the codes. The framework provided by the application can be self-adaptive to the number of the operation platforms connected with the display equipment when being started, 1 to 2 client interfaces are opened according to the number of the display equipment, and a menu click bar is provided, so that display information of a main screen and an auxiliary screen can be switched randomly.
As an example, the solution of the present application is based on a domestic console, which includes two display devices, but the present application may also be based on other environments. The method and the system support the development of the cross-platform QT (C + +) language and mainly comprise a self-adaptive single-screen and double-screen client framework and an extension plug-in. As shown in fig. 1, the adaptive single-and-dual-screen client framework includes a controller 201, a placer 203, a linker 202, a business logic interface 204, and a communication library 205.
The controller 201, as a main program entry of the client framework, plays a role of task planning, and has the main functions of: and initializing and constructing a service logic interface according to the set parameters, realizing the assignment of a plurality of service logic interfaces and information flows among the service logic interfaces and controlling the skipping of the service logic interfaces.
The layout device 203 automatically creates and initializes the layout device windows according to the online number of the display screens connected with the operation console, the size of the display screens, the resolution ratio and the like, if only one display screen exists, one layout device window is initialized, if two display screens exist, two layout device windows are constructed, and the business logic interface is embedded in the layout device windows. Meanwhile, the layout arrangement of common elements such as a linker menu, a title bar and the like in the layout device window is realized.
The menu items contained in the linker menu are in one-to-one correspondence with the service logic interfaces, and the switching of the service logic interfaces is realized by clicking the menu items in the linker menu based on the layout device window. The linker 202 constructs a linker menu, so that on one hand, the position interchange function of the main screen and the auxiliary screen is realized, on the other hand, the same service logic interface cannot be repeatedly opened by associating the service logic interfaces opened on the main screen and the auxiliary screen during double screens, and the linker avoids the repeated opening of the service logic interface in a non-clicking manner by limiting menu options of the main screen and the auxiliary screen, so that the error report of a program is avoided.
Business logic interface 204: the method is characterized in that actual logic functions are reserved for users to develop, 5 blank business logic interfaces are reserved by default, and the interfaces can be increased or decreased by the users according to the requirements of the functions. The communication library 205 realizes message intercommunication between the client software framework and other software such as business services, and the client realizes the receiving and sending of messages by constructing open types of the communication library and calling public methods of the types, thereby meeting the communication requirements of client software.
The expansion plug-in comprises a login frame, a prompt frame, a form popup frame, astronomical time, an annular progress bar, a pie chart, a log record and the like. The login box provides a login interface window, and a user name, a password input box and a basic function of verifying the legality are added in the window. Prompting box function: the prompt box takes QWIdget class as a base class, the layout is carried out on a basic window, the open configurable interfaces comprise interfaces such as prompting pictures, prompting words, displaying cancel buttons, determining button words and canceling button words, and after the prompt box is built by a user, configuration items can be completed according to logic requirements and displayed. The form popup box encapsulates functions of form display data, including functions of a search box and page turning of the form data, and top focusing of a form interface.
The astronomical time can dynamically check the current system time, is accurate to the year, month, day, hour, minute, second and week, acquires the time from the current operation table system and updates the time once a second; the annular progress bar supports three styles, namely an annular style, a pie style and a line style, and has the main functions of automatic centered drawing and display, clockwise and counterclockwise trend setting, starting progress position setting, range value setting, various colors setting, current value setting and the like. The pie chart is used for drawing information such as the dividing number of the pie chart, the color of the dividing blocks of the pie chart, the percentage of the dividing modules, characters displayed by the dividing modules, the number of icons marked on each module and the like through the numerical value of the set list; and the log record provides functions of log recording, saving and the like during the operation of the client according to the log configuration.
This is further described below in conjunction with the appended drawings.
As shown in fig. 1, the basic framework provided by the present application implements automatic matching of single-screen and double-screen software by controlling a multi-layer window interface, and mainly includes a controller 201, a layout device 203, a linker 202, and a service logic interface 204, each component is initialized to form a corresponding window layer, and information is mutually transmitted between each layer through a signal slot mechanism, so that multi-layer association and mutual cooperation are achieved, thereby implementing a service function.
The controller 201 is mainly divided into the following three functional steps when implementing its functions.
(1) Initializing an interface: and initializing the function by realizing the flow of the user-defined initWidgetInfo () interface. As shown in fig. 2, N service logic interfaces are constructed, N is 5 by default, and the number of connected display screens on the console is obtained through a system function Qapplication:: desktop screencount (); initializing a layout device window and a linker menu according to the return value of the function (namely the number of the display screens connected with the operation platform); and setting the first service logic interface as an open window, and synchronizing the state of the menu through a signal slot mechanism.
(2) Control home screen linker menu: as shown in fig. 3, the controller implements control of the linker menu by implementing an interface custom menu _ page1 () flow. And (3) directly switching the business logic interface of the window of the main screen layout device by clicking a 'main screen switching menu button (menu item)' trigger event in the function and combining the number of the display devices of the operation console if the operation console is connected with only one display device. And if the operation console is connected with the two display devices, judging whether the auxiliary screen layout device window is opened, if not, opening the auxiliary screen layout device window and switching the service logic interface to the auxiliary screen layout device window. And if the auxiliary screen is opened, switching the business logic interface to an auxiliary screen layout machine window. And after the service logic interface is switched, switching the state of the menu of the linker through the signal slot. Signal slots are one communication mechanism for Qt.
(3) Controlling the auxiliary screen linker menu:
the controller realizes the control of the menu of the linker by realizing the flow of the interface user-defined menuClicked _ page2 (). And judging whether the main screen layout device window is opened or not by clicking a trigger event of 'auxiliary screen switching menu button (menu item)' in the function, and if the main screen layout device window is not opened, opening the main screen layout device window and switching the business logic interface to the main screen layout device window. If the main screen layout device window is opened, the business logic interface is switched to the main screen layout device window. And after the service logic interface is switched, switching the state of the linker through the signal slot.
The layout device 203 is located between the service logic interface and the controller, and can directly manage the service logic interface, and implement widget function switching through the stackedwidge class, and the program is mainly divided into the following four function steps when implementing its function.
(1) Initializing an interface: the function sets window layout, background pictures, window minimization and hidden navigation bars by realizing a user-defined initForm () interface, reads configuration files and sets the title of a client.
(2) The menu switching function: and clicking a button in the function, realizing the user-defined button click () interface process, calling a system (QToolButton) sender () function to acquire the attribute of the clicked QToolButton button, traversing all menu buttons, matching the clicked button, modifying the state of the clicked button, and calling a corresponding signal to trigger a slot function to switch a service logic interface.
(3) Display menu bar function: the method comprises the steps that a user-defined showtitleWidget () interface process is realized inside a function, a mouse moves to the leftmost frame of a window to trigger the mouse to move a display event, a menu switching bar is opened by a slot function, the state of a menu bar is reset, the state of a current business logic interface modification menu is obtained, the mouse leaves the leftmost side, and a signal slot triggers a hidden menu bar.
(4) Exiting the program function:
as shown in fig. 4, the function inside rewrites a system closeEvent (QCloseEvent × e) to close a window event, a mouse clicks an exit button to trigger a mouse click event, a service logic interface on a window of a layout device is removed, and a close signal is sent to enter a slot function to implement a function. Judging whether the operation platform is accessed to two display devices, if only one display device is accessed, directly exiting the program; if the two display devices are accessed, judging whether the layout device opens two service logic interfaces, if only one service logic interface is opened, closing and releasing the window; if two business logic interfaces are opened, the two business logic interfaces need to be closed at the same time and the window needs to be released.
The linker 202 firstly completes the construction of a linker menu on the combined layout of a plurality of buttons on a widget, and then realizes the actual logic of clicking a menu item and the state of obtaining the menu item through the linker menu, and the specific flow is as follows:
(1) Click menu button function:
the linker menu bar button binds the signal slot internally to the function by implementing a custom on _ btn _ title _ clicked () event. The user clicks a menu button to trigger a click event, the slot function sends a page switching signal to the window of the layout device, and the window of the layout device switches a service logic interface after receiving the message. Switching a business logic interface on a layout device window where a current menu bar is located, judging whether an operation platform is connected with a plurality of display devices, and directly changing the menu state of a main screen if only one display device is connected; if the operation table is connected with two display devices, the states of the menu bars of the main screen and the auxiliary screen are synchronously changed.
(2) Button state acquisition function: as shown in FIG. 5, the state of the menu button is initialized by the function inside obtaining the state of the button by implementing the custom gettBntnStatus () flow. Judging whether the operation platform is connected with a plurality of display devices, and if only one display device is connected, directly changing the state of a main screen menu; if the operation console is connected with two display devices, a synchronization signal is sent to the layout device window, the layout device window sends the signal to the linker menu of the non-click screen, and the menu button states of the two screens are synchronized.
The communication library is mainly divided into the following two functional steps when realizing the functions thereof.
(1) As shown in fig. 6, the send message function: and configuring an xml file of a communication library including communication IP (Internet protocol), port information and the like by realizing a custom sendMsg () flow inside the function. And organizing an information packet to be sent in a program, and calling a sending interface of the communication library. If the sending is successful, a prompt message is received through a successful callback function; if the transmission fails, starting a third retransmission mechanism, and receiving a failure prompt message through a failure callback function when the third transmission fails; and successfully calling back the function to return the prompt message when the transmission is successful once in the third retransmission process.
(2) The message receiving function:
and configuring an xml file of a communication library including a communication IP (Internet protocol), port information and the like by realizing a user-defined receiveSuccesddeCallback () flow inside the function. The code realizes reading the xml file so as to realize binding the port number, opening udp monitoring, receiving the monitored information stream, screening the information to judge whether the receiver is the software, and confirming that the information sent to the software is processed by the information stream.
The business logic interface is a function reserved for users to develop actual logic through software at a business layer. 5 blank business logic interfaces are reserved by default, and a user can increase or decrease the interfaces according to the actual application requirements.
(1) The service logic interface realizes a signal slot associated with the linker, and the starting function of the service logic interface is triggered by clicking a menu of the link layer.
(2) And acquiring a window starting service signal in the function to realize a user-defined getFreshSignal () process, sending a window opening signal by the linker, verifying whether a current service logic interface is opened after the window receives a message, and opening a timer to start service logic after the verification is passed.
The extension plug-in mainly provides some public classes for users, and the users can directly call the tool classes to realize service logic, and can also realize more complex specific logic functions through simple modification.
The login box provides a login interface window, and a user name and password input box and a back-end basic function of verifying the legality are added in the window.
(1) Initializing a window: the function realizes setting window layout, setting background pictures, reading configuration files, setting the titles of the clients and setting button styles by realizing a user-defined loadPage () function process.
(2) The login function comprises the following steps: the function verifies whether the user name and the password of the input box are legal or not and whether the user name and the password are null or not by triggering a click button self-defining on _ pushButton _ clicked () event. Skipping to a service logic interface through verification; otherwise, the input is prompted to be illegal, and the login fails. And clicking an exit button, popping up an exit confirmation dialog box to prevent misoperation, and closing the login interface to exit the software after the user selects the exit confirmation.
The prompt box takes QWIDGET class as a base class, the layout is carried out on a basic window, the open configurable interfaces comprise interfaces such as 'prompt pictures', 'prompt words', 'whether to display cancel buttons', 'confirm button words', 'cancel button words' and the like, and after the prompt box is built by a user, configuration items can be completed according to logic requirements and displayed.
(1) Initializing the window function: and the function realizes the establishment of UI controls including a background picture, a prompt icon, a click button, prompt characters and the like by realizing a user-defined MsgWidget () function process, reasonably arranges the controls on the window controls, and binds signal slot functions for the controls to realize the specific function logic of the controls.
(2) And (3) configuration of reserved parameters: parameter configuration is realized inside the function by realizing the functions of self-defined setBoxInformation (QString title, QString tips, QString str, boules Hidden, QString okText and QString candText), namely title name, prompting picture, prompting character, whether to display a cancel button, determining button character and canceling button character.
The form popup box encapsulates functions of form display data, including functions of a search box and page turning of the form data, and top focusing of a form interface.
(1) Initializing a window: setting window layout including information such as forms, buttons, input frames and prompt frames by realizing a user-defined initWidget () function process in the function; binding a signal slot function for the UI control; the draggable effect of the form popup frame is increased.
(2) Loading table data: the function realizes the loading and refreshing of data by realizing a self-defined showTableInfo () function, a table is emptied firstly after the data is obtained, a program calculates the length of the data to page, and the total page number and the currently displayed data information are calculated respectively; and associating the page turning button with the calculated total page number, and switching the displayed data according to the current page number.
The astronomical time can dynamically check the current system time, is accurate to the time of year, month, day, hour, minute, second and week, acquires the time from the current operation table system and updates the time once a second.
(1) Initializing a window: the function is internally provided with a user-defined initWidget (), UI controls including background pictures, time characters and the like are constructed, the controls are reasonably arranged on the window controls, and signal slot functions are bound for the controls to realize specific functional logics.
(2) Setting display time: as shown in fig. 7, the function internally constructs a timer by implementing the custom setsysTime (), and sets the refresh period of the timer. And calling a self function of the Qt by a slot function triggered by the timer to acquire system time, comparing the acquired system time with a displayed time value, and if the values are consistent and displayed, not changing, or modifying time display.
The annular progress bar supports three styles, namely a circular ring style, a pie style and a line style. The main functions are automatic centered drawing and displaying, clockwise and counterclockwise trends can be set, the starting progress position can be set, the range value can be set, various colors can be set, the current value can be set and the like.
(1) Drawing a progress bar: the method comprises the steps that a user-defined paintEvent (QPaintEvent) is realized inside a function to draw an outer frame, a background, a data color set, a central point, a centered picture and a current value;
(2) Setting configuration items:
setRange (): set range value, setMinValue ()/setMaxValue (): set max/min, setValue (): set target value, setprclaision (): setting accuracy, several digits after decimal point, setoutlinepwidth (): setting the width of the outer frame, setDataPenWidth (): set data text width, setClockwise (): setting a progress rotating direction;
(3) Obtaining a current value: getValue (): obtain current value, getMinValue (): get the minimum, getMaxValue (): maximum value, getrecession (): acquisition accuracy, several digits after the decimal point, getNullPosition (): acquiring the position of the minimum value, getOutlineWidth (): and obtaining the width of the outer frame.
The pie chart can be used for drawing information such as the dividing number of the pie chart, the color of the dividing blocks of the pie chart, the percentage of the dividing modules, characters displayed by the dividing modules, the number of icon labels of each module and the like through setting the numerical value of the list. Drawing a pie chart: drawing a pie chart by realizing self-defined paintEvent (QPaintEvent) in the function, drawing by using a drawing board function of Qt, firstly, setting the coordinate of the circle center, and drawing a circle according to the radius; secondly, calculating the length of the list through the transmitted list, cutting the circle into corresponding blocks according to the numerical value of the list, and setting background colors for the divided sectors after the division is finished; and then, respectively drawing a label column, a label name, a label quantity and a label icon for the fan shape.
The log records utilize the common class of the file to write a log record class. The user can configure the address recorded by the log file, the size of each file and the like through the configuration file. The client runtime can record the information needing to be recorded into the log sequentially. The function realizes functions by recording a log self-defined Record _ Loger () interface flow, and reads the configuration of the log from a configuration file init.
The application provides a self-adaptive single-double screen client framework based on a domestic operating platform and a plug-in extension method. The client frame can be self-adaptive to the number of the display screens connected with the operation console when being started, 1 to 2 client interfaces are opened according to the number of the display screens, a menu click bar is provided, and display information of a main screen and an auxiliary screen can be switched at will. Based on a client framework and some common extension plug-ins, a user can freely write logic codes in the framework according to specific actual requirements, and secondary development of the codes is completed.
The method and the device provide a friendly and easy-to-use operation window for the user, and improve the convenience of using the double-display-screen operation console by the user.
As shown in fig. 8, the present application provides a client control method for a dual-display console, including: s101, detecting the number of display screens connected with an operation table during starting; s103, opening one or two client interfaces according to the number of the display screens connected with the operation table; and S105, receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar.
In the present application, an embodiment of a client control method for a dual-display console is substantially similar to an embodiment of a client control device for a dual-display console, and reference is made to the description of the embodiment of the client control device for a dual-display console for related points.
The application also provides a client, which comprises the client control device of any one of the double-display-screen operation tables.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the program is executed by a processor to realize the steps of the client control method of the dual-display-screen operating console. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical function division, and other division manners may be available in actual implementation.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A client control apparatus for a dual-display console, the apparatus being configured to: detecting the number of the display screens connected with the operation table during starting; opening one or two client interfaces according to the number of the operation table connecting display screens; and receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar.
2. The client control device of the dual-display console of claim 1, wherein the device comprises a controller, a layout, a linker, a business logic interface and a communication library;
the controller is used for initializing and constructing a service logic interface, controlling a main screen linker menu and controlling an auxiliary screen linker menu;
the layout device is positioned between the business logic interface and the controller, a layout device window is created and initialized according to the online quantity of the operation table connecting display screens, and the business logic interface is embedded in the layout device window;
the linker is used for constructing a linker menu, menu items contained in the linker menu correspond to the service logic interfaces one by one, and based on the distributor window, an instruction for clicking the menu items in the linker menu is received, and the service logic interfaces of the main screen and the auxiliary screen are switched according to the received instruction;
the business logic interface is used for reserving actual logic functions for user development;
the communication library is used for communication with other software.
3. The client control device of the dual-display console according to claim 1 or 2, wherein the controller of the device is configured to: constructing N business logic interfaces; acquiring the number of display screens connected with an operation platform through a system function; initializing a layout device window and a linker menu according to the number of the operation table connecting display screens; setting a first service logic interface as an open window, and synchronizing the state of a menu through a signal slot mechanism;
the controller is further configured to control the home screen linker menu:
receiving an instruction of clicking a menu item in a main screen linker menu;
if the operation desk is connected with only one display device, directly switching the business logic interface of the main screen layout device window; if the operation console is connected with two display devices, judging whether an auxiliary screen layout device window is opened or not, if not, opening the auxiliary screen layout device window and switching the service logic interface to the auxiliary screen layout device window; if the auxiliary screen layout device window is opened, switching the service logic interface to the auxiliary screen layout device window;
and after the service logic interface is switched, switching the state of the menu of the linker through the signal slot.
4. The client control device of the dual-display console according to claim 1 or 2, wherein the controller of the device is configured to control the auxiliary screen linker menu:
receiving an instruction of clicking a menu item in an auxiliary screen linker menu;
judging whether a main screen layout device window is opened or not, if the main screen layout device window is not opened, opening the main screen layout device window and switching a business logic interface to the main screen layout device window; if the main screen layout device window is opened, switching the business logic interface to the main screen layout device window;
and after the service logic interface is switched, switching the state of the linker through the signal slot.
5. Client control device of a dual-screen console according to claim 1 or 2, characterized in that the device's placer is adapted to:
setting window layout, background pictures, window minimization and hidden navigation bars, reading configuration files and setting the title of a client;
calling a system function to acquire the attribute of the clicked QToolButton button, traversing all menu buttons to match the clicked buttons, modifying the state of the menu buttons, and calling a corresponding signal to trigger a slot function to switch a service logic interface;
the mouse moves to the leftmost frame of the window, a mouse movement display event is triggered, a slot function opens a menu switching bar, the state of the menu bar is reset, the current business logic interface is obtained, the state of the menu is modified, the mouse leaves the leftmost frame, and a signal slot triggers and hides the menu bar;
clicking an exit button by a mouse to trigger a mouse click event, removing a service logic interface on a window of a layout device, and sending a closing signal to enter a slot function to realize a function; judging whether the operation platform is accessed to two display devices, if only one display device is accessed, directly quitting the program; if the two display devices are accessed, judging whether the layout device opens two service logic interfaces, if only one service logic interface is opened, closing and releasing the window; if two service logic interfaces are opened, the two service logic interfaces need to be closed at the same time and the window needs to be released.
6. Client control device of a dual-display console according to claim 1 or 2, characterized in that the linker of the device is configured to:
a linker menu bar button binding signal slot; a user clicks a menu button to trigger a click event, a slot function sends a page switching signal to a layout device window, and the layout device window switches a service logic interface after receiving a message; switching a business logic interface on a layout device window where a current menu bar is located; judging whether the operation platform is connected with a plurality of display devices, and if only one display device is connected, directly changing the state of a main screen menu; if the operation table is connected with two display devices, the states of the menu bars of the main screen and the auxiliary screen are synchronously changed.
7. Client control device of a dual-display console according to claim 1 or 2, characterized in that the linker of the device is configured to:
initializing the state of a menu button; judging whether the operation platform is connected with a plurality of display devices, and if only one display device is connected, directly changing the menu state of the main screen; if the operation console is connected with two display devices, a synchronization signal is sent to the layout device window, the layout device window sends the synchronization signal to a linker menu of a non-click screen, and the menu button states of the two screens are synchronized.
8. A client control method of a double-display-screen operation console is characterized by comprising the following steps: detecting the number of the display screens connected with the operation table during starting; opening one or two client interfaces according to the number of the display screens connected with the operation table; and receiving an instruction of clicking a menu bar input by a user, and switching display information of the main screen and the auxiliary screen according to the instruction of clicking the menu bar.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the steps of claim 8.
10. A client comprising the client control device of the dual-display console of claim 1 or 2.
CN202211165444.1A 2022-09-23 2022-09-23 Client control method and device for double-display-screen operation console Pending CN115454368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211165444.1A CN115454368A (en) 2022-09-23 2022-09-23 Client control method and device for double-display-screen operation console

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211165444.1A CN115454368A (en) 2022-09-23 2022-09-23 Client control method and device for double-display-screen operation console

Publications (1)

Publication Number Publication Date
CN115454368A true CN115454368A (en) 2022-12-09

Family

ID=84306307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211165444.1A Pending CN115454368A (en) 2022-09-23 2022-09-23 Client control method and device for double-display-screen operation console

Country Status (1)

Country Link
CN (1) CN115454368A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704222A (en) * 2017-08-28 2018-02-16 远光软件股份有限公司 A kind of method and device of automatic shuangping san invoices and vouchers
CN111475163A (en) * 2020-06-22 2020-07-31 腾讯科技(深圳)有限公司 Method, device and equipment for generating code file of view template and storage medium
US20200372206A1 (en) * 2019-05-20 2020-11-26 Wix.Com Ltd. System and method providing responsive editing and viewing, integrating hierarchical fluid components and dynamic layout
CN112099751A (en) * 2020-09-25 2020-12-18 深圳市创维群欣安防科技股份有限公司 Double-screen asynchronous display processing method and device and double-screen display intelligent terminal
CN112764563A (en) * 2020-12-31 2021-05-07 北京科银京成技术有限公司 Multi-screen control method, device and system, electronic equipment and storage medium
US20220276773A1 (en) * 2020-04-29 2022-09-01 Boe Technology Group Co., Ltd. Video display method for slicing screen, video display device, computer apparatus, and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704222A (en) * 2017-08-28 2018-02-16 远光软件股份有限公司 A kind of method and device of automatic shuangping san invoices and vouchers
US20200372206A1 (en) * 2019-05-20 2020-11-26 Wix.Com Ltd. System and method providing responsive editing and viewing, integrating hierarchical fluid components and dynamic layout
US20220276773A1 (en) * 2020-04-29 2022-09-01 Boe Technology Group Co., Ltd. Video display method for slicing screen, video display device, computer apparatus, and medium
CN111475163A (en) * 2020-06-22 2020-07-31 腾讯科技(深圳)有限公司 Method, device and equipment for generating code file of view template and storage medium
CN112099751A (en) * 2020-09-25 2020-12-18 深圳市创维群欣安防科技股份有限公司 Double-screen asynchronous display processing method and device and double-screen display intelligent terminal
CN112764563A (en) * 2020-12-31 2021-05-07 北京科银京成技术有限公司 Multi-screen control method, device and system, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈静波;钱立兵;钟权;: "基于Qt的雷达情报双屏显示技术", 空军预警学院学报, no. 02, 15 April 2017 (2017-04-15), pages 102 - 104 *

Similar Documents

Publication Publication Date Title
US20140351722A1 (en) User interface elements for multiple displays
US9269110B2 (en) System and method for interface and interaction with internet applications
US20190327198A1 (en) Messaging apparatus, system and method
CN102141893B (en) Large-breadth interactive desktop-oriented multi-user window system
CN103797460A (en) Application control in electronic devices
CN104540027A (en) Multimedia display interaction control system under multi-screen environment
US20070094360A1 (en) Control options for instant message display and notification
WO2005109176A1 (en) Window display system, window display method, program development support device, and server device
CN113663325B (en) Team creation method, joining method, device and storage medium in virtual scene
CN109800135A (en) A kind of information processing method and terminal
TW201523419A (en) Window interface display method and system
KR101631287B1 (en) Method and device for management of chat rooms
CN112445564A (en) Interface display method, electronic device and computer readable storage medium
US7340716B1 (en) User interface substitution
US20070286030A1 (en) Timing system and method
CN111399811A (en) Method, device and equipment for developing visual page and storage medium
CN115454368A (en) Client control method and device for double-display-screen operation console
WO2024066381A1 (en) Group chat message management method and apparatus, and electronic device
US20090106644A1 (en) MODIFYING PROJECTED IMAGE AREA (mask) FOR DISPLAY
CN112274910A (en) Virtual key configuration method, virtual key method and related device
CN110413192A (en) Shortcut key response method, device, equipment and storage medium
CN110569079A (en) Method and device for driving front end based on configuration
CN111913776B (en) Content display method, device and equipment
CN102236510A (en) Method and equipment for controlling instant messaging software by utilizing super bar
CN104220976B (en) The soft keyboard implementation method and terminal of terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination