@@ -379,26 +379,26 @@ void MPSMainWindow::load_dialog_state (const QString& title, const MPSTransformI
379379/* * BEGIN utility methods **/
380380void MPSMainWindow::connect_events ()
381381{
382- connect (m_files_model, SIGNAL (directoryLoaded (QString)), this , SLOT (on_files_model_directory_loaded (QString)));
382+ connect (m_files_model, SIGNAL (directoryLoaded (QString)), this , SLOT (on_filesModelDirectoryLoaded (QString)));
383383
384384 // dialog events
385- connect (m_dlg_trans_cmb_condition, SIGNAL (currentIndexChanged (int )), this , SLOT (on_cmb_conditions_index_changed (int )));
386- connect (m_dlg_trans_cmb_action, SIGNAL (currentIndexChanged (int )), this , SLOT (on_cmb_actions_index_changed (int )));
387- connect (m_dlg_trans_edit_cond_text, SIGNAL (textEdited (const QString&)), this , SLOT (on_edit_cond_text_text_edited (const QString&)));
388- connect (m_dlg_trans_edit_act_text_1, SIGNAL (textEdited (const QString&)), this , SLOT (on_edit_act_text_text_edited (QString)));
389- connect (m_dlg_trans_edit_pos, SIGNAL (textChanged (QString)), this , SLOT (on_edit_act_pos_text_changed (const QString&)));
390- connect (m_dlg_trans_btn_close, SIGNAL (clicked ()), this , SLOT (on_btn_close_clicked ()));
391- connect (m_dlg_trans_btn_save, SIGNAL (clicked ()), this , SLOT (on_btn_save_clicked ()));
385+ connect (m_dlg_trans_cmb_condition, SIGNAL (currentIndexChanged (int )), this , SLOT (on_cmbConditionsIndexChanged (int )));
386+ connect (m_dlg_trans_cmb_action, SIGNAL (currentIndexChanged (int )), this , SLOT (on_cmbActionsIndexChanged (int )));
387+ connect (m_dlg_trans_edit_cond_text, SIGNAL (textEdited (const QString&)), this , SLOT (on_editCondTextTextEdited (const QString&)));
388+ connect (m_dlg_trans_edit_act_text_1, SIGNAL (textEdited (const QString&)), this , SLOT (on_editActionsTextTextEdited (QString)));
389+ connect (m_dlg_trans_edit_pos, SIGNAL (textChanged (QString)), this , SLOT (on_editActionsPosTextChanged (const QString&)));
390+ connect (m_dlg_trans_btn_close, SIGNAL (clicked ()), this , SLOT (on_btnCloseClicked ()));
391+ connect (m_dlg_trans_btn_save, SIGNAL (clicked ()), this , SLOT (on_btnSaveClicked ()));
392392
393393 // connect scroll bars' motion
394394 QScrollBar* files_vert_scroll = m_gui_obj.lstFiles ->verticalScrollBar ();
395395 QScrollBar* files_horiz_scroll = m_gui_obj.lstFiles ->horizontalScrollBar ();
396396 QScrollBar* rename_to_vert_scroll = m_gui_obj.lstRenames ->verticalScrollBar ();
397397 QScrollBar* rename_to_horiz_scroll = m_gui_obj.lstRenames ->horizontalScrollBar ();
398- connect (files_vert_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lst_files_vertical_slider_value_changed (int )));
399- connect (files_horiz_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lst_files_horizontal_slider_value_changed (int )));
400- connect (rename_to_vert_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lst_rename_to_vertical_slider_value_changed (int )));
401- connect (rename_to_horiz_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lst_rename_to_horizontal_slider_value_changed (int )));
398+ connect (files_vert_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_listFilesVerticalSliderValueChanged (int )));
399+ connect (files_horiz_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lstFilesHorizontalSliderValueChanged (int )));
400+ connect (rename_to_vert_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lstRenameToVerticalSliderValueChanged (int )));
401+ connect (rename_to_horiz_scroll, SIGNAL (valueChanged (int )), this , SLOT (on_lstRenameToHorizontalSliderValueChanged (int )));
402402}
403403
404404void MPSMainWindow::create_view_models ()
@@ -431,6 +431,13 @@ void MPSMainWindow::create_view_models ()
431431
432432 m_gui_obj.lstFiles ->setModel (m_files_model);
433433 m_gui_obj.lstFiles ->setEditTriggers (QAbstractItemView::NoEditTriggers);
434+
435+ // load last path
436+ /* xQString lastPath = "C:\\Users\\USER\\Desktop\\Dan\\NOVA_MUZICA";
437+ QModelIndex index = m_folders_model->setRootPath(lastPath);
438+ m_gui_obj.tvFolders->setRootIndex(index);
439+ */
440+
434441}
435442
436443QString MPSMainWindow::get_drive_label (const QString& drive)
@@ -451,7 +458,7 @@ QString MPSMainWindow::get_drive_label(const QString& drive)
451458 256 );
452459 if (!ret) return QString (" " );
453460 QString name = QString::fromUtf16 ((const ushort*) szVolumeName);
454- name.trimmed ();
461+ ( void ) name.trimmed ();
455462
456463 return name;
457464}
@@ -1118,7 +1125,7 @@ void MPSMainWindow::on_lstFiles_pressed(const QModelIndex &index)
11181125 on_current_file_changed (index);
11191126}
11201127
1121- void MPSMainWindow::on_files_model_directory_loaded (QString)
1128+ void MPSMainWindow::on_filesModelDirectoryLoaded (QString)
11221129{
11231130 // sort the model before filling in the renames' list
11241131 m_files_model->sort (0 );
@@ -1129,22 +1136,22 @@ void MPSMainWindow::on_files_model_directory_loaded (QString)
11291136 m_gui_obj.lstRenames ->setEnabled (true );
11301137}
11311138
1132- void MPSMainWindow::on_lst_files_vertical_slider_value_changed (int value)
1139+ void MPSMainWindow::on_listFilesVerticalSliderValueChanged (int value)
11331140{
11341141 m_gui_obj.lstRenames ->verticalScrollBar ()->setValue (value);
11351142}
11361143
1137- void MPSMainWindow::on_lst_files_horizontal_slider_value_changed (int value)
1144+ void MPSMainWindow::on_lstFilesHorizontalSliderValueChanged (int value)
11381145{
11391146 m_gui_obj.lstRenames ->horizontalScrollBar ()->setValue (value);
11401147}
11411148
1142- void MPSMainWindow::on_lst_rename_to_vertical_slider_value_changed (int value)
1149+ void MPSMainWindow::on_lstRenameToVerticalSliderValueChanged (int value)
11431150{
11441151 m_gui_obj.lstFiles ->verticalScrollBar ()->setValue (value);
11451152}
11461153
1147- void MPSMainWindow::on_lst_rename_to_horizontal_slider_value_changed (int value)
1154+ void MPSMainWindow::on_lstRenameToHorizontalSliderValueChanged (int value)
11481155{
11491156 m_gui_obj.lstFiles ->horizontalScrollBar ()->setValue (value);
11501157}
@@ -1159,7 +1166,7 @@ void MPSMainWindow::on_btnAddTransform_clicked()
11591166 m_dlg_trans->show ();
11601167}
11611168
1162- void MPSMainWindow::on_cmb_conditions_index_changed (int idx)
1169+ void MPSMainWindow::on_cmbConditionsIndexChanged (int idx)
11631170{
11641171 bool is_cond_equals = (idx == m_core_engine.get_available_condition_index (KConditionEqualsID));
11651172 m_dlg_trans_edit_cond_text->setVisible (is_cond_equals);
@@ -1179,7 +1186,7 @@ void MPSMainWindow::on_cmb_conditions_index_changed (int idx)
11791186 m_dlg_trans_edit_cond_text->setFocus ();
11801187}
11811188
1182- void MPSMainWindow::on_cmb_actions_index_changed (int idx)
1189+ void MPSMainWindow::on_cmbActionsIndexChanged (int idx)
11831190{
11841191 // action text
11851192 int idx_act_set_sep = m_core_engine.get_available_action_index (KActionSetSeparatorsID);
@@ -1214,23 +1221,23 @@ void MPSMainWindow::on_cmb_actions_index_changed(int idx)
12141221 m_dlg_trans_edit_act_text_1->setFocus ();
12151222}
12161223
1217- void MPSMainWindow::on_edit_cond_text_text_edited (const QString& text)
1224+ void MPSMainWindow::on_editCondTextTextEdited (const QString& text)
12181225{
12191226 Q_UNUSED (text);
12201227 QString msg;
12211228 m_dlg_trans_btn_save->setEnabled (can_enable_save_button (msg));
12221229 update_dialog_message (msg);
12231230}
12241231
1225- void MPSMainWindow::on_edit_act_text_text_edited (const QString& text)
1232+ void MPSMainWindow::on_editActionsTextTextEdited (const QString& text)
12261233{
12271234 Q_UNUSED (text);
12281235 QString msg;
12291236 m_dlg_trans_btn_save->setEnabled (can_enable_save_button (msg));
12301237 update_dialog_message (msg);
12311238}
12321239
1233- void MPSMainWindow::on_edit_act_pos_text_changed (const QString& text)
1240+ void MPSMainWindow::on_editActionsPosTextChanged (const QString& text)
12341241{
12351242 Q_UNUSED (text);
12361243 QString msg;
@@ -1245,7 +1252,7 @@ void MPSMainWindow::update_dialog_message (const QString& msg)
12451252 m_dlg_trans_lbl_msg->show ();
12461253}
12471254
1248- void MPSMainWindow::on_btn_save_clicked ()
1255+ void MPSMainWindow::on_btnSaveClicked ()
12491256{
12501257 // construct the information out of the dialog state
12511258 MPSTransformInfo info;
@@ -1289,7 +1296,7 @@ void MPSMainWindow::on_btn_save_clicked()
12891296 m_dlg_trans->close ();
12901297}
12911298
1292- void MPSMainWindow::on_btn_close_clicked ()
1299+ void MPSMainWindow::on_btnCloseClicked ()
12931300{
12941301 m_dlg_trans->close ();
12951302}
0 commit comments