summaryrefslogtreecommitdiff
path: root/src/math-equation.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-11-24 23:33:08 -0300
committerPerberos <[email protected]>2011-11-24 23:33:08 -0300
commitaf876ebbd621a63a1a0636fb0ce74da5c2aca480 (patch)
treefffc4b798e4172059fbd25d78f5bce93b3284af2 /src/math-equation.h
parent5b8921d58fbb5ad226815829dece99d5cfc781b8 (diff)
downloadmate-calc-af876ebbd621a63a1a0636fb0ce74da5c2aca480.tar.bz2
mate-calc-af876ebbd621a63a1a0636fb0ce74da5c2aca480.tar.xz
allman style format
Diffstat (limited to 'src/math-equation.h')
-rw-r--r--src/math-equation.h134
1 files changed, 66 insertions, 68 deletions
diff --git a/src/math-equation.h b/src/math-equation.h
index e93137d..164fec5 100644
--- a/src/math-equation.h
+++ b/src/math-equation.h
@@ -31,103 +31,101 @@ G_BEGIN_DECLS
typedef struct MathEquationPrivate MathEquationPrivate;
-typedef struct
-{
- GtkTextBuffer parent_instance;
- MathEquationPrivate *priv;
+typedef struct {
+ GtkTextBuffer parent_instance;
+ MathEquationPrivate* priv;
} MathEquation;
-typedef struct
-{
- GtkTextBufferClass parent_class;
+typedef struct {
+ GtkTextBufferClass parent_class;
} MathEquationClass;
/* Number display mode. */
typedef enum {
- FIX,
- SCI,
- ENG
+ FIX,
+ SCI,
+ ENG
} DisplayFormat;
typedef enum {
- NORMAL,
- SUPERSCRIPT,
- SUBSCRIPT
+ NORMAL,
+ SUPERSCRIPT,
+ SUBSCRIPT
} NumberMode;
GType math_equation_get_type(void);
-MathEquation *math_equation_new(void);
+MathEquation* math_equation_new(void);
-MathVariables *math_equation_get_variables(MathEquation *equation);
+MathVariables* math_equation_get_variables(MathEquation* equation);
-const gchar *math_equation_get_digit_text(MathEquation *equation, guint digit);
-const gchar *math_equation_get_numeric_point_text(MathEquation *equation);
-const gchar *math_equation_get_thousands_separator_text(MathEquation *equation);
+const gchar* math_equation_get_digit_text(MathEquation* equation, guint digit);
+const gchar* math_equation_get_numeric_point_text(MathEquation* equation);
+const gchar* math_equation_get_thousands_separator_text(MathEquation* equation);
-void math_equation_set_status(MathEquation *equation, const gchar *status);
-const gchar *math_equation_get_status(MathEquation *equation);
+void math_equation_set_status(MathEquation* equation, const gchar* status);
+const gchar* math_equation_get_status(MathEquation* equation);
-gboolean math_equation_is_empty(MathEquation *equation);
-gboolean math_equation_is_result(MathEquation *equation);
-gchar *math_equation_get_display(MathEquation *equation);
-gchar *math_equation_get_equation(MathEquation *equation);
-gboolean math_equation_get_number(MathEquation *equation, MPNumber *z);
+gboolean math_equation_is_empty(MathEquation* equation);
+gboolean math_equation_is_result(MathEquation* equation);
+gchar* math_equation_get_display(MathEquation* equation);
+gchar* math_equation_get_equation(MathEquation* equation);
+gboolean math_equation_get_number(MathEquation* equation, MPNumber* z);
-void math_equation_set_number_mode(MathEquation *equation, NumberMode mode);
-NumberMode math_equation_get_number_mode(MathEquation *equation);
+void math_equation_set_number_mode(MathEquation* equation, NumberMode mode);
+NumberMode math_equation_get_number_mode(MathEquation* equation);
-void math_equation_set_accuracy(MathEquation *equation, gint accuracy);
-gint math_equation_get_accuracy(MathEquation *equation);
+void math_equation_set_accuracy(MathEquation* equation, gint accuracy);
+gint math_equation_get_accuracy(MathEquation* equation);
-void math_equation_set_show_thousands_separators(MathEquation *equation, gboolean visible);
-gboolean math_equation_get_show_thousands_separators(MathEquation *equation);
+void math_equation_set_show_thousands_separators(MathEquation* equation, gboolean visible);
+gboolean math_equation_get_show_thousands_separators(MathEquation* equation);
-void math_equation_set_show_trailing_zeroes(MathEquation *equation, gboolean visible);
-gboolean math_equation_get_show_trailing_zeroes(MathEquation *equation);
+void math_equation_set_show_trailing_zeroes(MathEquation* equation, gboolean visible);
+gboolean math_equation_get_show_trailing_zeroes(MathEquation* equation);
-void math_equation_set_number_format(MathEquation *equation, DisplayFormat format);
-DisplayFormat math_equation_get_number_format(MathEquation *equation);
+void math_equation_set_number_format(MathEquation* equation, DisplayFormat format);
+DisplayFormat math_equation_get_number_format(MathEquation* equation);
-void math_equation_set_base(MathEquation *equation, gint base);
-gint math_equation_get_base(MathEquation *equation);
+void math_equation_set_base(MathEquation* equation, gint base);
+gint math_equation_get_base(MathEquation* equation);
-void math_equation_set_word_size(MathEquation *equation, gint word_size);
-gint math_equation_get_word_size(MathEquation *equation);
+void math_equation_set_word_size(MathEquation* equation, gint word_size);
+gint math_equation_get_word_size(MathEquation* equation);
-void math_equation_set_angle_units(MathEquation *equation, MPAngleUnit angle_unit);
-MPAngleUnit math_equation_get_angle_units(MathEquation *equation);
+void math_equation_set_angle_units(MathEquation* equation, MPAngleUnit angle_unit);
+MPAngleUnit math_equation_get_angle_units(MathEquation* equation);
-void math_equation_set_source_currency(MathEquation *equation, const gchar *currency);
-const gchar *math_equation_get_source_currency(MathEquation *equation);
+void math_equation_set_source_currency(MathEquation* equation, const gchar* currency);
+const gchar* math_equation_get_source_currency(MathEquation* equation);
-void math_equation_set_target_currency(MathEquation *equation, const gchar *currency);
-const gchar *math_equation_get_target_currency(MathEquation *equation);
+void math_equation_set_target_currency(MathEquation* equation, const gchar* currency);
+const gchar* math_equation_get_target_currency(MathEquation* equation);
-const MPNumber *math_equation_get_answer(MathEquation *equation);
+const MPNumber* math_equation_get_answer(MathEquation* equation);
-void math_equation_copy(MathEquation *equation);
-void math_equation_paste(MathEquation *equation);
-void math_equation_undo(MathEquation *equation);
-void math_equation_redo(MathEquation *equation);
-void math_equation_store(MathEquation *equation, const gchar *name);
-void math_equation_recall(MathEquation *equation, const gchar *name);
-void math_equation_set(MathEquation *equation, const gchar *text);
-void math_equation_set_number(MathEquation *equation, const MPNumber *x);
-void math_equation_insert(MathEquation *equation, const gchar *text);
-void math_equation_insert_digit(MathEquation *equation, guint digit);
-void math_equation_insert_numeric_point(MathEquation *equation);
-void math_equation_insert_number(MathEquation *equation, const MPNumber *x);
-void math_equation_insert_subtract(MathEquation *equation);
-void math_equation_insert_exponent(MathEquation *equation);
-void math_equation_solve(MathEquation *equation);
-void math_equation_factorize(MathEquation *equation);
-void math_equation_delete(MathEquation *equation);
-void math_equation_backspace(MathEquation *equation);
-void math_equation_clear(MathEquation *equation);
-void math_equation_shift(MathEquation *equation, gint count);
-void math_equation_toggle_bit(MathEquation *equation, guint bit);
+void math_equation_copy(MathEquation* equation);
+void math_equation_paste(MathEquation* equation);
+void math_equation_undo(MathEquation* equation);
+void math_equation_redo(MathEquation* equation);
+void math_equation_store(MathEquation* equation, const gchar* name);
+void math_equation_recall(MathEquation* equation, const gchar* name);
+void math_equation_set(MathEquation* equation, const gchar* text);
+void math_equation_set_number(MathEquation* equation, const MPNumber* x);
+void math_equation_insert(MathEquation* equation, const gchar* text);
+void math_equation_insert_digit(MathEquation* equation, guint digit);
+void math_equation_insert_numeric_point(MathEquation* equation);
+void math_equation_insert_number(MathEquation* equation, const MPNumber* x);
+void math_equation_insert_subtract(MathEquation* equation);
+void math_equation_insert_exponent(MathEquation* equation);
+void math_equation_solve(MathEquation* equation);
+void math_equation_factorize(MathEquation* equation);
+void math_equation_delete(MathEquation* equation);
+void math_equation_backspace(MathEquation* equation);
+void math_equation_clear(MathEquation* equation);
+void math_equation_shift(MathEquation* equation, gint count);
+void math_equation_toggle_bit(MathEquation* equation, guint bit);
//FIXME: Obsolete
-void display_make_number(MathEquation *equation, char *target, int target_len, const MPNumber *x);
+void display_make_number(MathEquation* equation, char* target, int target_len, const MPNumber* x);
#endif /* MATH_EQUATION_H */