Forráskód Böngészése

Implemented Increase Indent, Decrease Indent, and set tab width to 2.

(Warning:  During testing, I got an unexplained crash when I clicked on a file of a project just opened.  I don't know why it happened because I've been unable to reproduce the problem.)


git-svn-id: file:///var/svn/tigccpp/trunk@477 9552661e-59e3-4036-b4f2-dbe53926924f
joeyadams 18 éve
szülő
commit
30e02c076b
1 módosított fájl, 5 hozzáadás és 2 törlés
  1. 5 2
      ktigcc/mainform.ui.h

+ 5 - 2
ktigcc/mainform.ui.h

@@ -897,6 +897,7 @@ void *MainForm::createView(const QString &fileName, const QString &fileText, QLi
   newView->getDoc()->setHlMode(i);
   // Set options.
   dynWordWrapInterface(newView)->setDynWordWrap(FALSE);
+  newView->setTabWidth(2);
   connect(newView,SIGNAL(cursorPositionChanged()),this,SLOT(current_view_cursorPositionChanged()));
   connect(newView->getDoc(),SIGNAL(textChanged()),this,SLOT(current_view_textChanged()));
   connect(newView->getDoc(),SIGNAL(undoChanged()),this,SLOT(current_view_undoChanged()));
@@ -1416,12 +1417,14 @@ void MainForm::editSelectAll()
 
 void MainForm::editIncreaseIndent()
 {
-  
+  if (CURRENT_VIEW)
+    CURRENT_VIEW->indent();
 }
 
 void MainForm::editDecreaseIndent()
 {
-  
+  if (CURRENT_VIEW)
+    CURRENT_VIEW->unIndent();
 }
 
 void MainForm::findFind()