openmohaa/code/uilib/uimledit.cpp

207 lines
4.1 KiB
C++
Raw Normal View History

2016-03-27 11:49:47 +02:00
/*
===========================================================================
Copyright (C) 2015 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
OpenMoHAA source code is distributed in the hope that it will be
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
#include "ui_local.h"
2024-01-01 15:57:44 +01:00
Event EV_Time_Dragged
(
"_umledit_drag_timer",
EV_DEFAULT,
NULL,
NULL,
"Used to time mouse drag events"
);
Event EV_UIMultiLineEdit_UpdateCvarEvent
(
"updatecvar",
EV_DEFAULT,
NULL,
NULL,
"Causes text box to update itself using the assigned cvar"
);
Event EV_UIMultiLineEdit_SetEdit
(
"edit",
EV_DEFAULT,
"b",
"bool",
"Set whether or not the text is editable"
);
CLASS_DECLARATION(UIWidget, UIMultiLineEdit, NULL) {
{&W_LeftMouseDown, &UIMultiLineEdit::MouseDown },
{&W_LeftMouseUp, &UIMultiLineEdit::MouseUp },
{&W_LeftMouseDragged, &UIMultiLineEdit::MouseDragged },
{&EV_Time_Dragged, &UIMultiLineEdit::DragTimer },
{&W_SizeChanged, &UIMultiLineEdit::SizeChanged },
{&EV_UIMultiLineEdit_UpdateCvarEvent, &UIMultiLineEdit::UpdateCvarEvent},
{&EV_UIMultiLineEdit_SetEdit, &UIMultiLineEdit::SetEdit },
{NULL, NULL }
2016-03-27 11:49:47 +02:00
};
UIMultiLineEdit::UIMultiLineEdit()
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::Empty(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::SetEdit(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::setData(const char *data)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::getData(str& data)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::FrameInitialized(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::SizeChanged(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::SortSelection(selectionpoint_t **topsel, selectionpoint_t **botsel)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::UpdateCvarEvent(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::Draw(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
static str str_null = "";
2016-03-27 11:49:47 +02:00
2024-01-01 15:57:44 +01:00
str& UIMultiLineEdit::LineFromLineNumber(int num, bool resetpos)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
return str_null;
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::PointToSelectionPoint(UIPoint2D& p, selectionpoint_t& sel)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::MouseDown(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::MouseUp(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::MouseDragged(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::DragTimer(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::EnsureSelectionPointVisible(selectionpoint_t& point)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::BoundSelectionPoint(selectionpoint_t& point)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
qboolean UIMultiLineEdit::KeyEvent(int key, unsigned int time)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
return qfalse;
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::DeleteSelection(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::CharEvent(int ch)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
bool UIMultiLineEdit::IsSelectionEmpty(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
return false;
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::CopySelection(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::PasteSelection(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
UIPoint2D UIMultiLineEdit::getEndSelPoint(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
return UIPoint2D();
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::setChanged(bool b)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
bool UIMultiLineEdit::IsChanged(void)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
return false;
2016-03-27 11:49:47 +02:00
}
2024-01-01 15:57:44 +01:00
void UIMultiLineEdit::Scroll(Event *ev)
2016-03-27 11:49:47 +02:00
{
2024-01-01 15:57:44 +01:00
// FIXME: stub
2016-03-27 11:49:47 +02:00
}