Browse Source

Added migration and firstrun params to the debug command

first run wizard is now packed, all content is now visible on GTK, but its too big

git-svn-id: http://svn.dmdirc.com/trunk@2656 00569f92-eb28-0410-84fd-f71c24880f
tags/0.5.5
Gregory Holmes 16 years ago
parent
commit
82b02f94c9

+ 7
- 0
src/com/dmdirc/commandparser/commands/global/Debug.java View File

22
 
22
 
23
 package com.dmdirc.commandparser.commands.global;
23
 package com.dmdirc.commandparser.commands.global;
24
 
24
 
25
+import com.dmdirc.Main;
25
 import com.dmdirc.Server;
26
 import com.dmdirc.Server;
26
 import com.dmdirc.commandparser.CommandManager;
27
 import com.dmdirc.commandparser.CommandManager;
27
 import com.dmdirc.commandparser.commands.GlobalCommand;
28
 import com.dmdirc.commandparser.commands.GlobalCommand;
85
             doServerInfo(origin, isSilent);
86
             doServerInfo(origin, isSilent);
86
         } else if ("benchmark".equals(args[0])) {
87
         } else if ("benchmark".equals(args[0])) {
87
             doBenchmark(origin, isSilent);
88
             doBenchmark(origin, isSilent);
89
+        } else if ("firstrun".equals(args[0])) {
90
+            Main.getUI().showFirstRunWizard();
91
+        } else if ("migration".equals(args[0])) {
92
+            Main.getUI().showMigrationWizard();
88
         } else {
93
         } else {
89
             sendLine(origin, isSilent, FORMAT_ERROR, "Unknown debug action.");
94
             sendLine(origin, isSilent, FORMAT_ERROR, "Unknown debug action.");
90
         }
95
         }
333
             res.add("forceupdate");
338
             res.add("forceupdate");
334
             res.add("serverinfo");
339
             res.add("serverinfo");
335
             res.add("benchmark");
340
             res.add("benchmark");
341
+            res.add("firstrun");
342
+            res.add("migration");
336
         } else if (arg == 1 && "error".equals(previousArgs.get(0))) {
343
         } else if (arg == 1 && "error".equals(previousArgs.get(0))) {
337
             res.add("user");
344
             res.add("user");
338
             res.add("app");
345
             res.add("app");

+ 1
- 1
src/com/dmdirc/ui/swing/dialogs/wizard/firstrun/SwingFirstRunWizard.java View File

173
                 new WizardDialog(firstRun ? "Setup wizard" : "Migration wizard",
173
                 new WizardDialog(firstRun ? "Setup wizard" : "Migration wizard",
174
                 steps, this, true, (MainFrame) Main.getUI().getMainWindow());
174
                 steps, this, true, (MainFrame) Main.getUI().getMainWindow());
175
 
175
 
176
-        wizardDialog.setPreferredSize(new Dimension(400, 350));
176
+        wizardDialog.pack();
177
 
177
 
178
         wizardDialog.display();
178
         wizardDialog.display();
179
     }
179
     }

Loading…
Cancel
Save