ui/qt/text.h

changeset 103
6606616eca9f
parent 0
2483f517c562
equal deleted inserted replaced
102:64ded9f6a6c6 103:6606616eca9f
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2014 Olaf Wintermann. All rights reserved. 4 * Copyright 2025 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
34 #include <QTextEdit> 34 #include <QTextEdit>
35 #include <QLineEdit> 35 #include <QLineEdit>
36 36
37 // value implementations 37 // value implementations
38 extern "C" { 38 extern "C" {
39 char* ui_textarea_get(UiText *text);
40 void ui_textarea_set(UiText *text, char *str);
41 char* ui_textarea_getsubstr(UiText *text, int begin, int end);
42 void ui_textarea_insert(UiText *text, int pos, char *str);
43 void ui_textarea_setposition(UiText *text, int pos);
44 int ui_textarea_position(UiText *text);
45 void ui_textarea_selection(UiText *text, int *begin, int *end);
46 int ui_textarea_length(UiText *text);
47 void ui_textarea_remove(UiText *text, int begin, int end);
48 39
49 char* ui_textfield_get(UiString *str); 40 void ui_textarea_save(UiText *text);
50 void ui_textfield_set(UiString *str, char *value); 41 void ui_textarea_restore(UiText *text);
42 void ui_textarea_text_destroy(UiText *text);
43 char* ui_textarea_get(UiText *text);
44 void ui_textarea_set(UiText *text, const char *str);
45 char* ui_textarea_getsubstr(UiText *text, int begin, int end);
46 void ui_textarea_insert(UiText *text, int pos, char *str);
47 void ui_textarea_setposition(UiText *text, int pos);
48 int ui_textarea_position(UiText *text);
49 void ui_textarea_setselection(UiText *text, int begin, int end);
50 void ui_textarea_selection(UiText *text, int *begin, int *end);
51 int ui_textarea_length(UiText *text);
52 void ui_textarea_remove(UiText *text, int begin, int end);
53
54 char* ui_textfield_get(UiString *str) ;
55 void ui_textfield_set(UiString *str, const char *value);
56
51 } 57 }
52 58
53 59
54 60
55 #endif /* TEXT_H */ 61 #endif /* TEXT_H */

mercurial