E-Log Post Modal¶
              ElogPostModal(parent=None, image_bytes=None)
¶
    
              Bases: QDialog
Modal widget for creating a new E-Log entry.
This widget provides a comprehensive interface for creating a new E-Log entry.
Source code in trace/widgets/elog_post_modal.py
                    26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85  |  | 
            on_submit()
¶
    Handles the submission of the dialog. This method is called when the user clicks the 'Send' button. It retrieves the inputs, validates, and closes the dialog.
Source code in trace/widgets/elog_post_modal.py
              87 88 89 90 91 92 93 94 95 96 97 98 99 100  |  | 
            get_inputs()
¶
    Returns the inputs from the dialog as a tuple.
Returns:
| Type | Description | 
|---|---|
                  tuple[str, str, list[str], bool]
             | 
            
               The inputs from the dialog (title, body, logbooks, attach_config)  | 
          
Source code in trace/widgets/elog_post_modal.py
              102 103 104 105 106 107 108 109 110 111 112 113 114  |  | 
            maybe_create(parent=None, image_bytes=None)
  
      classmethod
  
¶
    Creates and shows the ElogPostModal dialog if the logbook list can be populated. If the logbook list cannot be populated, an error message is shown and None is returned.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                parent
             | 
            
                  QWidget
             | 
            
               The parent widget  | 
            
                  None
             | 
          
                image_bytes
             | 
            
                  bytes
             | 
            
               The image bytes to be attached to the entry  | 
            
                  None
             | 
          
Returns:
| Type | Description | 
|---|---|
                  ElogPostModal | None
             | 
            
               The ElogPostModal dialog if the logbook list can be populated, None otherwise  | 
          
Source code in trace/widgets/elog_post_modal.py
              116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145  |  |