anapencere.cpp 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #include "anapencere.h"
  2. #include "ui_anapencere.h"
  3. #include "QProcess"
  4. #include "QMessageBox"
  5. #include "QLineEdit"
  6. AnaPencere::AnaPencere(QWidget *parent) :
  7. QMainWindow(parent),
  8. ui(new Ui::AnaPencere)
  9. {
  10. ui->setupUi(this);
  11. }
  12. AnaPencere::~AnaPencere()
  13. {
  14. delete ui;
  15. }
  16. void AnaPencere::on_commandLinkButton_clicked()
  17. {
  18. if (ui->AramaComboBox->currentText() == "Altta")
  19. {
  20. QProcess::execute("gsettings set com.solus-project.brisk-menu search-position bottom");
  21. }
  22. else
  23. {
  24. QProcess::execute("gsettings set com.solus-project.brisk-menu search-position top");
  25. }
  26. if (ui->PencereComboBox->currentText() == "Klasik")
  27. {
  28. QProcess::execute("gsettings set com.solus-project.brisk-menu window-type 'classic'");
  29. }
  30. else
  31. {
  32. QProcess::execute("gsettings set com.solus-project.brisk-menu window-type 'dash'");
  33. }
  34. if (ui->TemaComboBox->currentText() == "Açık")
  35. {
  36. QProcess::execute("gsettings set com.solus-project.brisk-menu dark-theme false");
  37. }
  38. else
  39. {
  40. QProcess::execute("gsettings set com.solus-project.brisk-menu dark-theme true");
  41. }
  42. if (ui->FareComboBox->currentText() == "Evet")
  43. {
  44. QProcess::execute("gsettings set com.solus-project.brisk-menu rollover-activate true");
  45. }
  46. else
  47. {
  48. QProcess::execute("gsettings set com.solus-project.brisk-menu rollover-activate false");
  49. }
  50. if (ui->EtiketVarComboBox->currentText() == "Evet")
  51. {
  52. QProcess::execute("gsettings set com.solus-project.brisk-menu label-visible true");
  53. }
  54. else
  55. {
  56. QProcess::execute("gsettings set com.solus-project.brisk-menu label-visible false");
  57. }
  58. QString etiket = ui->lineEdit->text();
  59. QProcess::execute("gsettings set com.solus-project.brisk-menu label-text '"+etiket+"'");
  60. QString logoyol1 = ui->logoyol->text();
  61. ui->menulogo->setPixmap(QPixmap(logoyol1) );
  62. QProcess::execute("sudo cp -f "+logoyol1+" /usr/share/pixmaps/milis-logo.png");
  63. QProcess::execute("sudo sed -i s/^Icon=start-here/Icon=milis-logo/g /usr/share/mate-panel/applets/com.solus_project.brisk.BriskMenu.mate-panel-applet");
  64. }
  65. void AnaPencere::on_commandLinkButton_2_clicked()
  66. {
  67. QProcess::execute("gsettings set com.solus-project.brisk-menu search-position 'bottom'");
  68. QProcess::execute("gsettings set com.solus-project.brisk-menu window-type 'classic'");
  69. QProcess::execute("gsettings set com.solus-project.brisk-menu dark-theme false");
  70. QProcess::execute("gsettings set com.solus-project.brisk-menu rollover-activate true");
  71. QProcess::execute("gsettings set com.solus-project.brisk-menu label-visible true");
  72. QProcess::execute("gsettings set com.solus-project.brisk-menu label-text 'Menu'");
  73. }
  74. void AnaPencere::on_commandLinkButton_3_clicked()
  75. {
  76. QMessageBox::information(this, "Birmen","Brisk Menü Ayarlama Uygulaması \nCihan Alkan Tarafından Hazırlanmıştır.");
  77. }