mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 06:38:05 +01:00
removed testtext.c
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
AUTOMAKE_OPTIONS = no-dependencies
|
AUTOMAKE_OPTIONS = no-dependencies
|
||||||
|
|
||||||
noinst_PROGRAMS = wtest wmquery wmfile testmywidget testcolorpanel #testtext
|
noinst_PROGRAMS = wtest wmquery wmfile testmywidget testcolorpanel
|
||||||
|
|
||||||
LDADD= $(top_builddir)/WINGs/libWINGs.a $(top_builddir)/wrlib/libwraster.la \
|
LDADD= $(top_builddir)/WINGs/libWINGs.a $(top_builddir)/wrlib/libwraster.la \
|
||||||
@LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ \
|
@LIBRARY_SEARCH_PATH@ @GFXLIBS@ @XLIBS@ \
|
||||||
@@ -13,8 +13,6 @@ testmywidget_SOURCES = testmywidget.c mywidget.c mywidget.h
|
|||||||
|
|
||||||
wtest_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
|
wtest_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
|
||||||
|
|
||||||
#testtext_DEPENDENCIES = $(top_builddir)/WINGs/libWINGs.a
|
|
||||||
|
|
||||||
|
|
||||||
EXTRA_DIST = logo.xpm upbtn.xpm
|
EXTRA_DIST = logo.xpm upbtn.xpm
|
||||||
|
|
||||||
|
|||||||
@@ -395,7 +395,6 @@ testSlider(WMScreen *scr)
|
|||||||
WMMapWidget(win);
|
WMMapWidget(win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
testTextField(WMScreen *scr)
|
testTextField(WMScreen *scr)
|
||||||
{
|
{
|
||||||
@@ -404,7 +403,7 @@ testTextField(WMScreen *scr)
|
|||||||
|
|
||||||
windowCount++;
|
windowCount++;
|
||||||
|
|
||||||
win = WMCreateWindow(scr, "testText");
|
win = WMCreateWindow(scr, "testTextField");
|
||||||
WMResizeWidget(win, 400, 300);
|
WMResizeWidget(win, 400, 300);
|
||||||
|
|
||||||
WMSetWindowCloseAction(win, closeAction, NULL);
|
WMSetWindowCloseAction(win, closeAction, NULL);
|
||||||
@@ -424,6 +423,46 @@ testTextField(WMScreen *scr)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
testText(WMScreen *scr)
|
||||||
|
{
|
||||||
|
WMWindow *win;
|
||||||
|
WMText *text;
|
||||||
|
FILE *file = fopen("../README", "r");
|
||||||
|
|
||||||
|
windowCount++;
|
||||||
|
|
||||||
|
win = WMCreateWindow(scr, "testText");
|
||||||
|
WMResizeWidget(win, 500, 300);
|
||||||
|
|
||||||
|
WMSetWindowCloseAction(win, closeAction, NULL);
|
||||||
|
|
||||||
|
text = WMCreateText(win);
|
||||||
|
WMResizeWidget(text, 480, 280);
|
||||||
|
WMMoveWidget(text, 10, 10);
|
||||||
|
WMSetTextHasVerticalScroller(text, True);
|
||||||
|
WMSetTextEditable(text, False);
|
||||||
|
|
||||||
|
if(file) {
|
||||||
|
char buf[1024];
|
||||||
|
|
||||||
|
WMFreezeText(text);
|
||||||
|
while(fgets(buf, 1023, file))
|
||||||
|
WMAppendTextStream(text, buf);
|
||||||
|
|
||||||
|
fclose(file);
|
||||||
|
WMThawText(text);
|
||||||
|
WMRefreshText(text, 0, 0);
|
||||||
|
} else {
|
||||||
|
WMAppendTextStream(text, "<HTML><i>Where's</i> the <b>README</b>?");
|
||||||
|
}
|
||||||
|
|
||||||
|
WMRealizeWidget(win);
|
||||||
|
WMMapSubwidgets(win);
|
||||||
|
WMMapWidget(win);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
testProgressIndicator(WMScreen *scr)
|
testProgressIndicator(WMScreen *scr)
|
||||||
@@ -1075,14 +1114,17 @@ int main(int argc, char **argv)
|
|||||||
*
|
*
|
||||||
* Put the testSomething() function you want to test here.
|
* Put the testSomething() function you want to test here.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
testColorWell(scr);
|
testColorWell(scr);
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
testTextField(scr);
|
||||||
|
testText(scr);
|
||||||
|
|
||||||
testDragAndDrop(scr);
|
testDragAndDrop(scr);
|
||||||
testDragAndDrop(scr);
|
testDragAndDrop(scr);
|
||||||
testFontPanel(scr);
|
testFontPanel(scr);
|
||||||
|
|
||||||
#if 0
|
|
||||||
testScrollView(scr);
|
testScrollView(scr);
|
||||||
|
|
||||||
testButton(scr);
|
testButton(scr);
|
||||||
@@ -1099,7 +1141,6 @@ int main(int argc, char **argv)
|
|||||||
testGradientButtons(scr);
|
testGradientButtons(scr);
|
||||||
testProgressIndicator(scr);
|
testProgressIndicator(scr);
|
||||||
|
|
||||||
testTextField(scr);
|
|
||||||
|
|
||||||
testOpenFilePanel(scr);
|
testOpenFilePanel(scr);
|
||||||
testList(scr);
|
testList(scr);
|
||||||
|
|||||||
Reference in New Issue
Block a user