Form1 Have Fun! Willem van Kerkhof GNU GPL v2+ 0.2.1 Form1 0 0 698 342 5 5 250 0 0 0 300 0 Rails helper Application @commands.setVisible(false) @RailsRoot.setText(@exec("pwd")) unnamed 11 6 TabWidget1 tab s&cript/generate unnamed 11 6 commands Commands @if(@ComboBox1.currentItem == 1 || @ComboBox1.currentItem == 3) @commands.setVisible(true) @endif @if(@ComboBox1.currentItem != 1 && @ComboBox1.currentItem != 3) @commands.setVisible(false) @endif unnamed 11 6 command5 @widgetText command2 @widgetText command3 @widgetText command4 @widgetText command1 @widgetText command6 @widgetText Label1 Name Konsole1 #!/bin/bash ruby script/generate @ComboBox1.item(@ComboBox1.currentItem) @LineEdit1 @command1 @command2 @command3 @command4 @command5 @command6 #!/bin/bash echo "changing to directory @RailsRoot " cd @RailsRoot pwd if [[ `pwd` == @RailsRoot ]] then echo "executing ruby script/generate @ComboBox1.item(@ComboBox1.currentItem) @LineEdit1 @command1 @command2 @command3 @command4 @command5 @command6 " ruby script/generate @ComboBox1.item(@ComboBox1.currentItem) @LineEdit1 @command1 @command2 @command3 @command4 @command5 @command6 2>&1 echo "DONE." else echo "Could not cd - please check your Rails Root setting!" fi migration scaffold model controller ComboBox1 @widgetText Label2 0 5 0 0 Type LineEdit1 1 0 0 0 name @widgetText Spacer1 Vertical Expanding 0 16 ExecButton1 5 1 0 0 &GENERATE @Konsole1.execute tab R&ake unnamed 11 6 Label3 Version VersionSelect @widgetText ExecButton3 &Migrate @if(@VersionSelect != "0") @setGlobal(RAKE_ACTION, "db:migrate VERSION=" + @VersionSelect) @endif @if(@VersionSelect == "0") @setGlobal(RAKE_ACTION, "db:migrate") @endif @Konsole2.execute LoadFixturesButton L&oad Fixtures @setGlobal(RAKE_ACTION, "db:fixtures:load") @Konsole2.execute DumpSchemaButton D&ump Schema @setGlobal(RAKE_ACTION, "db:schema:dump") @Konsole2.execute PrepareTestButton Prepare Test @setGlobal(RAKE_ACTION, "db:test:prepare") @Konsole2.execute ClearLogsButton Clear Lo&gs @setGlobal(RAKE_ACTION, "log:clear") @Konsole2.execute ClearSessionsButton Clear Temp Data @setGlobal(RAKE_ACTION, "tmp:clear") @Konsole2.execute RunTestsButton Ru&n Tests @setGlobal(RAKE_ACTION, "test") @Konsole2.execute Konsole2 #!/bin/bash rake @global(RAKE_ACTION) #!/bin/bash echo "changing to directory @RailsRoot " cd @RailsRoot pwd if [[ `pwd` == @RailsRoot ]] then echo "executing RAKE @global(RAKE_ACTION)" rake @global(RAKE_ACTION) 2>&1 echo "DONE." else echo "Could not cd - please check your Rails Root setting!" fi Spacer3 Vertical Expanding 0 61 Label4 Rails Root RailsRoot /home/www/ @widgetText ComboBox1 widgetTextChanged(const QString&) commands populate() Form1 widgetOpened() Form1 adjustSize() RailsRoot TabWidget1 LineEdit1 ComboBox1 command1 command2 command3 command4 command5 command6 ExecButton1 Konsole1 ExecButton3 VersionSelect LoadFixturesButton DumpSchemaButton PrepareTestButton ClearLogsButton ClearSessionsButton RunTestsButton Konsole2