[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kfte
From:       Roberto Alsina <ralsina () unl ! edu ! ar>
Date:       2003-03-23 23:57:26
[Download RAW message or body]

CVS commit by ralsina: 

What was packaged as 0.7.0


  M +2 -2      config/main.fte   1.12
  M +17 -4     src/g_kde.cpp   1.35
  M +1 -0      src/g_kde2.h   1.3


--- kfte/config/main.fte  #1.11:1.12
@@ -103,5 +103,5 @@
 #    WindowFont = "8x13";
 #    WindowFont = "9x15";
-#    WindowFont = "9x15";
+     WindowFont = "9x15";
 %if(UI_KB)
     WindowFont = "*-fixed-bold-*-15*,*-fixed-bold-*-16*";
@@ -110,5 +110,5 @@
 # with font names like 9x15 (actually we can, but this would need
 # highly skilled users :))
-     WindowFont = "10x20";
+#     WindowFont = "10x20";
 %endif
 }

--- kfte/src/g_kde.cpp  #1.34:1.35
@@ -621,5 +621,5 @@ ToolBarItem tools[] =
     */
     //This is done reading the numbers from the menus
-    { 65802, "fileopen", "Open File" },
+    { ExFileOpen, "fileopen", "Open File" },
     { 65690, "filesave", "Save File" },
     { 65697, "fileclose", "Close File" },
@@ -640,5 +640,5 @@ void QEFrame::createToolBar()
 {
 
-    for (int i = 0; i < sizeof(tools)/sizeof(tools[0]); i++)
+    for (unsigned int i = 0; i < sizeof(tools)/sizeof(tools[0]); i++)
     {
         if (tools[i].cmd)
@@ -1091,5 +1091,5 @@ int GViewPeer::ConSetSize(int X, int Y) 
     unsigned char *p;
     int i;
-    unsigned int MX, MY;
+    int MX, MY;
 
     p = NewBuffer = (unsigned char *) malloc(X * Y * 2);
@@ -2305,5 +2305,5 @@ char ConGetDrawChar(int index) {
     static char tab[] = "\x0D\x0C\x0E\x0B\x12\x19____+>\x1F\x01\x12 ";
 
-    assert(index >= 0 && index < strlen(tab));
+    assert(index >= 0 && index < (int)strlen(tab));
 
     return tab[index];
@@ -2351,4 +2351,17 @@ QString DCOPBuffer::file()
     else return QString ("");
 
+}
+
+bool DCOPBuffer::openFile(QString name)
+{
+    EView *V;
+
+    V= ActiveView;
+
+    bool res=FileLoad(cfAppend,name.latin1(),0,V);
+    if (res)
+        V->UpdateView();
+
+    return res;
 }
 

--- kfte/src/g_kde2.h  #1.2:1.3
@@ -18,4 +18,5 @@ k_dcop:
     QStrList listFiles();
     QString listFiles2();
+    bool openFile (QString filename);
 private:
     QString fname;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic