pub unsafe fn create_rewrite_selection_dialog(&self) -> Option<(bool, String)> {

        // Create and configure the dialog.
        let dialog = QDialog::new_1a(&self.table_view_primary);
        dialog.set_window_title(&qtr("rewrite_selection_title"));
        dialog.set_modal(true);
        dialog.resize_2a(400, 50);
        let main_grid = create_grid_layout(dialog.static_upcast());

        // Create a little frame with some instructions.
        let instructions_frame = QGroupBox::from_q_string(&qtr("rewrite_selection_instructions_title"));
        let instructions_grid = create_grid_layout(instructions_frame.static_upcast());
        let instructions_label = QLabel::from_q_string(&qtr("rewrite_selection_instructions"));
        instructions_grid.add_widget_5a(& instructions_label, 0, 0, 1, 1);

        let is_math_op = QCheckBox::from_q_string(&qtr("rewrite_selection_is_math"));
        let rewrite_sequence_line_edit = QLineEdit::new();
        rewrite_sequence_line_edit.set_placeholder_text(&qtr("rewrite_selection_placeholder"));
        let accept_button = QPushButton::from_q_string(&qtr("rewrite_selection_accept"));

        main_grid.add_widget_5a(instructions_frame.into_ptr(), 0, 0, 1, 2);
        main_grid.add_widget_5a(&is_math_op, 1, 0, 1, 2);
        main_grid.add_widget_5a(&rewrite_sequence_line_edit, 2, 0, 1, 1);
        main_grid.add_widget_5a(&accept_button, 2, 1, 1, 1);

        accept_button.released().connect(dialog.slot_accept());

        if dialog.exec() == 1 {
            let new_text = rewrite_sequence_line_edit.text().to_std_string();
            if new_text.is_empty() { None } else { Some((is_math_op.is_checked(), new_text)) }
        } else { None }
    }
/// This function creates the entire "Rewrite selection" dialog for tables. It returns the rewriting sequence, or None.
This function creates the entire "Rewrite selection" dialog for tables. It returns the rewriting sequence, or None.
This function creates the entire " Rewrite selection " dialog for tables . It returns the rewriting sequence or None .
pub unsafe fn create_rewrite_selection_dialog(&self) -> Option<(bool, String)> {
        // Create and configure the dialog.
        let dialog = QDialog::new_1a(&self.table_view_primary);
        dialog.set_window_title(&qtr("rewrite_selection_title"));
        dialog.set_modal(true);
        dialog.resize_2a(400, 50);
        let main_grid = create_grid_layout(dialog.static_upcast());
        // Create a little frame with some instructions.
        let instructions_frame = QGroupBox::from_q_string(&qtr("rewrite_selection_instructions_title"));
        let instructions_grid = create_grid_layout(instructions_frame.static_upcast());
        let instructions_label = QLabel::from_q_string(&qtr("rewrite_selection_instructions"));
        instructions_grid.add_widget_5a(& instructions_label, 0, 0, 1, 1);
        let is_math_op = QCheckBox::from_q_string(&qtr("rewrite_selection_is_math"));
        let rewrite_sequence_line_edit = QLineEdit::new();
        rewrite_sequence_line_edit.set_placeholder_text(&qtr("rewrite_selection_placeholder"));
        let accept_button = QPushButton::from_q_string(&qtr("rewrite_selection_accept"));
        main_grid.add_widget_5a(instructions_frame.into_ptr(), 0, 0, 1, 2);
        main_grid.add_widget_5a(&is_math_op, 1, 0, 1, 2);
        main_grid.add_widget_5a(&rewrite_sequence_line_edit, 2, 0, 1, 1);
        main_grid.add_widget_5a(&accept_button, 2, 1, 1, 1);
        accept_button.released().connect(dialog.slot_accept());
        if dialog.exec() == 1 {
            let new_text = rewrite_sequence_line_edit.text().to_std_string();
            if new_text.is_empty() { None } else { Some((is_math_op.is_checked(), new_text)) }
        } else { None }
    }
pub unsafe fn create_rewrite_selection_dialog ( & self ) -> Option < ( bool , String ) > { // Create and configure the dialog. let dialog = QDialog :: new_1a ( & self . table_view_primary ) ; dialog . set_window_title ( & qtr ( " " ) ) ; dialog . set_modal ( true ) ; dialog . resize_2a ( 400 , 50 ) ; let main_grid = create_grid_layout ( dialog . static_upcast ( ) ) ; // Create a little frame with some instructions. let instructions_frame = QGroupBox :: from_q_string ( & qtr ( " " ) ) ; let instructions_grid = create_grid_layout ( instructions_frame . static_upcast ( ) ) ; let instructions_label = QLabel :: from_q_string ( & qtr ( " " ) ) ; instructions_grid . add_widget_5a ( & instructions_label , 0 , 0 , 1 , 1 ) ; let is_math_op = QCheckBox :: from_q_string ( & qtr ( " " ) ) ; let rewrite_sequence_line_edit = QLineEdit :: new ( ) ; rewrite_sequence_line_edit . set_placeholder_text ( & qtr ( " " ) ) ; let accept_button = QPushButton :: from_q_string ( & qtr ( " " ) ) ; main_grid . add_widget_5a ( instructions_frame . into_ptr ( ) , 0 , 0 , 1 , 2 ) ; main_grid . add_widget_5a ( & is_math_op , 1 , 0 , 1 , 2 ) ; main_grid . add_widget_5a ( & rewrite_sequence_line_edit , 2 , 0 , 1 , 1 ) ; main_grid . add_widget_5a ( & accept_button , 2 , 1 , 1 , 1 ) ; accept_button . released ( ) . connect ( dialog . slot_accept ( ) ) ; if dialog . exec ( ) == 1 { let new_text = rewrite_sequence_line_edit . text ( ) . to_std_string ( ) ; if new_text . is_empty ( ) { None } else { Some ( ( is_math_op . is_checked ( ) , new_text ) ) } } else { None } }
This function creates the entire "Rewrite selection" dialog for tables.
This function creates the entire " Rewrite selection " dialog for tables .
&self
&self