Commit 653aeda2 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Clean up.

parent 9097a3de
...@@ -57,7 +57,6 @@ public: ...@@ -57,7 +57,6 @@ public:
QLabel* msg_label; QLabel* msg_label;
QLabel* cmd_prompt; QLabel* cmd_prompt;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
CoWowFocusTimerQt maptimer;
CoWowRecall* value_recall; CoWowRecall* value_recall;
CoWowEntryQt* cmd_entry; CoWowEntryQt* cmd_entry;
......
...@@ -54,7 +54,6 @@ public: ...@@ -54,7 +54,6 @@ public:
QLabel* msg_label; QLabel* msg_label;
QLabel* cmd_prompt; QLabel* cmd_prompt;
QLineEdit* cmd_input; QLineEdit* cmd_input;
QWidget* attrnav_form;
QAction* menubutton_copy; QAction* menubutton_copy;
QAction* menubutton_cut; QAction* menubutton_cut;
QAction* menubutton_paste; QAction* menubutton_paste;
......
...@@ -61,7 +61,6 @@ public: ...@@ -61,7 +61,6 @@ public:
QAction* menubutton_cut; QAction* menubutton_cut;
QAction* menubutton_paste; QAction* menubutton_paste;
QAction* menubutton_changevalue; QAction* menubutton_changevalue;
QAction* menubutton_viewio;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
static CoWowRecall value_recall; static CoWowRecall value_recall;
CoWowEntryQt* cmd_entry; CoWowEntryQt* cmd_entry;
......
...@@ -56,7 +56,6 @@ public: ...@@ -56,7 +56,6 @@ public:
QWidget* edit_check_all; QWidget* edit_check_all;
QWidget* edit_check_clear; QWidget* edit_check_clear;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
CoWowFocusTimerQt maptimer;
void print(); void print();
void set_title(char* title); void set_title(char* title);
......
...@@ -52,13 +52,7 @@ public: ...@@ -52,13 +52,7 @@ public:
QWidget* form; QWidget* form;
QWidget* nav_widget; QWidget* nav_widget;
QWidget* edit_check_all;
QWidget* edit_check_clear;
QWidget* edit_check_reset;
QWidget* edit_show_all;
QWidget* file_export;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
CoWowFocusTimerQt maptimer;
void print(); void print();
void set_title(char* title); void set_title(char* title);
......
...@@ -55,11 +55,8 @@ public: ...@@ -55,11 +55,8 @@ public:
QSplitter* pane; QSplitter* pane;
QSplitter* subpane; QSplitter* subpane;
QWidget* caution; QWidget* caution;
QWidget* caution_label;
QWidget* adb;
QWidget* foe_window; QWidget* foe_window;
QWidget* popupmenu; QWidget* popupmenu;
QWidget* file_entry;
QAction* save; QAction* save;
QAction* exit; QAction* exit;
QAction* savetrace; QAction* savetrace;
...@@ -84,8 +81,6 @@ public: ...@@ -84,8 +81,6 @@ public:
QAction* expand; QAction* expand;
QAction* compress; QAction* compress;
QMenu* edit; /* entry of the menu */ QMenu* edit; /* entry of the menu */
QWidget* search_entry; /* entry of the menu */
QWidget* customize_entry; /* entry of the menu */
QAction* trace_togg; /* togg under the function entry of the menu */ QAction* trace_togg; /* togg under the function entry of the menu */
QAction* simulate_togg; /* togg under the function entry of the menu */ QAction* simulate_togg; /* togg under the function entry of the menu */
QAction* view_togg; /* togg under the function entry of the menu */ QAction* view_togg; /* togg under the function entry of the menu */
...@@ -158,11 +153,6 @@ public: ...@@ -158,11 +153,6 @@ public:
virtual void popupmsg(const char* new_label, void (*yes_procedure)(WFoe*), virtual void popupmsg(const char* new_label, void (*yes_procedure)(WFoe*),
void (*no_procedure)(WFoe*), void (*cancel_procedure)(WFoe*)); void (*no_procedure)(WFoe*), void (*cancel_procedure)(WFoe*));
int register_callbacks();
static void reset_current_node(WFoe* foe);
static void delete_subwindow_ok_cb(void* ctx, void* data);
private: private:
WFoeQtWidget* toplevel; WFoeQtWidget* toplevel;
}; };
......
...@@ -45,7 +45,6 @@ class WGreQtTraceObject; ...@@ -45,7 +45,6 @@ class WGreQtTraceObject;
class WGreQt : public WGre { class WGreQt : public WGre {
public: public:
QWidget* gre_window;
QWidget* flow_widget; QWidget* flow_widget;
QWidget* form_widget; QWidget* form_widget;
QWidget* nav_shell; QWidget* nav_shell;
......
...@@ -47,24 +47,14 @@ class WUtedQtWidget; ...@@ -47,24 +47,14 @@ class WUtedQtWidget;
class WUtedQt : public WUted { class WUtedQt : public WUted {
public: public:
QWidget* uted_window;
QLabel* label; QLabel* label;
QWidget* adb;
QWidget* file_entry;
QWidget* quit; QWidget* quit;
QWidget* batchoptmenu;
QLabel* commandlabel; QLabel* commandlabel;
QWidget* batch;
QWidget* currsess;
QWidget* help; QWidget* help;
QWidget* timelabel;
QWidget* timevalue;
QLabel* qualifier[UTED_QUALS]; QLabel* qualifier[UTED_QUALS];
QLineEdit* value[UTED_QUALS]; QLineEdit* value[UTED_QUALS];
QCheckBox* present[UTED_QUALS]; QCheckBox* present[UTED_QUALS];
QAction* optmenubuttons[UTED_MAX_COMMANDS]; QAction* optmenubuttons[UTED_MAX_COMMANDS];
QWidget* command_window;
QWidget* commandwind_button;
WUtedQt(void* wu_parent_ctx, QWidget* wu_parent_wid, const char* wu_name, WUtedQt(void* wu_parent_ctx, QWidget* wu_parent_wid, const char* wu_name,
const char* wu_iconname, ldh_tWBContext wu_ldhwb, const char* wu_iconname, ldh_tWBContext wu_ldhwb,
......
...@@ -59,8 +59,6 @@ public: ...@@ -59,8 +59,6 @@ public:
QLabel* msg_label; QLabel* msg_label;
QLabel* cmd_prompt; QLabel* cmd_prompt;
QWidget* cmd_scrolledinput; QWidget* cmd_scrolledinput;
QWidget* cmd_scrolled_ok;
QWidget* cmd_scrolled_ca;
QTextEdit* cmd_scrolled_buffer; QTextEdit* cmd_scrolled_buffer;
QSplitter* pane; QSplitter* pane;
static CoWowRecall value_recall; static CoWowRecall value_recall;
......
...@@ -52,9 +52,6 @@ public: ...@@ -52,9 +52,6 @@ public:
ldh_tSesContext wa_ldhses, pwr_sAttrRef wa_aref, int wa_editmode, ldh_tSesContext wa_ldhses, pwr_sAttrRef wa_aref, int wa_editmode,
pwr_tStatus* status); pwr_tStatus* status);
QLabel* msg_label; QLabel* msg_label;
QWidget* button_ok;
QWidget* button_apply;
QWidget* button_cancel;
QTextEdit* textbuffer; QTextEdit* textbuffer;
int input_max_length; int input_max_length;
int init; int init;
......
...@@ -60,8 +60,6 @@ public: ...@@ -60,8 +60,6 @@ public:
QLabel* msg_label; QLabel* msg_label;
QLabel* cmd_prompt; QLabel* cmd_prompt;
QWidget* cmd_scrolledinput; QWidget* cmd_scrolledinput;
QWidget* cmd_scrolled_ok;
QWidget* cmd_scrolled_ca;
QTextEdit* cmd_scrolled_buffer; QTextEdit* cmd_scrolled_buffer;
QSplitter* pane; QSplitter* pane;
QWidget* wdaclass_dia; QWidget* wdaclass_dia;
...@@ -69,7 +67,6 @@ public: ...@@ -69,7 +67,6 @@ public:
QLineEdit* wdaclass_namevalue; QLineEdit* wdaclass_namevalue;
QLineEdit* wdaclass_classvalue; QLineEdit* wdaclass_classvalue;
QCheckBox* wdaclass_attrobjects; QCheckBox* wdaclass_attrobjects;
QWidget* wdaattr_dia;
static CoWowRecall value_recall; static CoWowRecall value_recall;
CoWowEntryQt* cmd_entry; CoWowEntryQt* cmd_entry;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
......
...@@ -51,7 +51,6 @@ public: ...@@ -51,7 +51,6 @@ public:
QWidget* form_widget; QWidget* form_widget;
QWidget* nav_shell; QWidget* nav_shell;
QWidget* nav_widget; QWidget* nav_widget;
QWidget* menu_widget;
QLineEdit* value_input; QLineEdit* value_input;
QWidget* value_dialog; QWidget* value_dialog;
QWidget* message_dia_widget; QWidget* message_dia_widget;
......
...@@ -61,7 +61,6 @@ public: ...@@ -61,7 +61,6 @@ public:
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
QWidget* selection_widget;
QLocalServer* serverString; QLocalServer* serverString;
QLocalServer* serverGraph; QLocalServer* serverGraph;
......
...@@ -53,7 +53,6 @@ public: ...@@ -53,7 +53,6 @@ public:
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
QLabel* msg_label; QLabel* msg_label;
QWidget* wpkgnav_form;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
void message(char severity, const char* message); void message(char severity, const char* message);
......
...@@ -75,7 +75,6 @@ public: ...@@ -75,7 +75,6 @@ public:
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
QLabel* msg_label; QLabel* msg_label;
QWidget* wrevnav_form;
QWidget* india_widget; QWidget* india_widget;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
...@@ -84,7 +83,6 @@ public: ...@@ -84,7 +83,6 @@ public:
void set_clock_cursor(); void set_clock_cursor();
void reset_cursor(); void reset_cursor();
void flush(); void flush();
void create_input_dialog();
void open_input_dialog(const char* text1, const char* text2, void open_input_dialog(const char* text1, const char* text2,
const char* title, const char* init_text1, const char* init_text2, const char* title, const char* init_text1, const char* init_text2,
void (*ok_cb)(WRev*, char*, char*)); void (*ok_cb)(WRev*, char*, char*));
......
...@@ -105,7 +105,6 @@ public: ...@@ -105,7 +105,6 @@ public:
QWidget* palette_widget; QWidget* palette_widget;
QLabel* msg_label; QLabel* msg_label;
QLabel* cmd_prompt; QLabel* cmd_prompt;
QWidget* wnav_form;
QSplitter* palette_paned; QSplitter* palette_paned;
QWidget* boot_dia; QWidget* boot_dia;
QAction* cm_normal_syntax; QAction* cm_normal_syntax;
...@@ -170,7 +169,6 @@ public: ...@@ -170,7 +169,6 @@ public:
QTimer* disfocus_timerid; QTimer* disfocus_timerid;
QTimer* selection_timerid; QTimer* selection_timerid;
int avoid_deadlock; int avoid_deadlock;
QTimer* deadlock_timerid;
int popupmenu_x; int popupmenu_x;
int popupmenu_y; int popupmenu_y;
static CoWowRecall cmd_recall; static CoWowRecall cmd_recall;
...@@ -316,6 +314,4 @@ private: ...@@ -316,6 +314,4 @@ private:
WttQt* wtt; WttQt* wtt;
}; };
QWidget* wtt_create_popup_menu(Wtt* wtt, pwr_sAttrRef aref, pwr_tCid cid,
void (*message_cb)(void*, char, char*));
#endif #endif
\ No newline at end of file
...@@ -51,7 +51,6 @@ public: ...@@ -51,7 +51,6 @@ public:
pwr_sAttrRef* xa_objar, int xa_advanced_user, int* xa_sts); pwr_sAttrRef* xa_objar, int xa_advanced_user, int* xa_sts);
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
QWidget* xcrrnav_form;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
void pop(); void pop();
......
...@@ -53,6 +53,11 @@ void CoHelpQt::close_cb(void* ctx, void* xhelp) ...@@ -53,6 +53,11 @@ void CoHelpQt::close_cb(void* ctx, void* xhelp)
exit(0); exit(0);
} }
void CoHelpQt::cohelp_mainloop()
{
QApplication::exec();
}
int main(int argc, char* argv[]) int main(int argc, char* argv[])
{ {
int sts; int sts;
...@@ -92,4 +97,6 @@ CoHelpQt::CoHelpQt(int argc, char* argv[], int* return_sts) ...@@ -92,4 +97,6 @@ CoHelpQt::CoHelpQt(int argc, char* argv[], int* return_sts)
xhelp->close_cb = close_cb; xhelp->close_cb = close_cb;
exec_help(); exec_help();
cohelp_mainloop();
} }
\ No newline at end of file
...@@ -79,7 +79,7 @@ void XttQt::hotkey_ResetDig(char* arg, void* userdata) ...@@ -79,7 +79,7 @@ void XttQt::hotkey_ResetDig(char* arg, void* userdata)
hotkey_activate_resetdig(arg); hotkey_activate_resetdig(arg);
} }
bool eventFilter(QObject* obj, QEvent* event) bool XttQtWidget::eventFilter(QObject* obj, QEvent* event)
{ {
return XttHotkey::event_handler(event, obj); return XttHotkey::event_handler(event, obj);
} }
......
...@@ -71,7 +71,6 @@ public: ...@@ -71,7 +71,6 @@ public:
const char* init_text, void (*ok_cb)(Xtt*, char*)); const char* init_text, void (*ok_cb)(Xtt*, char*));
void set_prompt(const char* prompt); void set_prompt(const char* prompt);
void open_change_value(); void open_change_value();
void create_input_dialog();
void print(); void print();
static void close(void* ctx, int terminate); static void close(void* ctx, int terminate);
...@@ -91,6 +90,7 @@ public: ...@@ -91,6 +90,7 @@ public:
XttQtWidget(XttQt* parent_ctx) : QWidget(), xtt(parent_ctx) XttQtWidget(XttQt* parent_ctx) : QWidget(), xtt(parent_ctx)
{ {
} }
bool eventFilter(QObject* obj, QEvent* event);
protected: protected:
void focusInEvent(QFocusEvent* event); void focusInEvent(QFocusEvent* event);
......
...@@ -52,7 +52,6 @@ public: ...@@ -52,7 +52,6 @@ public:
QWidget* nav_widget; QWidget* nav_widget;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
CoWowFocusTimerQt maptimer;
void print(); void print();
......
...@@ -175,21 +175,6 @@ QAction* addMenuItem(QObject* parent, QMenu* menu, const char* text, ...@@ -175,21 +175,6 @@ QAction* addMenuItem(QObject* parent, QMenu* menu, const char* text,
return action; return action;
} }
QAction* addMenuItemMapped(QObject* parent, QMenu* menu, const char* text,
const char* callback, const char* signal, const char* shortcut,
const char* iconName)
{
QAction* action
= new QAction(get_icon(iconName), translate_utf8(text), parent);
if (strcmp(shortcut, "")) {
action->setShortcut(fl(shortcut));
}
QObject::connect(action, signal, parent, callback);
menu->addAction(action);
return action;
}
QAction* addCheckableMenuItem(QObject* parent, QMenu* menu, const char* text, QAction* addCheckableMenuItem(QObject* parent, QMenu* menu, const char* text,
const char* callback, const char* shortcut, const char* iconName) const char* callback, const char* shortcut, const char* iconName)
{ {
...@@ -230,28 +215,6 @@ QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text, ...@@ -230,28 +215,6 @@ QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text,
return action; return action;
} }
QAction* addToolItemMapped(QObject* parent, QToolBar* tools, const char* text,
const char* callback, const char* signal, const char* iconName)
{
QAction* action
= new QAction(get_icon(iconName), translate_utf8(text), parent);
QObject::connect(action, signal, parent, callback);
tools->addAction(action);
return action;
}
QAction* addToolRadioItem(QObject* parent, QToolBar* tools, const char* text,
const char* callback, QActionGroup* group)
{
QAction* action = new QAction(translate_utf8(text), parent);
QObject::connect(action, SIGNAL(triggered()), parent, callback);
action->setCheckable(true);
action->setActionGroup(group);
tools->addAction(action);
return action;
}
QAction* addCheckableToolItem(QObject* parent, QToolBar* tools, QAction* addCheckableToolItem(QObject* parent, QToolBar* tools,
const char* text, const char* callback, const char* iconName) const char* text, const char* callback, const char* iconName)
{ {
......
...@@ -81,19 +81,12 @@ void showNow(QWidget* w); ...@@ -81,19 +81,12 @@ void showNow(QWidget* w);
QIcon get_icon(const char* iconName); QIcon get_icon(const char* iconName);
QAction* addMenuItem(QObject* parent, QMenu* menu, const char* text, QAction* addMenuItem(QObject* parent, QMenu* menu, const char* text,
const char* callback, const char* shortcut = "", const char* iconName = ""); const char* callback, const char* shortcut = "", const char* iconName = "");
QAction* addMenuItemMapped(QObject* parent, QMenu* menu, const char* text,
const char* callback, const char* signal, const char* shortcut = "",
const char* iconName = "");
QAction* addCheckableMenuItem(QObject* parent, QMenu* menu, const char* text, QAction* addCheckableMenuItem(QObject* parent, QMenu* menu, const char* text,
const char* callback, const char* shortcut = "", const char* iconName = ""); const char* callback, const char* shortcut = "", const char* iconName = "");
QAction* addMenuRadioItem(QObject* parent, QMenu* menu, const char* text, QAction* addMenuRadioItem(QObject* parent, QMenu* menu, const char* text,
const char* callback, QActionGroup* group, const char* shortcut = ""); const char* callback, QActionGroup* group, const char* shortcut = "");
QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text, QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text,
const char* callback, const char* iconName); const char* callback, const char* iconName);
QAction* addToolItemMapped(QObject* parent, QToolBar* tools, const char* text,
const char* callback, const char* signal, const char* iconName = "");
QAction* addToolRadioItem(QObject* parent, QToolBar* tools, const char* text,
const char* callback, QActionGroup* group);
QAction* addCheckableToolItem(QObject* parent, QToolBar* tools, QAction* addCheckableToolItem(QObject* parent, QToolBar* tools,
const char* text, const char* callback, const char* iconName); const char* text, const char* callback, const char* iconName);
QMenu* addToolMenu(QWidget* parent, QToolBar* tools, const char* text); QMenu* addToolMenu(QWidget* parent, QToolBar* tools, const char* text);
......
...@@ -70,7 +70,6 @@ public: ...@@ -70,7 +70,6 @@ public:
void pop(); void pop();
void set_clock_cursor(); void set_clock_cursor();
void reset_cursor(); void reset_cursor();
void create_input_dialog();
void open_input_dialog( void open_input_dialog(
char* text, char* title, char* init_text, void (*ok_cb)(RtMon*, char*)); char* text, char* title, char* init_text, void (*ok_cb)(RtMon*, char*));
......
...@@ -76,8 +76,6 @@ public: ...@@ -76,8 +76,6 @@ public:
const char* nodelist_name, int nodelist_mode, const char* nodelist_name, int nodelist_mode,
int nodelist_view_node_descr, int msgw_pop, pwr_tStatus* status); int nodelist_view_node_descr, int msgw_pop, pwr_tStatus* status);
QWidget* parent_wid_nodelist;
QWidget* form_nodelist;
QWidget* nodelistnav_widget; QWidget* nodelistnav_widget;
NodelistInputDialogQt* add_india_widget; NodelistInputDialogQt* add_india_widget;
......
...@@ -64,7 +64,6 @@ public: ...@@ -64,7 +64,6 @@ public:
void beep(); void beep();
private: private:
NodelistNav* nodelistnav;
NodelistNavQtTraceObject* trace_obj; NodelistNavQtTraceObject* trace_obj;
}; };
......
...@@ -777,7 +777,7 @@ void CoWowModalDialogQt::destroy(bool destroyWindow, bool destroySubWindows) ...@@ -777,7 +777,7 @@ void CoWowModalDialogQt::destroy(bool destroyWindow, bool destroySubWindows)
QDialog::destroy(destroyWindow, destroySubWindows); QDialog::destroy(destroyWindow, destroySubWindows);
} }
void CoWowModalDialogQt::modaldia_activate_cb(QKeyEvent* e) void CoWowModalDialogQt::modaldia_activate_cb()
{ {
done(wow_eModalDialogReturn_ReturnPressed); done(wow_eModalDialogReturn_ReturnPressed);
} }
......
...@@ -80,7 +80,7 @@ protected: ...@@ -80,7 +80,7 @@ protected:
void destroy(bool destroyWindow = true, bool destroySubWindows = true); void destroy(bool destroyWindow = true, bool destroySubWindows = true);
public slots: public slots:
void modaldia_activate_cb(QKeyEvent* e); void modaldia_activate_cb();
void modaldia_button1_cb(); void modaldia_button1_cb();
void modaldia_button2_cb(); void modaldia_button2_cb();
void modaldia_button3_cb(); void modaldia_button3_cb();
......
...@@ -68,14 +68,6 @@ static int brow_init_proc(QWidget* w, FlowCtx* fctx, void* client_data) ...@@ -68,14 +68,6 @@ static int brow_init_proc(QWidget* w, FlowCtx* fctx, void* client_data)
return (brow->init_proc)(ctx, client_data); return (brow->init_proc)(ctx, client_data);
} }
QWidget* browwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data)
{
QtScrollWidgetFlow* w = new QtScrollWidgetFlow();
w->init(flow_eCtxType_Brow, init_proc, client_data, brow_init_proc);
return w;
}
QWidget* scrolledbrowwidgetqt_new( QWidget* scrolledbrowwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data, int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data,
QWidget** browwidget) QWidget** browwidget)
...@@ -87,13 +79,6 @@ QWidget* scrolledbrowwidgetqt_new( ...@@ -87,13 +79,6 @@ QWidget* scrolledbrowwidgetqt_new(
return form; return form;
} }
QWidget* brownavwidgetqt_new(QWidget* main_brow)
{
QtScrollWidgetFlow* w = new QtScrollWidgetFlow();
w->init(flow_eCtxType_Brow, main_brow);
return w;
}
void browwidgetqt_modify_ctx(QWidget* w, void* ctx) void browwidgetqt_modify_ctx(QWidget* w, void* ctx)
{ {
((QtScrollWidgetFlow*)w)->parent_ctx = ctx; ((QtScrollWidgetFlow*)w)->parent_ctx = ctx;
......
...@@ -41,22 +41,10 @@ ...@@ -41,22 +41,10 @@
#include <QWidget> #include <QWidget>
#if defined __cplusplus
extern "C" {
#endif
QWidget* browwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data);
QWidget* scrolledbrowwidgetqt_new( QWidget* scrolledbrowwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data, int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data,
QWidget** browwidget); QWidget** browwidget);
QWidget* brownavwidgetqt_new(QWidget* main_brow);
void browwidgetqt_get_ctx(QWidget* w, void** ctx);
void browwidgetqt_modify_ctx(QWidget* w, void* ctx); void browwidgetqt_modify_ctx(QWidget* w, void* ctx);
#if defined __cplusplus
}
#endif
#endif #endif
\ No newline at end of file
...@@ -56,17 +56,6 @@ ...@@ -56,17 +56,6 @@
#define DRAW_PRESS_PIX 9 #define DRAW_PRESS_PIX 9
typedef struct {
QWidget* w;
int x;
int y;
int width;
int height;
FlowArrayElem* node;
int number;
FlowCtx* ctx;
} draw_sAnnotData;
typedef struct { typedef struct {
QPixmap pixmap[DRAW_PIXMAP_SIZE]; QPixmap pixmap[DRAW_PIXMAP_SIZE];
} draw_sPixmap; } draw_sPixmap;
......
...@@ -207,7 +207,6 @@ public: ...@@ -207,7 +207,6 @@ public:
void set_image_clip_mask( void set_image_clip_mask(
QPainter* painter, flow_tPixmap pixmap, int x, int y); QPainter* painter, flow_tPixmap pixmap, int x, int y);
void reset_image_clip_mask();
void set_white_background(FlowCtx* ctx); void set_white_background(FlowCtx* ctx);
......
...@@ -67,15 +67,6 @@ static int flow_init_proc(QWidget* w, FlowCtx* fctx, void* client_data) ...@@ -67,15 +67,6 @@ static int flow_init_proc(QWidget* w, FlowCtx* fctx, void* client_data)
return (flow->init_proc)(ctx, client_data); return (flow->init_proc)(ctx, client_data);
} }
QWidget* flowwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data)
{
QtScrollWidgetFlow* w = new QtScrollWidgetFlow();
debug_print("creating a new flow scroll widget\n");
w->init(flow_eCtxType_Flow, init_proc, client_data, flow_init_proc);
return w;
}
QWidget* scrolledflowwidgetqt_new( QWidget* scrolledflowwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data, int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data,
QWidget** flowwidget) QWidget** flowwidget)
......
...@@ -41,22 +41,12 @@ ...@@ -41,22 +41,12 @@
#include <QWidget> #include <QWidget>
#if defined __cplusplus
extern "C" {
#endif
QWidget* flowwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data);
QWidget* scrolledflowwidgetqt_new( QWidget* scrolledflowwidgetqt_new(
int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data, int (*init_proc)(FlowCtx* ctx, void* client_data), void* client_data,
QWidget** flowwidget); QWidget** flowwidget);
QWidget* flownavwidgetqt_new(QWidget* main_flow); QWidget* flownavwidgetqt_new(QWidget* main_flow);
void flowwidgetqt_get_ctx(QWidget* w, void** ctx);
void flowwidgetqt_modify_ctx(QWidget* w, void* ctx); void flowwidgetqt_modify_ctx(QWidget* w, void* ctx);
#if defined __cplusplus
}
#endif
#endif #endif
\ No newline at end of file
...@@ -56,12 +56,6 @@ public: ...@@ -56,12 +56,6 @@ public:
~GeCurveQt(); ~GeCurveQt();
GeCurveQtWidget* toplevel; GeCurveQtWidget* toplevel;
QWidget* grow_widget;
QWidget* curve_widget;
QWidget* axisform_widget;
QWidget* nameform_widget;
QWidget* curveform_widget;
QWidget* pane_widget;
QWidget* vbox; QWidget* vbox;
QWidget* growcurve_main_widget; QWidget* growcurve_main_widget;
QWidget* growaxis_main_widget; QWidget* growaxis_main_widget;
...@@ -75,7 +69,6 @@ public: ...@@ -75,7 +69,6 @@ public:
QWidget* menu_open; QWidget* menu_open;
QWidget* menu_snapshot; QWidget* menu_snapshot;
QWidget* menu_export; QWidget* menu_export;
QWidget* menu_add;
QAction* tools_snapshot; QAction* tools_snapshot;
QAction* tools_add; QAction* tools_add;
QAction* tools_curvetype_line; QAction* tools_curvetype_line;
......
...@@ -57,6 +57,8 @@ public: ...@@ -57,6 +57,8 @@ public:
QWidget* widget(); QWidget* widget();
void update(); void update();
void update(const char*, int); void update(const char*, int);
QString selected_text();
QString selected_text(QTreeWidget*);
protected: protected:
void focusOutEvent(QFocusEvent* event); void focusOutEvent(QFocusEvent* event);
...@@ -68,8 +70,6 @@ private: ...@@ -68,8 +70,6 @@ private:
public slots: public slots:
void directory_changed(const QString& path); void directory_changed(const QString& path);
QString selected_text();
QString selected_text(QTreeWidget*);
void activate_menu_open(); void activate_menu_open();
void activate_menu_delete(); void activate_menu_delete();
void activate_tree_widget(QTreeWidgetItem* item, int idx); void activate_tree_widget(QTreeWidgetItem* item, int idx);
......
...@@ -54,7 +54,6 @@ public: ...@@ -54,7 +54,6 @@ public:
SubGraphsQt(void* xn_parent_ctx, QWidget* xn_parent_wid, const char* xn_name, SubGraphsQt(void* xn_parent_ctx, QWidget* xn_parent_wid, const char* xn_name,
void* grow_ctx, QWidget** w, pwr_tStatus* status); void* grow_ctx, QWidget** w, pwr_tStatus* status);
QWidget* subgraphs_form;
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
......
...@@ -75,14 +75,6 @@ static int colpal_init_proc(QWidget* w, GlowCtx* fctx, void* client_data) ...@@ -75,14 +75,6 @@ static int colpal_init_proc(QWidget* w, GlowCtx* fctx, void* client_data)
} }
} }
QWidget* colpalwidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data)
{
QtScrollWidgetGlow* w = new QtScrollWidgetGlow();
w->init(glow_eCtxType_ColPal, init_proc, client_data, colpal_init_proc);
return w;
}
QWidget* scrolledcolpalwidgetqt_new( QWidget* scrolledcolpalwidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data, int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data,
QWidget** colpalwidget) QWidget** colpalwidget)
...@@ -91,11 +83,4 @@ QWidget* scrolledcolpalwidgetqt_new( ...@@ -91,11 +83,4 @@ QWidget* scrolledcolpalwidgetqt_new(
*colpalwidget = w; *colpalwidget = w;
return w->initScroll( return w->initScroll(
glow_eCtxType_ColPal, init_proc, client_data, colpal_init_proc); glow_eCtxType_ColPal, init_proc, client_data, colpal_init_proc);
}
QWidget* colpalnavwidgetqt_new(QWidget* main_colpal)
{
QtScrollWidgetGlow* w = new QtScrollWidgetGlow();
w->init(glow_eCtxType_ColPal, main_colpal);
return w;
} }
\ No newline at end of file
...@@ -38,10 +38,6 @@ ...@@ -38,10 +38,6 @@
#include <QWidget> #include <QWidget>
QWidget* colpalwidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data);
QWidget* scrolledcolpalwidgetqt_new( QWidget* scrolledcolpalwidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data, int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data,
QWidget** growwidget); QWidget** growwidget);
\ No newline at end of file
QWidget* colpalnavwidgetqt_new(QWidget* main_grow);
\ No newline at end of file
...@@ -104,16 +104,6 @@ QWidget* curvewidgetqt_new( ...@@ -104,16 +104,6 @@ QWidget* curvewidgetqt_new(
return (QWidget*)w; return (QWidget*)w;
} }
QWidget* scrolledcurvewidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data,
QWidget** curvewidget)
{
CurveWidgetQt* w = new CurveWidgetQt();
*curvewidget = w;
return w->initScroll(
glow_eCtxType_Curve, init_proc, client_data, curve_init_proc);
}
QWidget* curvenavwidgetqt_new(QWidget* main_curve) QWidget* curvenavwidgetqt_new(QWidget* main_curve)
{ {
CurveWidgetQt* w = new CurveWidgetQt(); CurveWidgetQt* w = new CurveWidgetQt();
......
...@@ -49,8 +49,5 @@ protected: ...@@ -49,8 +49,5 @@ protected:
QWidget* curvewidgetqt_new( QWidget* curvewidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data); int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data);
QWidget* scrolledcurvewidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data,
QWidget** curvewidget);
QWidget* curvenavwidgetqt_new(QWidget* main_curve); QWidget* curvenavwidgetqt_new(QWidget* main_curve);
\ No newline at end of file
...@@ -175,8 +175,6 @@ public: ...@@ -175,8 +175,6 @@ public:
virtual void set_image_clip_mask( virtual void set_image_clip_mask(
QPainter* painter, glow_tPixmap pixmap, int x, int y); QPainter* painter, glow_tPixmap pixmap, int x, int y);
virtual void reset_image_clip_mask(){}
virtual int set_clip_rectangle( virtual int set_clip_rectangle(
GlowWind* w, int ll_x, int ll_y, int ur_x, int ur_y); GlowWind* w, int ll_x, int ll_y, int ur_x, int ur_y);
virtual void reset_clip_rectangle(GlowWind* w); virtual void reset_clip_rectangle(GlowWind* w);
......
...@@ -61,10 +61,3 @@ QWidget* keyboardwidgetqt_new( ...@@ -61,10 +61,3 @@ QWidget* keyboardwidgetqt_new(
w->init(glow_eCtxType_Keyboard, init_proc, client_data, keyboard_init_proc); w->init(glow_eCtxType_Keyboard, init_proc, client_data, keyboard_init_proc);
return (QWidget*)w; return (QWidget*)w;
} }
QWidget* keyboardnavwidgetqt_new(QWidget* main_keyboard)
{
QtScrollWidgetGlow* w = new QtScrollWidgetGlow();
w->init(glow_eCtxType_Keyboard, main_keyboard);
return (QWidget*)w;
}
\ No newline at end of file
...@@ -40,8 +40,3 @@ ...@@ -40,8 +40,3 @@
QWidget* keyboardwidgetqt_new( QWidget* keyboardwidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data); int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data);
QWidget* scrolledkeyboardwidgetqt_new(
int (*init_proc)(GlowCtx* ctx, void* client_data), void* client_data,
QWidget** growwidget);
QWidget* keyboardnavwidgetqt_new(QWidget* main_grow);
\ No newline at end of file
...@@ -52,8 +52,6 @@ public: ...@@ -52,8 +52,6 @@ public:
pwr_tStatus* status); pwr_tStatus* status);
QWidget* parent_wid; QWidget* parent_wid;
QWidget* parent_wid_clog;
QWidget* form_clog;
QWidget* clognav_widget; QWidget* clognav_widget;
QWidget* filter_form; QWidget* filter_form;
QCheckBox* show_success_w; QCheckBox* show_success_w;
...@@ -63,8 +61,6 @@ public: ...@@ -63,8 +61,6 @@ public:
QCheckBox* show_fatal_w; QCheckBox* show_fatal_w;
QCheckBox* show_text_w; QCheckBox* show_text_w;
QLineEdit* filter_string_w; QLineEdit* filter_string_w;
QWidget* filesel_form;
QWidget* filesel_list_w;
void pop(); void pop();
void set_clock_cursor(); void set_clock_cursor();
......
...@@ -50,7 +50,6 @@ public: ...@@ -50,7 +50,6 @@ public:
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
char print_title[120];
void set_input_focus(); void set_input_focus();
void bell(); void bell();
......
...@@ -175,7 +175,7 @@ XttFileviewQt::XttFileviewQt(void* xn_parent_ctx, QWidget* xn_parent_wid, ...@@ -175,7 +175,7 @@ XttFileviewQt::XttFileviewQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
} }
QObject::connect(toplevel, SIGNAL(fileSelected(const QString&)), toplevel, QObject::connect(toplevel, SIGNAL(fileSelected(const QString&)), toplevel,
SLOT(list_ok_cb(const QString&))); SLOT(XttFileviewQtWidget::list_ok_cb(const QString&)));
toplevel->exec(); toplevel->exec();
} }
\ No newline at end of file
...@@ -56,7 +56,6 @@ public: ...@@ -56,7 +56,6 @@ public:
} }
QWidget* list; QWidget* list;
QWidget* input_text;
pwr_tFileName dir; pwr_tFileName dir;
pwr_tString40 pattern; pwr_tString40 pattern;
pwr_tAName target_attr; pwr_tAName target_attr;
......
...@@ -332,7 +332,7 @@ XttGeQt::XttGeQt(QWidget* xg_parent_wid, void* xg_parent_ctx, ...@@ -332,7 +332,7 @@ XttGeQt::XttGeQt(QWidget* xg_parent_wid, void* xg_parent_ctx,
QObject::connect(((GraphQt*)graph)->grow_widget, QObject::connect(((GraphQt*)graph)->grow_widget,
SIGNAL(resize_signal(QResizeEvent*)), toplevel, SIGNAL(resize_signal(QResizeEvent*)), toplevel,
SLOT(action_resize(QResizeEvent*))); SLOT(XttGeQtWidget::action_resize(QResizeEvent*)));
// TODO: grow_widget must emit a resize_signal signal in resizeEvent() // TODO: grow_widget must emit a resize_signal signal in resizeEvent()
if (xg_menu) { if (xg_menu) {
......
...@@ -52,7 +52,6 @@ public: ...@@ -52,7 +52,6 @@ public:
QWidget* form_widget; QWidget* form_widget;
QWidget* nav_shell; QWidget* nav_shell;
QWidget* nav_widget; QWidget* nav_widget;
QWidget* menu_widget;
QWidget* graph_form; QWidget* graph_form;
QLineEdit* value_input; QLineEdit* value_input;
QWidget* value_dialog; QWidget* value_dialog;
...@@ -107,7 +106,6 @@ protected: ...@@ -107,7 +106,6 @@ protected:
void resize(int width, int height); void resize(int width, int height);
void focusInEvent(QFocusEvent* event); void focusInEvent(QFocusEvent* event);
void closeEvent(QCloseEvent* event); void closeEvent(QCloseEvent* event);
void action_resize(QResizeEvent* event);
public slots: public slots:
void activate_confirm_ok(); void activate_confirm_ok();
...@@ -116,6 +114,7 @@ public slots: ...@@ -116,6 +114,7 @@ public slots:
void activate_zoom_out(); void activate_zoom_out();
void activate_zoom_reset(); void activate_zoom_reset();
void activate_help(); void activate_help();
void action_resize(QResizeEvent* event);
private: private:
XttGeQt* ge; XttGeQt* ge;
......
...@@ -176,8 +176,6 @@ XttMultiViewQt::XttMultiViewQt(QWidget* mv_parent_wid, void* mv_parent_ctx, ...@@ -176,8 +176,6 @@ XttMultiViewQt::XttMultiViewQt(QWidget* mv_parent_wid, void* mv_parent_ctx,
window_width = 600; window_width = 600;
window_height = 500; window_height = 500;
} }
orig_width = window_width;
orig_height = window_height;
// Qt // Qt
if (!(options & ge_mOptions_Embedded)) { if (!(options & ge_mOptions_Embedded)) {
......
...@@ -70,8 +70,6 @@ public: ...@@ -70,8 +70,6 @@ public:
int comp_height[MV_SIZE]; int comp_height[MV_SIZE];
int comp_x[MV_SIZE]; int comp_x[MV_SIZE];
int comp_y[MV_SIZE]; int comp_y[MV_SIZE];
int orig_width;
int orig_height;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
XttMultiViewQt(QWidget* parent_wid, void* parent_ctx, const char* name, XttMultiViewQt(QWidget* parent_wid, void* parent_ctx, const char* name,
...@@ -85,8 +83,6 @@ public: ...@@ -85,8 +83,6 @@ public:
void pop(); void pop();
void set_size(int width, int height); void set_size(int width, int height);
void create_confirm_dialog();
void confirm_reply(int ok);
void* get_widget(); void* get_widget();
int set_subwindow_source(const char* name, char* source, char* object, int set_subwindow_source(const char* name, char* source, char* object,
double* borders, int insert = 1, int more = 0); double* borders, int insert = 1, int more = 0);
......
...@@ -69,14 +69,12 @@ public: ...@@ -69,14 +69,12 @@ public:
pwr_tStatus* status); pwr_tStatus* status);
~OpQt(); ~OpQt();
QWidget* parent_wid_op;
QLabel* alarmcnt_label; QLabel* alarmcnt_label;
QWidget* aalarm_mark; QWidget* aalarm_mark;
QLabel* aalarm_label[5]; QLabel* aalarm_label[5];
QWidget* aalarm_active[5]; QWidget* aalarm_active[5];
QWidget* aalarm_active_box[5]; QWidget* aalarm_active_box[5];
QWidget* aalarm_info[5]; QWidget* aalarm_info[5];
QWidget* aalarm_filler[5];
QWidget* aalarm_box[5]; QWidget* aalarm_box[5];
QLabel* balarm_label; QLabel* balarm_label;
QWidget* balarm_active; QWidget* balarm_active;
......
...@@ -68,7 +68,6 @@ public: ...@@ -68,7 +68,6 @@ public:
void message(char severity, const char* message); void message(char severity, const char* message);
void set_prompt(const char* prompt); void set_prompt(const char* prompt);
void change_value(int set_focus); void change_value(int set_focus);
int open_changevalue(char* name);
void change_value_close(); void change_value_close();
void pop(); void pop();
void print(); void print();
......
...@@ -65,10 +65,8 @@ public: ...@@ -65,10 +65,8 @@ public:
void message(char severity, const char* message); void message(char severity, const char* message);
void set_prompt(char* prompt); void set_prompt(char* prompt);
int change_value(int set_focus); int change_value(int set_focus);
int open_changevalue(char* name);
void change_value_close(); void change_value_close();
void pop(); void pop();
void swap(int mode);
int set_value(); int set_value();
private: private:
......
...@@ -69,7 +69,6 @@ public: ...@@ -69,7 +69,6 @@ public:
void message(char severity, const char* message); void message(char severity, const char* message);
void set_prompt(const char* prompt); void set_prompt(const char* prompt);
void change_value(int set_focus); void change_value(int set_focus);
int open_changevalue(char* name);
void change_value_close(); void change_value_close();
void pop(); void pop();
void set_title(char* title); void set_title(char* title);
......
...@@ -51,7 +51,6 @@ public: ...@@ -51,7 +51,6 @@ public:
int xa_advanced_user, int* xa_sts); int xa_advanced_user, int* xa_sts);
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
QWidget* xcrrnav_form;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
void pop(); void pop();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment