Procházet zdrojové kódy

Merge branch 'development' into aboutbox

Conflicts:
	src/typica.cpp
Neal Wilson před 11 roky
rodič
revize
9718bea618
2 změnil soubory, kde provedl 2064 přidání a 2056 odebrání
  1. 2047
    2045
      src/typica.cpp
  2. 17
    11
      src/typica.w

+ 2047
- 2045
src/typica.cpp
Diff nebyl zobrazen, protože je příliš veliký
Zobrazit soubor


+ 17
- 11
src/typica.w Zobrazit soubor

746
 either determine your rights with regard to these libraries or modify the
746
 either determine your rights with regard to these libraries or modify the
747
 program to remove them.
747
 program to remove them.
748
 
748
 
749
-The following is an overview of the structure of \pn:
750
-
751
-@d PROGRAM_NAME "Typica"
749
+As CWEB generates files with the wrong extension, we leave the default
750
+generated file empty.
752
 
751
 
753
 @c
752
 @c
753
+/* Nothing to see here. */
754
+
755
+@ The following is an overview of the structure of \pn:
756
+
757
+@(typica.cpp@>=
758
+#define PROGRAM_NAME "Typica"
759
+
754
 @<Header files to include@>@/
760
 @<Header files to include@>@/
755
 @<Class declarations@>@/
761
 @<Class declarations@>@/
756
 @<Function prototypes for scripting@>@/
762
 @<Function prototypes for scripting@>@/
7909
 measurements are able to simply append new line segments to the list.
7915
 measurements are able to simply append new line segments to the list.
7910
 
7916
 
7911
 @<GraphView Implementation@>=
7917
 @<GraphView Implementation@>=
7918
+#define FULLTIMETOINT(t) (t.msec() + (t.second() * 1000) +  (t.minute() * 60 * 1000))
7919
+
7912
 void GraphView::newMeasurement(Measurement measure, int tempcolumn)@/
7920
 void GraphView::newMeasurement(Measurement measure, int tempcolumn)@/
7913
 {@/
7921
 {@/
7914
 	double offset = 0;
7922
 	double offset = 0;
7954
 
7962
 
7955
 In the case of the first measurement,
7963
 In the case of the first measurement,
7956
 
7964
 
7957
-@d FULLTIMETOINT(t) (t.msec() + (t.second() * 1000) + (t.minute() * 60 * 1000))
7958
-
7959
 @<Handle the first measurement@>=
7965
 @<Handle the first measurement@>=
7960
 int x = FULLTIMETOINT(measure.time())/1000;
7966
 int x = FULLTIMETOINT(measure.time())/1000;
7961
 prevPoints->insert(tempcolumn, QPointF(x, measure.temperature()));
7967
 prevPoints->insert(tempcolumn, QPointF(x, measure.temperature()));
9910
 number of seconds in a base time, and the difference between the two. The
9916
 number of seconds in a base time, and the difference between the two. The
9911
 value loaded into oseconds could probably be cached.
9917
 value loaded into oseconds could probably be cached.
9912
 
9918
 
9913
-@d TIMETOINT(t) ((t.hour() * 60 * 60) + (t.minute() * 60) + (t.second()))
9914
-
9915
 @<Load seconds since base time into r@>=
9919
 @<Load seconds since base time into r@>=
9920
+#define TIMETOINT(t) ((t.hour() * 60 * 60) + (t.minute() * 60) + (t.second()))
9921
+
9916
 time = QTime::currentTime();
9922
 time = QTime::currentTime();
9917
 cseconds = TIMETOINT(time);
9923
 cseconds = TIMETOINT(time);
9918
 oseconds = TIMETOINT(relative);
9924
 oseconds = TIMETOINT(relative);
9951
 timer starts. The clock that triggers time updates must also be started. The
9957
 timer starts. The clock that triggers time updates must also be started. The
9952
 timer also needs to reset its value if that behavior is desired.
9958
 timer also needs to reset its value if that behavior is desired.
9953
 
9959
 
9954
-@d TIMESUBTRACT(t1, t2) (t1.addSecs(-(TIMETOINT(t2))).addMSecs(-t2.msec()))
9955
-
9956
 @<TimerDisplay Implementation@>=
9960
 @<TimerDisplay Implementation@>=
9961
+#define TIMESUBTRACT(t1, t2) (t1.addSecs(-(TIMETOINT(t2))).addSecs(-t2.msec()))
9962
+
9957
 void TimerDisplay::startTimer()@t\2\2@>@/
9963
 void TimerDisplay::startTimer()@t\2\2@>@/
9958
 {@t\1@>@/
9964
 {@t\1@>@/
9959
 	if(!running)@/
9965
 	if(!running)@/
11676
 responsibilities of |QApplication|. In addition to declaring the class, we also
11682
 responsibilities of |QApplication|. In addition to declaring the class, we also
11677
 define a macro that returns the |Application| instance.
11683
 define a macro that returns the |Application| instance.
11678
 
11684
 
11679
-@d AppInstance (qobject_cast<@[Application *@]>(qApp))
11680
-
11681
 @<Class declarations@>=
11685
 @<Class declarations@>=
11686
+#define AppInstance (qobject_cast<@[Application *@]>(qApp))
11687
+
11682
 class NodeInserter;
11688
 class NodeInserter;
11683
 class DeviceTreeModel;
11689
 class DeviceTreeModel;
11684
 class Application : public QApplication@/
11690
 class Application : public QApplication@/

Loading…
Zrušit
Uložit